Incomplete uploads

Report client bugs
Post Reply
brianq1
Posts: 20
Joined: Tue Mar 18, 2008 12:39 pm

Incomplete uploads

Post by brianq1 »

Recently we've been experiencing incomplete uploads using LE Version 2.1 (build 1596). We have several nightly jobs that utilize the command-line feature and it happens at least once a week and occurs on different site profiles (one is SSL Direct and the other is Auth SSL) - I have not been able to pinpoint the issue and cannot reproduce it on demand. The log does not indicate any kind of error.

I have tried unchecking SSL Transfer, but it does not make a difference - sometimes the transfer completes, other times it does not.

The below log was generated last night for a file that is 447KB in size. As you can see, only 14KB was transferred.

Connect socket #1764 to <REMOVED>, port 2121...TLSv1, cipher TLSv1/SSLv3 (IDEA-CBC-SHA) - 128 bitUSER <REMOVED>

331 User name okay, need password.

PASS **********

230 User logged in, proceed.

SYST

215 UNIX Type: L8

PBSZ 0

200 PBSZ command OK. Protection buffer size set to 0.

PROT P

200 PROT command OK. Using private data connection.

PASV

227 Entering Passive Mode (216,30,18,32,7,218)

LIST

Connect socket #1692 to <REMOVED>, port 2010...TLSv1, cipher TLSv1/SSLv3 (IDEA-CBC-SHA) - 128 bit150 Opening ASCII mode data connection for /bin/ls.

226 Transfer complete.

PWD

257 "/" is current directory.

TYPE I

200 Type set to I.

PBSZ 0

200 PBSZ command OK. Protection buffer size set to 0.

PROT C

200 PROT command OK. Using clear data connection.

PASV

227 Entering Passive Mode (216,30,18,32,7,208)

STOR Mapelig834.txt.pgp

Connect socket #1688 to <REMOVED>, port 2000...150 Opening BINARY mode data connection for Mapelig834.txt.pgp.

Mapelig834.txt.pgp - 14819 bytes transferred

QUIT

221 Goodbye!

Total uploaded files: 0

Total uploaded data: 14 KB

Total downloaded files: 0

Total downloaded data: 0
brianq1
Posts: 20
Joined: Tue Mar 18, 2008 12:39 pm

Post by brianq1 »

Here is my command line:

"D:\Program Files\CoreFTP\coreftp.exe" -s -O -delsrc -site ThisSite -u S:\SSIS\Mapelig834.txt.pgp -log S:\SSIS\Log\%DATE:~-4%%DATE:~4,2%%DATE:~7,2%.log

I am unfamiliar with corecmd.exe and I'm a bit confused after reading the help topic. Can you provide an example?

Thanks CP!
brianq1
Posts: 20
Joined: Tue Mar 18, 2008 12:39 pm

Post by brianq1 »

I made the changes to use corecmd.exe and return %ERRORRESULT%. So far so good. Thanks CP.
brianq1
Posts: 20
Joined: Tue Mar 18, 2008 12:39 pm

Post by brianq1 »

CP, I had the issue occur again last night - this time I was using corecmd.exe and the %ERRORRESULT% returned was 10.

I am going to try to adjust the receive/send timeout values. I noticed that these are both 0 by default. Do you have any suggested values to start with?

Thanks.
brianq1
Posts: 20
Joined: Tue Mar 18, 2008 12:39 pm

Post by brianq1 »

Thanks CP...I'll do some testing with 90 and 120.

In the meantime I have added a loop to my batch file to retry the transfer up to 5 times before giving up. This is allowing me to get around the issue for now because I never seem to encounter the issue in successive tries. I'm including it here for others that might find it helpful:

Set /a Count = 0

:DoUntil
Set /a Count += 1
"D:\Program Files\CoreFTP\corecmd.exe" -s -O -delsrc -site MySite -u S:\test.txt.pgp -log S:\%DATE:~-4%%DATE:~4,2%%DATE:~7,2%.log
IF %Count% == 5 GOTO Exit
IF %ERRORLEVEL% NEQ 0 GOTO DoUntil

:Exit
EXIT %ERRORLEVEL%
Post Reply