can't commit over ftp: error_temp: 451 Rename/move failure: File exists

Bug #598646 reported by mike stewart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Won't Fix
Low
Unassigned

Bug Description

crash using bazaar explorer in ubuntu 9.10 - bound branch on dumb webhost ftp server - previous commit had failed (two days earlier).

the previous commit hung ... i noticed sometime later that it was prompting for ftp passwword some minutes after commit had been started (via command line). I couldn't conitinue, so used CTRL-C to cancel.

however, it had over 20minutes to have made the commit in the background. not sure if it hung due to poor wireless or bad ftp connection, -OR- because I created and was working in another bzr repository after this commit had been started. (the new repository was local, and encountered no errors).

bzr.log and crash report are attached

Tags: ftp

Related branches

Revision history for this message
mike stewart (mdrmike) wrote :
Revision history for this message
Alexander Belchenko (bialix) wrote :
Download full text (4.5 KiB)

PythonVersion: 2.6.4
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 853, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1055, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 661, in run_argv_aliases
     return self.run_direct(**all_cmd_args)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 665, in run_direct
     return self._operation.run_simple(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 122, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/commands.py", line 788, in run
     return run_subprocess_command(cmd, bencoded)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/subprocess.py", line 786, in run_subprocess_command
     return commands.run_bzr(argv)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1055, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 661, in run_argv_aliases
     return self.run_direct(**all_cmd_args)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 665, in run_direct
     return self._operation.run_simple(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 122, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 3138, in run
     exclude=safe_relpath_files(tree, exclude))
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 194, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree_4.py", line 197, in commit
     result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 194, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line 225, in commit
     *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commit.py", line 257, in commit
     possible_master_transports=possible_master_transports)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 118, in run
     self.cleanups, self.func, self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commit.py", line 332, in _commit
     self._check_bound_branch(operation, possible_master_transports)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commit.py", line 501, in _check_bound_branch
     self.master_branch.lock_write()
   File "/usr/lib/pytho...

Read more...

summary: - bzr explorer crashed during commit (bound branch on dumb ftp server)
+ can't commit over ftp: error_temp: 451 Rename/move failure: File exists
Revision history for this message
Andrew Bennetts (spiv) wrote :

Possibly we need to extend the FTP error translation again. At a glance changing our FtpTransport like this might work:

- elif ('file exists' in s):
+ elif ('file exists' in s.lower()):
             raise errors.FileExists(path, extra=extra)

Do you know which software the FTP server is running?

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
tags: added: ftp
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Low
tags: removed: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: Triaged → Won't Fix
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.