bazaar internal error on FTP push
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Sometimes when pushing my branch to my FTP site, it reports this annoying internal error. When I push a second time it goed through. But I always wonder how much of the files are actually pushed or if the repository on the FTP address is not broken.
bzr: ERROR: ftplib.error_temp: 450 No files found
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "ftplib.pyc", line 459, in nlst
File "ftplib.pyc", line 407, in retrlines
File "ftplib.pyc", line 356, in transfercmd
File "ftplib.pyc", line 327, in ntransfercmd
File "ftplib.pyc", line 241, in sendcmd
File "ftplib.pyc", line 214, in getresp
error_temp: 450 No files found
bzr 1.2.0 on python 2.5.1.final.0 (win32)
arguments: ['bzr', 'push']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
launchpad C:\PROGRA~
ad [unknown]
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
-------
Pushing again works as expected:
D:\personal\
Using saved location: ftp://{my-ftp-url}
FTP <email address hidden> password:
Pushed up to revision 45.
Related branches
Changed in bzr: | |
status: | Fix Committed → Fix Released |
This sounds like a response that we didn't expect.
Specifically, when auto-packing, we will clear out any packs that are in "obsolete_packs".
It sounds like your ftp server raises an error when you do "ls" in an empty directory. I would have expected it to just return an empty list.
Can you describe what FTP server you are using, etc?
450 seems to be "requested action not taken" which seems an odd error to return on an ls of an empty directory. www.the- eggman. com/seminars/ ftp_error_ codes.html
http://
Anyway, it would be easy enough to adjust the FTPTransport. list_dir( ) code to check for 450 and "No files found" and just return an empty list rather than an exception.