Corecmd.exe upload occasionally truncates file

Core FTP client questions and answers
Locked
crazybean
Posts: 2
Joined: Wed Mar 28, 2012 1:01 am

Corecmd.exe upload occasionally truncates file

Post by crazybean »

Corecmd.exe: Uploading large files randomly truncates the files. There is no error indication. Running corecmd.exe in a BAT file on Windows Server 2008 64 bit. Using GUI version with same site is always fine. Suspecting bug in Corecmd.exe.

Files are truncated (cot complete, around 30 to 50% os real size) on server. Is there an option to retransmit or check for completeness? Below more logs and details.

Thanks for any help
Crazy Bean

[b] Executed command:[/b]
echo Starting FTP Backup of %backupzip% at %DATE% %TIME%
"C:\Program Files (x86)\CoreFTP\corecmd.exe" -O -site drivehq -u %backupzipbyday% -p /%abbrev%/ -output %ftpout% -log %ftplog%

[b]log of out option:[/b]

2 10 20120328014458 20120328020521 "/rt/rt_Wed.7z" "B:\Backup\rt_Wed.7z"

---> File is around 200 MB

[b]Log: [/b]

230 User logged on.

SYST

215 UNIX emulated by DriveHQ FTP Server.

CWD /rt/

250 CWD command successful. "/rt" is current directory.

PASV

227 Entering Passive Mode (***).

LIST

Connect socket #812 to ***, port 10214...150 Connection accepted

226 Transfer complete

Transferred 530 bytes in 0.001 seconds

TYPE I

200 Type set to I

PASV

227 Entering Passive Mode (*****).

STOR rt_Wed.7z

Connect socket #340 to 66.220.9.50, port 9154...150 Connection accepted

rt_Wed.7z - 106230614 bytes transferred <==== ONLY 100MB (Out of 200MB)

QUIT

221 Bye

[b]Total uploaded files: 0 <==== Why is this - just said complete 5 lines [/b]up.

[b]Total uploaded data: 103,740 KB <==== ONLY 100MB (Out of 200MB)[/b]
ForumAdmin
Site Admin
Posts: 1011
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

The connection is being lost at some point, there's no confirmation from the server that the file was transferred. You should be getting a transfer failed error in %ERRORLEVEL%

If the server supports the XCRC command (Site profile -> Advanced -> transfers) you can use this to also check that a file was uploaded successfully.
crazybean
Posts: 2
Joined: Wed Mar 28, 2012 1:01 am

Post by crazybean »

Switched to ncftpput.exe. Works like a charm, super fast and no more truncated files. It is free to use.
Locked