I am downloading multiple files twice a day on schedule from a folder than can be updated with new files at any time. When it appears the folder is being updated and the download runs (I'm using command line switches like so: -s -O -site MedAssetsDL -d /Downloads/ERA/*.* -p x:\WORK_FOLDER\ inside of a scheduler that runs this at certain times.
I get nothing but 0 byte files. I will get one of the files ok, then the rest are zero byte. But I can also reproduce it opening CoreFTP Lite and dragging files I know are complete to the same folder the automated process sends them to and after dragging one over the next files all fail with these errors:
I'm including all lines leading up to errors to see what is being setup and used by CoreFTP:
welcome to Core FTP, release ver 2.2, build 1778 (U) -- © 2003-2013
WinSock 2.0
Mem -- 2,097,151 KB, Virt -- 2,097,024 KB
Started on Friday June 10, 2016 at 12:09:PM
Looking up host "sftp.medassets.com"
Connecting to 204.11.5.207 port 22
Server version: SSH-2.0-1.36_sshlib GlobalSCAPE
Remote version ignores SSH-2 maximum packet size
Using SSH protocol version 2
Version: SSH-2.0-PuTTY_Local:_Jun_24_2013_11:12:31
Diffie-Hellman group exchange
Diffie-Hellman key exchange SHA-1
ssh-rsa 2048 e4:fa:b6:75:b4:d9:43:9f:82:94:c6:4c:4a:f3:72:f2
AES-128 CBC client->server
HMAC-SHA1 client->server
AES-128 CBC server->client
Welcome to Core FTP, release ver 2.2, build 1778 (U) -- © 2003-2013
WinSock 2.0
Mem -- 2,097,151 KB, Virt -- 2,097,024 KB
Started on Friday June 10, 2016 at 12:09:PM
Looking up host "sftp.medassets.com"
Connecting to 204.11.5.207 port 22
Server version: SSH-2.0-1.36_sshlib GlobalSCAPE
Remote version ignores SSH-2 maximum packet size
Using SSH protocol version 2
Version: SSH-2.0-PuTTY_Local:_Jun_24_2013_11:12:31
Diffie-Hellman group exchange
Diffie-Hellman key exchange SHA-1
ssh-rsa 2048 e4:fa:b6:75:b4:d9:43:9f:82:94:c6:4c:4a:f3:72:f2
AES-128 CBC client->server
HMAC-SHA1 client->server
AES-128 CBC server->client
HMAC-SHA1 server->client
Sent password
Access granted
Opened channel for session
Started a shell/command
PWD
Current directory is '/'
Keep alive off...
Transferred 125 bytes in 0.110 seconds
CWD /Downloads
Transferred 187 bytes in 0.114 seconds
CWD /Downloads/ERA/
Transferred 19,535 bytes in 0.218 seconds
RETR /Downloads/ERA/AE_1659360220_20160613_816159540000921_Detail_113472.pdf
Error on read: 敲畱ç¥â´ä‘‰æ´ ç©æ…æ´hæ…晬牯æ•â¤å¡†å½ä…Žä•ç€ æ¡æ•«t
AE_1659360220_20160613_816159540000921_Detail_113472.pdf - 215040 bytes transferred in 1 seconds
RETR /Downloads/ERA/AE_1659360220_20160613_816159540000921_Detail_113472.pdf
AE_1659360220_20160613_816159540000921_Detail_113472.pdf - 0 bytes transferred in 2 seconds
RETR /Downloads/ERA/AE_1659360220_20160613_816159540000921_Detail_113472.pdf
AE_1659360220_20160613_816159540000921_Detail_113472.pdf - 0 bytes transferred in 0 seconds
RETR /Downloads/ERA/AE_1659360220_20160613_816159540000921_Detail_113472.pdf
AE_1659360220_20160613_816159540000921_Detail_113472.pdf - 0 bytes transferred in 0 seconds
Can anyone help why I'm getting these errors.? It does seem to only happen when files are being written to the folder I'm downloading from. I have it set to skip 0 byte files and again I have been able to reproduce when no files are coming in and it allows one file to download then the rest are 0 but then later I can try again and it may allow the same files to come down ok dragging them one by one
thanks
Jerry
SFTP Downloads - getting 0 byte files
0 byte files
I'm sure it's a case where files are being written at the time the download runs. I use FTP a lot for simple SFTP uploads/downloads, but am not a guru and hoped there could be a work around but I don't believe there is within CoreFTP. I had hoped there was an advanced option I was unaware of that could help but I believe It would need to be a process change.
The Vendor has offered to control when the files are written to the FTP share (top or bottom of the hour) but they want a hefty amount so I thought it was worth looking into it first.
(I still can't explain getting the "error on read" when I manually dragged files I knew were complete as well. Like I said, I could try that again later and it work just fine. When erroring, just like during an automated download, the first file comes down ok and the subsequent files fail)
Thanks,
Jerry
The Vendor has offered to control when the files are written to the FTP share (top or bottom of the hour) but they want a hefty amount so I thought it was worth looking into it first.
(I still can't explain getting the "error on read" when I manually dragged files I knew were complete as well. Like I said, I could try that again later and it work just fine. When erroring, just like during an automated download, the first file comes down ok and the subsequent files fail)
Thanks,
Jerry
Re: SFTP Downloads - getting 0 byte files
I am having the same issue. I got latest version 1922. I am not able download multiple using following command. I tried different scenarios but no luck 
-s -O -site TestFTP -d /home/msachani/*.txt -p C:\Users\ -log C:\Users\20180614.Log
Please help me!!!!


-s -O -site TestFTP -d /home/msachani/*.txt -p C:\Users\ -log C:\Users\20180614.Log
Please help me!!!!
-
- Site Admin
- Posts: 1001
- Joined: Mon Mar 24, 2003 4:37 am
Re: SFTP Downloads - getting 0 byte files
uncheck Advanced -> SSH -> "use pipelining"