psychoone7 / pyftpdlib

Automatically exported from code.google.com/p/pyftpdlib
Other
0 stars 0 forks source link

"426 No such file or directory; transfer aborted" after STOR operation. #192

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. after some time of normal operation this error appears:

99.99.99.99:56451 ==> 250 "/dpa-sportsline" is the current directory.
99.99.99.99:56451 <== TYPE A
99.99.99.99:56451 ==> 200 Type set to: ASCII.
99.99.99.99:56451 <== PASV
99.99.99.99:56451 ==> 227 Entering passive mode (88,88,88,88,194,179).
99.99.99.99:56451 <== STOR fertig.txt
99.99.99.99:56451 ==> 150 File status okay. About to open data connection.
99.99.99.99:56451 ==> 226 Transfer complete.
[DPA]@99.99.99.99:56451 "STOR /home/tulpe/dpa-sportsline/fertig.txt" 
completed=1 bytes=8 seconds=0.004
99.99.99.99:56451 ==> 426 No such file or directory; transfer aborted.
99.99.99.99:56451 <== TYPE I
99.99.99.99:56451 ==> 200 Type set to: Binary.
[DPA]@99.99.99.99:56451 Disconnected.

The file is there and has a file size of 8 byte but STOR keeps returning 426

What version of pyftpdlib are you using? On what operating system? Which
Python version?
0.6.0

Please provide any additional information below.

Original issue reported on code.google.com by Vindo...@gmail.com on 1 Dec 2011 at 6:59

GoogleCodeExporter commented 9 years ago
I guess you can't provide a set of "steps" to reproduce the problem, right?
In this case, can you try latest svn revision?

Original comment by g.rodola on 1 Dec 2011 at 8:34

GoogleCodeExporter commented 9 years ago
Latest svn revision doen't make a difference.
I'm using pyftpdlib to receive a xml news push from a news agency and trigger 
some functions for parsing the xml files and doing CRUD operations accordingly.
There are hundreds mixed STOR, DELE, RNTO, RNFR operations per push.
Unfortunately I can't stop that push atm.
My hackaround is to do a sys.exit() on close() then restarting the script in a 
loop.
I will ask the provider for a second push to a debug instance.

Original comment by Vindo...@gmail.com on 4 Dec 2011 at 8:58

GoogleCodeExporter commented 9 years ago
I don't understand how the condition I see in the logs is supposed to take 
place (doesn't make sense to me):

<== STOR fertig.txt
==> 150 File status okay. About to open data connection.
==> 226 Transfer complete.
==> 426 No such file or directory; transfer aborted.

Do you happen to use threads maybe?
Can you include the code you're using?

Original comment by g.rodola on 6 Dec 2011 at 6:53