sftp server connection dropped while uploading using bzr-upload

Bug #347314 reported by Jonathan Koay
This bug report is a duplicate of:  Bug #326302: Journalled upload. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Breezy
New
Undecided
Unassigned
bzr Upload plugin
Confirmed
High
Unassigned

Bug Description

Using Windows XP, and Bazaar 1.12 with paramiko 1.7.4.

While uploading using bzr-upload, sftp server connection dropped. Not very familiar with Bazaar, first time user. Suspect it's something to do with server (GoDaddy) connection dropping while transferring files halfway. Any settings can I set so that it auto resume if connection dropped?

The following is the error message.

bzr: ERROR: paramiko.SSHException: Server connection dropped:

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 896, in run_bzr_catch_errors
  File "bzrlib\commands.pyo", line 842, in run_bzr
  File "bzrlib\commands.pyo", line 542, in run_argv_aliases
  File "C:/Program Files/Bazaar/plugins\upload\__init__.py", line 420, in run
  File "C:/Program Files/Bazaar/plugins\upload\__init__.py", line 256, in upload
_tree
  File "C:/Program Files/Bazaar/plugins\upload\__init__.py", line 238, in upload
_full_tree
  File "C:/Program Files/Bazaar/plugins\upload\__init__.py", line 141, in upload
_file_robustly
  File "C:/Program Files/Bazaar/plugins\upload\__init__.py", line 123, in upload
_file
  File "bzrlib\transport\__init__.pyo", line 873, in put_bytes
  File "bzrlib\transport\sftp.pyo", line 485, in put_file
  File "bzrlib\transport\sftp.pyo", line 532, in _put
SSHException: Server connection dropped:

bzr 1.12 on python 2.5.2 (win32)
arguments: ['bzr', 'upload', 'sftp://username@hostname/~/html']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  automv C:\Program Files\Bazaar\plugins\automv [unknown]
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [1.12]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [unknown]
  netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store
[unknown]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.9.8]
  svn C:\Program Files\Bazaar\plugins\svn [0.5.2]
  upload C:\Program Files\Bazaar\plugins\upload [1.0dev]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

bzr --version:

Bazaar (bzr) 1.12
  Python interpreter: C:\Program Files\Bazaar\python25.dll 2.5.2
  Python standard library: C:\Program Files\Bazaar\lib\library.zip
  bzrlib: C:\Program Files\Bazaar\lib\library.zip\bzrlib

Revision history for this message
Jonathan Koay (jonkoay) wrote :
Revision history for this message
Vincent Ladeuil (vila) wrote :

There actually no solution to address a server dropping the connection (especially in the middle of a write operation :-/).

There is a work in progress to allows uploads to be journalled and resumed though, but nothing usable so far.

Changed in bzr-upload:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Kevin Kaland (kkaland) wrote :

Was the journal functionality ever completed? Currently for large uploads to GoDaddy servers (which have a penchant for dropping connections) I tend to figure out the files that need to be uploaded and do it manually. Then I edit the .bzr-upload.revid file an put in the ID of the relevant revision manually. Always tricky because I have to make sure to set it to not have line-endings, etc.

Revision history for this message
Callum Macdonald (chmac) wrote :

Any progress on this since 2010?

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

Other bug subscribers

Bug attachments

Remote bug watches

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