Comment 4 for bug 409615

Revision history for this message
Martin Pool (mbp) wrote : Re: Unable to push via ftp

2009/12/1 David Muir <email address hidden>:
> I can give it a shot, but I may need a bit of hand-holding :-)
>
> Where should I start looking in regards to fixing this bug?

So the way I think i would tackle it is: look (by setting -Derror or
in .bzr.log) at the traceback when this error occurs. This will tell
you some code that's trying to append to a file on the ftp server.
The belief is that this code doesn't really need to append to an
existing file (since current formats don't require that behaviour) and
it can easily be changed to just write a file. Post the traceback to
the bug report so others can help.

You may not actually straightforwardly get a traceback, in which case
you probably need to insert a

  import pdb;pdb.set_trace()

line to pop the debugger at that point. You could just put this into
ftp.py/ append. Then use 'bt' to get a traceback.

The code that's originally doing the append should be changed to use
open_write_stream().

hope that helps, don't hesitate to ask,

--
Martin <http://launchpad.net/~mbp/>