requestsync fails with 'Connection reset by peer'

Bug #261916 reported by Bryce Harrington on 2008-08-27
2
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Low
Jonathan Davies

Bug Description

Binary package hint: ubuntu-dev-tools

I have to run requestsync multiple times to get it to work. It will work every once and a while, but more typically it times out after a minute or two with the following error:

$ requestsync --lp x11-apps intrepid
Traceback (most recent call last):
  File "/usr/bin/requestsync", line 310, in <module>
    report += debian_changelog(srcpkg, debiancomponent, base_ver) + '\n'
  File "/usr/bin/requestsync", line 61, in debian_changelog
    for l in urllib.urlopen('http://packages.debian.org/changelogs/pool/%s/%s/%s/current/changelog.txt' % (component, subdir, sourcepkg)):
  File "/usr/lib/python2.5/urllib.py", line 82, in urlopen
    return opener.open(url)
  File "/usr/lib/python2.5/urllib.py", line 190, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.5/urllib.py", line 328, in open_http
    errcode, errmsg, headers = h.getreply()
  File "/usr/lib/python2.5/httplib.py", line 1199, in getreply
    response = self._conn.getresponse()
  File "/usr/lib/python2.5/httplib.py", line 928, in getresponse
    response.begin()
  File "/usr/lib/python2.5/httplib.py", line 385, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.5/httplib.py", line 343, in _read_status
    line = self.fp.readline()
  File "/usr/lib/python2.5/socket.py", line 331, in readline
    data = recv(1)
IOError: [Errno socket error] (104, 'Connection reset by peer')

Siegfried Gevatter (rainct) wrote :

That's a problem with packages.ubuntu.com. It would be good to catch the extension and write a nice error message instead, though.

Changed in ubuntu-dev-tools:
status: New → Invalid
Jonathan Davies (jpds) wrote :

I have improved the error handling as of Bazaar revision 189.

Thanks,
Jonathan

Changed in ubuntu-dev-tools:
assignee: nobody → jpds
importance: Undecided → Low
status: Invalid → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.43ubuntu1

---------------
ubuntu-dev-tools (0.43ubuntu1) intrepid; urgency=low

  * Bazaar revision 195.

  [ Jonathan Patrick Davies ]
  * common.py:
    - If loading a cookie file raises an exception exit.
    - Improve cookie file writing.
    - New function: isLPTeamMember() - checks if the user is a member of the
      Launchpad team using cookies for authentication.
    - New function: packageComponent() - returns which component a package in
      Ubuntu is in.
  * requestsync:
    - Return an error when the script is unable to connect to
      packages.debian.org (LP: #261916).
    - Adapt team checking with the function above.
  * buildd:
    - Adapt privilege checking code to the new function above.
    - Check which component the package is in.

  [ Ryan Kavanagh ]
  * dgetlp.1: New manpage
  * dgetlp: fix typo in usage
  * hugdaylist.1: New manpage
  * s/requestsync/pull-lp-source/g in doc/pull-lp-source.1
  * mk-sbuild-lv.1: New manpage

  [ Karl Goetz ]
  * Add a Recommends: on ca-certificates (LP: #247157).

 -- Jonathan Patrick Davies <email address hidden> Sun, 31 Aug 2008 11:40:30 +0200

Changed in ubuntu-dev-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers