I am noticing on some of my uploads, my CoreFTP thread is failing with an error code of 30.
What does error code 30 mean, please?
Exit with error code 30.
Thanks for the tip. However this error is occurring when the file is attempting to upload to the remote FTP server.
The command line reads as follows:
-----
System.Exception: Process exited with code 30. Args: -s -O -site RemoteFTP -u \\hostingserver\dispatch\sampletextfile.txt -p /remote/archive/ -log \\loggingserver\log\upload_move.log
-----
The source file is there, within the dispatch folder and it is always 2Kb or larger in size. I can download from the FTP server, but uploading will always cause this error.
CoreFTP's log shows the following:
-----
12/22/14 12:01 (1965)
Resolving remote.ftp.com...
remote.ftp.com [22] connecting...
SSH-2.0-OpenSSH_4.3
client -> aes128-ctr
server -> aes128-ctr
36:85:88:f4:c2:0b:45:5d:39:22:18:23:9d:33:33:f5
ssh-rsa
Offering public key
PWD
Current directory is '/remote'
CWD /remote/archive
WARNING: Zero length file...sampletextfile.txt - File not found...
sent 4, recd 4
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 0
Total downloaded data: 0
-----
I have ran various scenarios on my development environment, where by I deleted the file before uploading in code and saving the file as an empty 0Kb file, but I can't replicate this error.
Does CoreFTP check the file on the remote server to determine if it successfully uploaded?
The command line reads as follows:
-----
System.Exception: Process exited with code 30. Args: -s -O -site RemoteFTP -u \\hostingserver\dispatch\sampletextfile.txt -p /remote/archive/ -log \\loggingserver\log\upload_move.log
-----
The source file is there, within the dispatch folder and it is always 2Kb or larger in size. I can download from the FTP server, but uploading will always cause this error.
CoreFTP's log shows the following:
-----
12/22/14 12:01 (1965)
Resolving remote.ftp.com...
remote.ftp.com [22] connecting...
SSH-2.0-OpenSSH_4.3
client -> aes128-ctr
server -> aes128-ctr
36:85:88:f4:c2:0b:45:5d:39:22:18:23:9d:33:33:f5
ssh-rsa
Offering public key
PWD
Current directory is '/remote'
CWD /remote/archive
WARNING: Zero length file...sampletextfile.txt - File not found...
sent 4, recd 4
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 0
Total downloaded data: 0
-----
I have ran various scenarios on my development environment, where by I deleted the file before uploading in code and saving the file as an empty 0Kb file, but I can't replicate this error.
Does CoreFTP check the file on the remote server to determine if it successfully uploaded?
It could indicate that the local file is still open by another process prior to calling Core FTP (which could be why Core FTP reads it as zero bytes).
You may want to check the file size prior to the call to Core FTP.
Use corecmd.exe if not already using it (instead of coreftp.exe) to block any Core FTP processes until complete. You may be calling multiple instances, possibly another instance has the file open.
You may want to check the file size prior to the call to Core FTP.
Use corecmd.exe if not already using it (instead of coreftp.exe) to block any Core FTP processes until complete. You may be calling multiple instances, possibly another instance has the file open.