FTP worked in v.7.50a but not in v.7.55a and later

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
HeRo
Junior Member
Junior Member
Posts: 38
Joined: 2011-01-19, 19:13 UTC
Contact:

FTP worked in v.7.50a but not in v.7.55a and later

Post by *HeRo »

Hi!

I have used TotCmd daily for many years.

I use FTP on 2 sites. They both work in version v.7.50a but not in v.7.55a and 7.56a. (I reinstalled v.7.55a and tested 1 of the sites.)
I don't know how to find a log of what happens, but the log shows the following when it 'crashes':

MLSD (Hent mappe)
PORT failed, try PASV mode!
PASV

I use Win XP Pro.

Best regards,
HeRo
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, HeRo.

It would be really helpful to learn more details on the problem. Else it will be hard to give any good piece of advice.

Please, activate the T.C. FTP log: Configuration => Options => FTP. Tick the option [X] Create a log file. And specify a valid path to the logfile. Something like %TEMP%\tc7ftp.log will be fine.

Then connect to one of the FTP servers which give you trouble. Once the connection has failed, pick the T.C. FTP logfile and post it here.
(Make sure that you camouflaged confidential details like real account names and real passwords before posting.)

Kind regards,
Karl
HeRo
Junior Member
Junior Member
Posts: 38
Joined: 2011-01-19, 19:13 UTC
Contact:

Post by *HeRo »

Dear everybody

Now I have tried posting the result TWICE, but both times I got the following error message, although I tried removing URLs (of the FTP-server). So I am giving up. If someone is interested, I have the information on my PC...:

General Error

In order to try to prevent spammers, we do not allow our users to post URLs in any form until they have posted at least 1 legitimate posts and have been with us for more than 1 days. We appreciate your understanding in this matter in order to help us eliminate spam from this forum. If you have somehow gotten this message even though you meet both of the criteria, please let us know ASAP.

Thanks!
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, HeRo.

As the forum error message suggests, please, retry posting the logfile on the 20th. It will be your third post and you will have been a forum user for more than 1 day then.

Kind regards,
SvenBomwollen
HeRo
Junior Member
Junior Member
Posts: 38
Joined: 2011-01-19, 19:13 UTC
Contact:

Post by *HeRo »

OK... see you tomorrow...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50824
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It sounds like your server reports that it supports the MLSD command, but the command doesn't work (or the router/firewall cannot handle it).

Therefore please turn off MLSD in the settings of the FTP connection: Ctrl+F - Edit - uncheck "MLSD" option.
Author of Total Commander
https://www.ghisler.com
HeRo
Junior Member
Junior Member
Posts: 38
Joined: 2011-01-19, 19:13 UTC
Contact:

Post by *HeRo »

Hi again...!

OK... Here is the FTP-session that does NOT work, because I am using tot.cmd.v.7.56a:

----------
Connect to: (20-01-2011 00:06:27)
hostname=yyyyy
username=xxxxxxx
startdir=/webspace/httpdocs
yyyyy=zzzzz
220 ProFTPD 1.3.2e Server (ProFTPD) [zzzzz]
USER xxxxxxx
331 Password required for xxxxxxx
PASS ***********
230 User xxxxxxx logged in
SYST
215 UNIX Type: L8
FEAT
211-Features:
MDTM
MFMT
LANG bg-BG;zh-TW;ko-KR;it-IT;ru-RU;en-US*;fr-FR;zh-CN
UTF8
AUTH TLS
MFF modify;UNIX.group;UNIX.mode;
MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
PBSZ
PROT
REST STREAM
SIZE
211 End
OPTS UTF8 ON
200 UTF8 set to on
CWD /webspace/httpdocs
250 CWD command successful
Connect ok!
PWD
257 "/webspace/httpdocs" is the current directory
Hent mappe
TYPE A
200 Type set to A
PORT 192,168,1,100,10,156
200 PORT command successful
MLSD
PORT failed, try PASV mode!
PASV

(Here I actively disconnected.)

QUIT


And here is the FTP-session that works, with the same FTP-server, but using tot.cmd.v.7.50a:


----------
Connect to: (20-01-2011 00:09:46)
hostname=yyyyy
username=xxxxxxx
startdir=/webspace/httpdocs
yyyyy=zzzzz
220 ProFTPD 1.3.2e Server (ProFTPD) [zzzzz]
USER xxxxxxx
331 Password required for xxxxxxx
PASS ***********
230 User xxxxxxx logged in
SYST
215 UNIX Type: L8
FEAT
211-Features:
MDTM
MFMT
LANG bg-BG;zh-TW;ko-KR;it-IT;ru-RU;en-US*;fr-FR;zh-CN
UTF8
AUTH TLS
MFF modify;UNIX.group;UNIX.mode;
MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
PBSZ
PROT
REST STREAM
SIZE
211 End
OPTS UTF8 ON
200 UTF8 set to on
CWD /webspace/httpdocs
250 CWD command successful
Connect ok!
PWD
257 "/webspace/httpdocs" is the current directory
Hent mappe
TYPE A
200 Type set to A
PORT 192,168,1,100,10,167
200 PORT command successful
LIST
150 Opening ASCII mode data connection for file list
Download
Venter på server...
226 Transfer complete

etc. etc.

(Here I actively disconnected.)

QUIT
221 Goodbye.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, HeRo.

T.C. 7.50a, relevant commands - in comparison to T.C. 7.56a
PORT 192,168,1,100,10,167
200 PORT command successful
LIST
T.C. 7.56a, last FTP command that succeeds and first command that fials:
PORT 192,168,1,100,10,156
200 PORT command successful
MLSD
PORT failed, try PASV mode! (<== the FTP server does not understand MLSD, so its suggestion is pure nonsense)
Conclusion:
Follow Christian's advice and disable MLSD explicitly for this FTP server:

Inside T.C. 7.56a, press Ctrl-F, select the server yyyyy in the list of FTP servers. Click on "Edit". Click on the tab "Advanced". De-activate the option [_] Use MLSD for directory listings (grayed=auto-detect). => The little square box must be empty.

Next retry your desired FTP operation towards this FTP server.

Kind regards,
Karl
HeRo
Junior Member
Junior Member
Posts: 38
Joined: 2011-01-19, 19:13 UTC
Contact:

Post by *HeRo »

Great!! That works perfectly. Thanks!
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, HeRo.

You're welcome. :)
Good to know that your problem has been solved.

Kind regards,
Karl
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to the English forum.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

As I explained in your other thread, you want and need MSLD. :)

Your server reports itself as ProFTPD 1.3.2e and it does support MLSD and even changelog for newer versions than yours does not indicate anything wrong with it. And I'm sure such bug wouldn't survive for so long.

So it leaves you with router(s) and firewall(s) on the way. Do you know anything about those?

But first start with enabling passive mode in connection properties. It probably won't help, but generally it's better to have it this way.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50824
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Some routers only open the additional data connection ports for ftp when they see the PORT/PASV command followed by a LIST command. They will not open the port when they see MLSD because they were created before MLSD became an Internet standard (or the router makers are just ignorants). So even when the server supports it, the router may not.
Author of Total Commander
https://www.ghisler.com
Post Reply