Re: Bugreport: delete broken files

Stefan Teuscher <[email protected]>
Newsgroups gmane.comp.web.sitecopy
Message-ID <[email protected]>
Ok, I try it again:

I have a local directory called "test" and one file in it called 
"picture.jpg".
I upload it onto the server with:
sitecopy --update xxx

While the update is running I recognized that this file and this 
directory I didn't wanted to upload, so I stopped sitecopy with CTRL-c.
Sitecopy stops.
Here is the sitecopy output until here:
-----
sitecopy: Updating site 'xxx' (on xxx.de in /)
Creating test/: done.
Uploading test/picture.jpg: [.............

sitecopy: Caught signal: Interrupt (2)
sitecopy: Aborting update...
sitecopy: Aborted.
-----

What is at the server now?
A directory "test" and an incomplete file "test/picture.jpg".

Now I delete the file "test/picture.jpg" and the directory "test" on my 
local hard disk,
and start sitecopy again. Here is the output of sitecopy:
-----
sitecopy: Updating site 'xxx' (on xxx.de in /)
Deleting test/: failed: 550 Permission denied.

sitecopy: Errors occurred while updating the remote site.
-----

Why? Because the directory "test" is not empty. There is still the 
incomplete file "test/picture.jpg".
So I have to connect to the server by hand (ftp) and delete this file.
The running sitecopy again and all works fine.

Regards,

Stefan

Joe Orton wrote:
> On Sat, May 07, 2005 at 11:27:17PM +0200, Stefan Teuscher wrote:
> 
>>Hello Joe,
>>
>>I just discovered a little bug (I think it is one):
>>When I am uploading a file (sitecopy --update xxx)
>>and break it whith CTRL-c
>>and when this broken file is the only one in this directory,
>>then deleting this file locally
>>and also deleting this directory locally
>>and starting sitecopy again with --update xxx
>>the following happens:
>>Sitecopy tries to delete this directory on the server but it fails 
>>because sitecopy forgot to delete the broken file before trying to 
>>delete this directory (dir is not empty).
>>
>>Workaround: connect manually and delete the broken file in the directory 
>>on the server. After that sitecopy runs perfectly again.
> 
> 
> Can you show a transcript showing this failure mode, I'm not sure
> exactly what you're describing?
> 
> Regards,
> 
> joe
> 
_______________________________________________
sitecopy maillist  -  [email protected]
http://dav.lyra.org/mailman/listinfo/sitecopy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.