ftp unreliable

Sep 5, 2014
10
0
First: I could not search for a similar problem, since the search does not allow the too short word "ftp".

I experience, that the ftp solution within tcc is very unreliable. Regardles if "iftp" or using "ftp:...".
There are many connection interruptions. Before I switched to the tcc built in ftp, i used a dedicated ftp client.
I had literally zero problems with that. What am I doing wrong?

The code below works 50% of all tries. The other 50% it fails (resulting file is too small,
which is an interrupt before the transfer has finished).

E.g. I use:

Code:
set _bdate=[1-9][0-9](-[0-9]{2}
set _bmask=access_log_XXX_YY_20%_bdate)
set _fmask="::^^%_bmask{2}\.gz$"
copy /b /q ftp://%_fuser:%_fpass@%_fhost/%_fdir/%_fmask .
(%_fuser etc. are of course set...)

Thanks for any help!
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
I can't reproduce any problem with ftp here (I use it daily). Try IFTP /V and see if it displays any messages about why it's failing. You might also try the IFTP /R option if your host is timing out.

Is this with a particular FTP host or any FTP host? If it's with a particular host, the only way I will be able to debug it is if I can get access to that host for testing.
 
Sep 5, 2014
10
0
I just use it with 1 ftp server. This is my professional webhosters ftp server. I download the logfiles from there. I never had problems using either FileZilla, Dreamweaver (using ftp) or Cygwin's NcFTP.

I created a small test file (test_upload.btm). The first run is ok (test_1.txt). All further runs fail with ftp reply code 426 (test_n.txt). A exit and new start of tcc has the same effect. 1st run is ok, further runs fail. Maybe something with internal variables which are valid after a iftp /c and disturb the next run?

Same file with above named clients has no problems with repetetive transfers.

Update some seconds after above post: I enabled detailed log messages in FileZilla and saw, that passive mode is used. So I changed the iftp command to iftp /p1 /v. From that change on, I could repeat the transfers without error. Is passive mode available only with iftp? What is the default with copy ftp:...?
 

Attachments

  • test_upload.btm
    314 bytes · Views: 88
  • test_1.txt
    1.3 KB · Views: 86
  • test_n.txt
    1.5 KB · Views: 90
Last edited:
Similar threads
Thread starter Title Forum Replies Date
M Strange error messages from TCC in FTP copy Support 7
vefatica FTP SSL, how do I see it work? Support 3
P Problem with FTP copies Support 10
Jay Sage Directory Alias Access to FTP Servers Support 2
Brian Woodward How to? Does FTP.CFG only support SSL over port 21? (Newbie) Support 6
cgunhouse FTP Error Support 5
S iftp copying pgp files from ftp is not working Support 11
vefatica Fixed COPY /S ftp://... Support 1
C WAD copy /u ftp local with Timeout? Support 5
vefatica FTP copy interrupted Support 2
C How to? COPY ftp folder query Support 7
jadaml Documentation Is COPY realy doesn't work for any HTTP and FTP? Support 3
vefatica IFTP and active FTP Support 13
S Return of FTP copy bug in 16.02.48 Support 12
S WAD FTP copy fails in 16.00.25 Support 24
fpefpe How to? ftp server Support 9
mikea How to? TCC and ftp:// commands Support 7
dcantor WAD dir "ftp:// ..." fails in TCC 15 Support 7
C v15 not on ftp site? Support 8
S Attacks, FTP vs. FTPS, downloading Support 19
S WAD COPY from FTP site fails in 14.03.51 Support 9
vefatica WAD DIR ftp ... broken Support 2
E No file names in dir "ftp..." Support 1
S dir for ftp connection - missing files sometimes Support 1
C ftp://lucky.syr.edu/ Support 11
A How to? Instruct COPY to delete file if only partially copied (via FTP) Support 8
C Vince - your FTP'ed jpsupport.zip's Support 1
S TMCD 13.04.61 not on FTP site Support 5
vefatica Win7, FTP, TCC Support 1
R ftp server password required to download pdf help Support 3
D cannot get into ftp://jpsoft.com/oldver Support 1
D ftp crashes tcmd v12.11 and 13.01 Support 10
S FTP site; FTP copy Support 4
Peter Bratton Update the ftp site Support 1
S DEL on FTP site : complaint about missing DESCRIPT.ION Support 1
S MOVE from FTP directory to another FTP directory - bug?? Support 2
C Active FTP Problems Support 4
noahcoad copy /w to FTP does not set time stamp Support 1
P Support for national letters in filenames in ftp operations Support 1
S FTP site; IFTP access Support 10
C AVG says FTP.CFG is locked ? Support 1
T FTP.CFG file aliases Support 5
R TC9 FTP strangeness - solved - for KB only Support 1
J switching to passive ftp Support 4
S FTP gremlins Support 1
S FTP issues with 11.0 Support 9
K copy ftp: with /w problem Support 4
H Another multiple FTP password prompt issue Support 2
J Problems with FTP after IFTP timeout Support 2
H Double prompt for password with * in FTP syntax Support 3

Similar threads