Baazar error un Windows

Bug #531580 reported by Facon
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned

Bug Description

Run command: bzr checkout https://code.launchpad.net/~gust.devel/gust/trunk "C:\Documents and Settings\Facon\Mis documentos\Prog\Java\gust"
bzr: ERROR: socket.error: (10054, 'Connection reset by peer')

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 853, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "C:/Archivos de programa/Bazaar/plugins\qbzr\lib\commands.py", line 784, in run
  File "C:/Archivos de programa/Bazaar/plugins\qbzr\lib\subprocess.py", line 811, in run_subprocess_command
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1328, in run
  File "bzrlib\branch.pyo", line 1329, in create_checkout
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\branch.pyo", line 962, in pull
  File "bzrlib\branch.pyo", line 3200, in pull
  File "bzrlib\branch.pyo", line 3077, in pull
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\branch.pyo", line 910, in update_revisions
  File "bzrlib\branch.pyo", line 3020, in update_revisions
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\branch.pyo", line 593, in fetch
  File "bzrlib\repository.pyo", line 1704, in fetch
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\repository.pyo", line 3432, in fetch
  File "bzrlib\fetch.pyo", line 83, in __init__
  File "bzrlib\fetch.pyo", line 109, in __fetch
  File "bzrlib\fetch.pyo", line 137, in _fetch_everything_for_search
  File "bzrlib\repository.pyo", line 4274, in insert_stream
  File "bzrlib\repository.pyo", line 4307, in _locked_insert_stream
  File "bzrlib\groupcompress.pyo", line 1598, in insert_record_stream
  File "bzrlib\groupcompress.pyo", line 1653, in _insert_record_stream
  File "bzrlib\groupcompress.pyo", line 1413, in get_record_stream
  File "bzrlib\groupcompress.pyo", line 1564, in _get_remaining_record_stream
  File "bzrlib\groupcompress.pyo", line 1130, in yield_factories
  File "bzrlib\groupcompress.pyo", line 1369, in _get_blocks
  File "bzrlib\knit.pyo", line 3371, in get_raw_records
  File "bzrlib\pack.pyo", line 290, in _iter_records
  File "bzrlib\pack.pyo", line 295, in _iter_record_objects
  File "bzrlib\pack.pyo", line 236, in reader_func
  File "bzrlib\pack.pyo", line 192, in read
  File "bzrlib\pack.pyo", line 187, in _next
  File "bzrlib\transport\http\__init__.pyo", line 250, in _readv
  File "bzrlib\transport\http\response.pyo", line 231, in read
  File "bzrlib\osutils.pyo", line 577, in pumpfile
  File "socket.pyo", line 328, in read
  File "httplib.pyo", line 529, in read
  File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 89, in read
  File "socket.pyo", line 328, in read
error: (10054, 'Connection reset by peer')

bzr 2.1.0 on python 2.5.4 (Windows-XP-5.1.2600-SP3)
arguments: ['C:\\Archivos de programa\\Bazaar\\bzr.exe', 'qsubprocess', '--bencode', 'l8:checkout49:https://code.launchpad.net/~gust.devel/gust/trunk61:C:\\Documents and Settings\\Facon\\Mis documentos\\Prog\\Java\\guste']
encoding: 'cp1252', fsenc: 'mbcs', lang: 'es'
plugins:
  bzrtools C:\Archivos de programa\Bazaar\plugins\bzrtools [2.1.0]
  explorer C:\Archivos de programa\Bazaar\plugins\explorer [1.0.0rc1]
  launchpad C:\Archivos de programa\Bazaar\plugins\launchpad [2.1.0]
  netrc_credential_store C:\Archivos de programa\Bazaar\plugins\netrc_credential_store [2.1.0]
  qbzr C:\Archivos de programa\Bazaar\plugins\qbzr [0.18.1]
  rebase C:\Archivos de programa\Bazaar\plugins\rebase [0.5.5]
  svn C:\Archivos de programa\Bazaar\plugins\svn [1.0.2]
  upload C:\Archivos de programa\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\Archivos de programa\Bazaar\plugins\xmloutput [0.8.6]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Tags: easy http
Revision history for this message
John A Meinel (jameinel) wrote :

I'm not sure if this should be a qbzr bug.

But basically, the remote site was disconnected (possibly by your network going down?)

There isn't a lot we can do other than provide a clearer error. I wouldn't be surprised if this is just a failure to catch "errno 10054", rather than whatever we are expecting.

Changed in bzr:
status: New → Incomplete
Revision history for this message
Andrew Bennetts (spiv) wrote :

Looking at the code, it seems very clear that it's failing to handle connection reset errors while reading. In general it appears that bzrlitb.transport.http.response.RangeFile's read method doesn't handle any errors that might arise while reading from self._file. Alternatively bzrlib.transport.http.HttpTransportBase's _readv method could handle socket errors while doing rfile.read.

When reading from sockets, bzrlib.smart.medium catches socket.error and checks for e.errno in (errno.ECONNRESET, errno.WSAECONNRESET) [with care to cope if WSAECONNRESET isn't defined on this platform]. I think bzrlib.transport.http should do the same, and presumably raise bzrlib.errors.ConnectionReset when this happens.

Changed in bzr:
importance: Undecided → High
status: Incomplete → Confirmed
tags: added: easy http
Revision history for this message
Gary van der Merwe (garyvdm) wrote : Re: [Bug 531580] Re: Baazar error un Windows

On 04/03/2010 00:08, John A Meinel wrote:
> I'm not sure if this should be a qbzr bug.

I don't see why. We are correctly reporting what bzr would have reported.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.