FTP issues with 11.0

Jun 7, 2008
121
0
Hi

Batch files that work with 4NT 8.02.106 seem to fail with 11.0.33 that use FTP.

1. I have found it is necessary to close any connection before attempting to do a new IFTP command

2. Doing

IFTP /C
IFTP /V "ftp://userid:password@80.168.34.151"

results in

Connecting to FTP server.
Connected.
220 ftp.atruk.co.uk FTP server ready
USER userid
331 Password required for userid.
230 User userid logged in.
TYPE I
200 Type set to I
CWD /ToTNS/B20091106.PRG
550 /ToTNS/B20091106.PRG: Not a directory
TCC: 550 /ToTNS/B20091106.PRG: Not a directory "80.168.34.151"

Those last 3 lines, where is it getting that?

Cheers

Stephen Howe
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
Hi

Batch files that work with 4NT 8.02.106 seem to fail with 11.0.33 that use FTP.

1. I have found it is necessary to close any connection before attempting to do a new IFTP command

2. Doing

IFTP /C
IFTP /V "ftp://userid:password@80.168.34.151"

results in

Connecting to FTP server.
Connected.
220 ftp.atruk.co.uk FTP server ready
USER userid
331 Password required for userid.
230 User userid logged in.
TYPE I
200 Type set to I
CWD /ToTNS/B20091106.PRG
550 /ToTNS/B20091106.PRG: Not a directory
TCC: 550 /ToTNS/B20091106.PRG: Not a directory "80.168.34.151"

Those last 3 lines, where is it getting that?

Not from TCC. That's not reproducible here -- anybody else seeing this?
 
May 20, 2008
11,391
99
Syracuse, NY, USA
Not from TCC. That's not reproducible here -- anybody else seeing this?

Yes, it was easy to repro:

Code:
v:\> iftp ilucky/4plugins

v:\> iftp /c

v:\> iftp /v vefatica:********@barnyard.syr.edu
Connecting to FTP server.
Connected.
220 Welcome to barnyard FTP service.
USER vefatica
331 Please specify the password.
230 Login successful.
CWD /4plugins
550 Failed to change directory.
TCC: 550 Failed to change directory. "barnyard.syr.edu"
 
May 20, 2008
11,391
99
Syracuse, NY, USA
I have no idea what that statement is supposed to do ...

Look at what I posted again. That statement (above) made an FTP connection. Then I closed that connection (IFTP /C) and made a new connection to a different host. The point was that in the second connection it tried to CD to a directory remembered from the first connection.


Code:
v:\> iftp ilucky/4plugins

v:\> iftp /c

v:\> iftp /v vefatica:********@barnyard.syr.edu
Connecting to FTP server.
Connected.
220 Welcome to barnyard FTP service.
USER vefatica
331 Please specify the password.
230 Login successful.
CWD /4plugins
550 Failed to change directory.
TCC: 550 Failed to change directory. "barnyard.syr.edu"
 
Jun 7, 2008
121
0
There maybe a 2nd issue

In my original post, the FTP verbose messages said

CWD /ToTNS/B20091106.PRG
550 /ToTNS/B20091106.PRG: Not a directory
TCC: 550 /ToTNS/B20091106.PRG: Not a directory "80.168.34.151"

Well "/ToTNS/" is a directory, but "B20091106.PRG" is a file in that directory. So even if IFTP was resuming the old connection (and restoring the current directory), CWD should not be attempting to change to a file.

If IFTP was correct, that should be
CWD /ToTNS/
and not
CWD /ToTNS/B20091106.PRG

Thanks

Stephen Howe
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
> ---Quote (Originally by rconn)---
> I have no idea what that statement is supposed to do ...
> ---End Quote---
> Look at what I posted again. That statement (above) made an FTP
> connection. Then I closed that connection (IFTP /C) and made a new
> connection to a different host. The point was that in the second
> connection it tried to CD to a directory remembered from the first
> connection.

I did look at your statement, but the first one is meaningless as-is. I
presume you're using an ftp.cfg configuration or an alias of some type.

I cannot reproduce the problem with the attempted directory change. I am
100% certain it's not TCC doing that. It could be the new version of
ipworks caching the current directory, perhaps in conjunction with certain
ftp sites. I'll pass that on to the ipworks developers and see if they have
any ideas.

Rex Conn
JP Software
 
May 20, 2008
11,391
99
Syracuse, NY, USA
I did look at your statement, but the first one is meaningless as-is. I
presume you're using an ftp.cfg configuration or an alias of some type.

I cannot reproduce the problem with the attempted directory change. I am
100% certain it's not TCC doing that. It could be the new version of
ipworks caching the current directory, perhaps in conjunction with certain
ftp sites. I'll pass that on to the ipworks developers and see if they have
any ideas.

My ftp.cfg is empty. In my previous example, "ilucky" is a HOST file alias for "lucky.syr.edu". And my examples don't prefix the FTP spec with "ftp://" because it isn't necessary with IFTP (or so it seems .. . if so, let the help and syntax say so). Here's a more complete example of the same phenomenon.

Code:
v:\> iftp ftp://lucky.syr.edu/4plugins

v:\> dir ftp:v*

 Directory of  ftp://lucky.syr.edu/4plugins/v*

2009-10-26  19:03         <dir>    vc9
2008-12-29  00:00         207,000  vfplugins.zip
           207,000 bytes in 1 file and 1 dir
v:\> iftp /c

v:\> iftp /v ftp://vefatica:********@barnyard.syr.edu
Connecting to FTP server.
Connected.
220 Welcome to barnyard FTP service.
USER vefatica
331 Please specify the password.
230 Login successful.
CWD /4plugins
550 Failed to change directory.
TCC: 550 Failed to change directory. "barnyard.syr.edu"
And here's it's abbreviated version (again).

Code:
v:\> iftp ilucky/4plugins

v:\> dir ftp:v*

 Directory of  ftp://ilucky/4plugins/v*

2009-10-26  19:03         <dir>    vc9
2008-12-29  00:00         207,000  vfplugins.zip
           207,000 bytes in 1 file and 1 dir

v:\> iftp /c

v:\> iftp /v vefatica:********@barnyard.syr.edu
Connecting to FTP server.
Connected.
220 Welcome to barnyard FTP service.
USER vefatica
331 Please specify the password.
230 Login successful.
CWD /4plugins
550 Failed to change directory.
TCC: 550 Failed to change directory. "barnyard.syr.edu"
</dir></dir>
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
> My ftp.cfg is empty. In my previous example, "ilucky" is a HOST file
> alias for "lucky.syr.edu". And my examples don't prefix the FTP spec
> with "ftp://" because it isn't necessary with IFTP (or so it seems .. .
> if so, let the help and syntax say so). Here's a more complete example
> of the same phenomenon.

What happens if you *do* provide a path for the second IFTP? (Even just a
trailing /.)

Rex Conn
JP Software
 
May 20, 2008
11,391
99
Syracuse, NY, USA
What happens if you *do* provide a path for the second IFTP? (Even just a
trailing /.)

The same thing ("by" is a HOST file alias for "barnyard.syr.edu").

Code:
v:\> iftp ilucky/4plugins

v:\> iftp /c

v:\> iftp /v vefatica:********@by/.
Connecting to FTP server.
Connected.
220 Welcome to barnyard FTP service.
USER vefatica
331 Please specify the password.
230 Login successful.
CWD /4plugins
550 Failed to change directory.
TCC: 550 Failed to change directory. "by"
Likewise (exactly) if I use

Code:
vefatica:********@by/public_html
as the second spec.
 
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
M ftp unreliable Support 2
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
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