Sysax Product Forums / Sysax FTP Automation / Bugs and Feature Requests / ftp-upload stalls
Posted:  08 Dec 2008 15:30

I have a problem with a script I wrote, which uploads about 30 MB in 550 files. Sometimes this script stalls without any error message. This is the part of the script where it happend last time:


ftpdelete remote, folder, "remote_path_old";
if ftpresult ne success begin
  mailcreate "Crawl-Server", "Crawl-Server", "Transfer failed", "Transfer failed in line 36.";
  mailsend "mailserver", 25, "ftp", "";

ftprename remote, "remote_path", "remote_path_old";
if ftpresult ne success begin
  mailcreate "Crawl-Server", "Crawl-Server", "Transfer failed", "Transfer failed in line 43.";
  mailsend "mailserver", 25, "ftp", "";


Part of the files were deleted successfully - but not all. As there's no error at all, I do not get the error e-mail. Here are the last messages from log file:

12/3/2008 5:45:47 PM: [CMD] DELE
12/3/2008 5:45:47 PM: [RSP] 250 DELE command successful.
12/3/2008 5:45:47 PM: [CMD] CWD /u/remote_path_old/_layouts/Images
12/3/2008 5:45:48 PM: [RSP] 250 CWD command successful.
12/3/2008 5:45:48 PM: [CMD] PWD
12/3/2008 5:45:48 PM: [RSP] 257 "/u/remote_path_old/_layouts/Images" is current directory.
12/3/2008 5:45:48 PM: [CMD] TYPE A
12/3/2008 5:45:48 PM: [RSP] 200 Type set to A.
12/3/2008 5:45:48 PM: [CMD] PORT 10,10,21,58,77,64
12/3/2008 5:45:48 PM: [RSP] 200 PORT command successful.
12/3/2008 5:45:48 PM: [CMD] LIST
12/3/2008 5:45:48 PM: [RSP] 150 Opening ASCII mode data connection for /bin/ls.
12/3/2008 5:45:48 PM: [RSP] 226 Transfer complete.

... and then it ends also the delete was not finished nor the rename has been executed.

Any suggestion what this could cause and how to prevent this failure? Is there a way to define a timeout value for FTP commands?

Kind regards
Posted:  10 Dec 2008 00:44   Last Edited By: sysaxsupport
Is this repeatable or does this happen randomly?

Does the stalling happen only when trying to delete a folder?

FTP Server for Windows and Managed File Transfer
Posted:  15 Dec 2008 12:58

this problem does occur randomly. I was notified by one of my users about this issue and I can not tell for now if it happens with other command as well. But I will keep an eye on this. But when writing that script I noticed the problem does occur more frequently when using non-passive FTP. After switching to passive FTP I didn't ran into the problem during development.

Kind regards
Posted:  09 Jan 2009 17:27

anything new regarding this case?
Posted:  19 Feb 2009 12:16   Last Edited By: sysaxsupport
Our developers have not been able to identify a specific issue that could be causing this. In all these cases, do you think that this strange behavior could be caused by a network connection problem?

FTP Server Program for Windows

Copyright © 2021 Codeorigin, LLC - All Rights Reserved.
XML RSS 2.0 XML Atom 1.0