Bug#379732: popularity-contest: Fails to upload using http

2006-07-28 Thread Petter Reinholdtsen
tags 379732 pending
thanks

[Richard Burton]
 However I've figured out what it doesn't like about it. It seems
 that the http header was using \n for EOL, and the HTTP spec
 requires \r\n [1].

Aha.  That should be fixed, no matter if the proxy should have handled
it or not. :)

 I've attached a patch to fix the problem. With this on it now works
 fine on my machines at work now.

Great.  I've applied that patch to the source repository, and it will
be included in the next upload.

Friendly,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#379732: popularity-contest: Fails to upload using http

2006-07-27 Thread Richard Burton

I am unable to reproduce this.  When I visit the HTTP submit URL, it
seem to work as it should (this is the expected output when not using
the popcon script to submit reports):


I get the same when I use a web broswer:

http://popcon.debian.org/cgi-bin/popcon.cgi



GET /cgi-bin/popcon.cgi HTTP/1.1

Host: popcon.debian.org

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.0.4) 
Gecko/20060506 Firefox/1.5.0.4 (Debian-1.5.dfsg+1.5.0.4-3)


Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5


Accept-Language: en-gb,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive



HTTP/1.x 200 OK

Date: Thu, 27 Jul 2006 12:32:40 GMT

Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-16 DAV/1.0.3

Transfer-Encoding: chunked

Content-Type: text/plain; charset=utf-8

Via: 1.1 Application and Content Networking System Software 5.3.5

Connection: Keep-Alive



Debian Popularity-Contest HTTP-POST submission URL
Visit http://popcon.debian.org/ for more info.


I also tried to submit a new report from my laptop, and this did not
give any errors to syslog, which it should if it failed to get the
proper reply from the HTTP server.

  # /etc/cron.weekly/popularity-contest
  # grep popularity-contest /var/log/messages
  #


I get kronos popularity-contest: unable to submit report to 
http://popcon.debian.org/cgi-bin/popcon.cgi.; in the log



Are you still seeing the problem?  If so, I suggest checking for HTTP
proxies between your machine and popcon.debian.org.


Yep, still getting it everytime. I don't know if there is a transparent 
proxy here at work, I'm not aware of one, and if there is it shouldn't 
interfering with sumbitting data. I've now tested some other debian boxes 
here and sometimes they are able to sumbit ok, but not always.


For example on another box I saw this:

Failed to upload, answer 'HTTP/1.1 400 Bad Request
Date: Thu, 27 Jul 2006 12:44:53 GMT
Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-16 DAV/1.0.3
Connection: close
Content-Type: text/html; charset=iso-8859-1

!DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
HTMLHEAD
TITLE400 Bad Request/TITLE
/HEADBODY
H1Bad Request/H1
Your browser sent a request that this server could not understand.P
The request line contained invalid characters following the protocol 
string.P

P
HR
ADDRESSApache/1.3.33 Server at gluck.debian.org Port 80/ADDRESS
/BODY/HTML
'

Not sure how this could happen. The error is coming back from gluck because 
it obviously doesn't understand the header enough to realise which virtual 
host it was even aimed at, which does suggest that it's getting damaged in 
transit, or maybe before actually being sent.


I tried adding the -C option to the uploader and now the box that couldn't 
send before is able to send fine everytime, and the box that could send 
sometimes, now always fails with answer = ;


Any suggestions on how to debug this?

Richard.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#379732: [Popcon-developers] Bug#379732: popularity-contest: Fails to upload using http

2006-07-27 Thread Petter Reinholdtsen
[Richard Burton]
 Via: 1.1 Application and Content Networking System Software 5.3.5

This was an interesting header.  Could it be that Cisco Application
and Content Networking System is filtering the connection, and failing
at it?  I found
URL:http://www.cisco.com/en/US/products/sw/conntsw/ps491/index.html
while googling for that header.  It explains what it is.

Based on this, I am fairly confident that the problem is with your
network setup, and not with the popcon service.  I recommend you talk
to your network providers, and ask them to find and fix the problem.
I have no idea how to debug it.

I'll close this bug in a few days, and keep it open in case you are
able to indicate that the problem is indeed a problem with the popcon
service. :)

Friendly,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#379732: popularity-contest: Fails to upload using http

2006-07-26 Thread Petter Reinholdtsen
severity 379732 normal
thanks

[Richard Antony Burton]
 Can no longer upload popcon result by http (which as the default
 method probably means few other people are able to either). I added
 the -d option to the uploader and ran it a few times (with several
 different results):

I am unable to reproduce this.  When I visit the HTTP submit URL, it
seem to work as it should (this is the expected output when not using
the popcon script to submit reports):

  % HEAD http://popcon.debian.org/cgi-bin/popcon.cgi
  200 OK
  Connection: close
  Date: Wed, 26 Jul 2006 22:40:28 GMT
  Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-16 DAV/1.0.3
  Content-Type: text/plain; charset=utf-8
  Client-Date: Wed, 26 Jul 2006 22:40:28 GMT
  Client-Peer: 192.25.206.10:80
  Client-Response-Num: 1

  % GEThttp://popcon.debian.org/cgi-bin/popcon.cgi
  Debian Popularity-Contest HTTP-POST submission URL
  Visit http://popcon.debian.org/ for more info.
  %

I also tried to submit a new report from my laptop, and this did not
give any errors to syslog, which it should if it failed to get the
proper reply from the HTTP server.

  # /etc/cron.weekly/popularity-contest
  # grep popularity-contest /var/log/messages
  #

Are you still seeing the problem?  If so, I suggest checking for HTTP
proxies between your machine and popcon.debian.org.

Redusing severity to normal, as this do not affect all users.

Friendly,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#379732: popularity-contest: Fails to upload using http

2006-07-25 Thread Richard Antony Burton
Package: popularity-contest
Version: 1.33
Severity: grave
Justification: renders package unusable

Can no longer upload popcon result by http (which as the default method probably
means few other people are able to either). I added the -d option to the
uploader and ran it a few times (with several different results):

[EMAIL PROTECTED]:/etc/cron.weekly# ./popularity-contest
Failed to upload, answer ''

[EMAIL PROTECTED]:/etc/cron.weekly# ./popularity-contest
Failed to upload, answer '!DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
HTMLHEAD
TITLE302 Found/TITLE
/HEADBODY
H1Found/H1
The document has moved A 
HREF=http://www.debian.org/distrib/ftplist;here/A. P
HR
ADDRESSApache/1.3.33 Server at gluck.debian.org Port 80/ADDRESS
/BODY/HTML
'
[EMAIL PROTECTED]:/etc/cron.weekly# ./popularity-contest
timeout in popcon-upload

Richard.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686-smp
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages popularity-contest depends on:
ii  debconf [debconf-2.0] 1.5.2  Debian configuration management sy
ii  dpkg  1.13.22package maintenance system for Deb

Versions of packages popularity-contest recommends:
ii  cron  3.0pl1-95  management of regular background p
ii  exim4 4.62-2 metapackage to ease exim MTA (v4) 
ii  exim4-daemon-light [mail-tran 4.62-2 lightweight exim MTA (v4) daemon
pn  mime-constructnone (no description available)

-- debconf information:
  popularity-contest/hostid-failed:
* popularity-contest/participate: true
  popularity-contest/use-http: true


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]