Search found 2 matches

by ejerry
Thu Jun 30, 2016 3:13 pm
Forum: Client - General
Topic: SFTP Downloads - getting 0 byte files
Replies: 4
Views: 12750

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 co...
by ejerry
Mon Jun 27, 2016 8:22 pm
Forum: Client - General
Topic: SFTP Downloads - getting 0 byte files
Replies: 4
Views: 12750

SFTP Downloads - getting 0 byte files

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