Page 1 of 1

FTP-Client hangs sometimes

Posted: 13 Nov 2009, 22:03
by PeZe
AS V2.52

Hi there.
I have a problem ;-)
May be, there is a command lost in space?
One year ago there a no problems with this hoster.
Greetings from germany
Peter
(I 've read the thread with 2.52 beta, but I think this is an other problem?)
Copy 14 Files and 1 Directory from xxxx.n e t - h o us t i ng.de
Host: "xxxx.n e t - h o u s t i ng.de", port: 21.
Log UID is 33, time is 13.11.2009 - 21:18:23.

(21:18:23): Using connection from panel...

(21:18:23): Listing path "/html/...."...
CWD /html/....
250 Directory successfully changed.
PWD
257 "/html/....
PORT 192,168,1,35,10,103
200 PORT command successful. Consider using PASV.
LIST -a
150 Here comes the directory listing.
226 Directory send OK.
(21:18:24): Text listing was parsed by "UNIX1" server type...
(21:18:25): Downloading file "graulinks.jpg"...
PORT 192,168,1,35,10,104
200 PORT command successful. Consider using PASV.
TYPE I
200 Switching to Binary mode.
....
CWD /html/dir
250 Directory successfully changed.
PORT 192,168,1,35,10,113
200 PORT command successful. Consider using PASV.
TYPE A
200 Switching to ASCII mode.
...
150 Opening ASCII mode data connection for kontakt.php (823 bytes).
226 File send OK.
(21:18:40): Downloading file "menu.php"...
PORT 192,168,1,35,10,123
200 PORT command successful. Consider using PASV.
RETR menu.php
150 Opening ASCII mode data connection for menu.php (493 bytes).
226 File send OK.
(21:18:41): Downloading file "persoenlich.php"...
PORT 192,168,1,35,10,124
200 PORT command successful. Consider using PASV.
RETR persoenlich.php
150 Opening ASCII mode data connection for persoenlich.php (2627 bytes).
226 File send OK.
(21:18:41): Downloading file "praxis.php"...
PORT 192,168,1,35,10,125

200 PORT command successful. Consider using PASV.
RETR praxis.php
500 Unknown command.
(21:18:41): Downloading file "weitereangebote.php"...

PORT 192,168,1,35,10,126
500 Unknown command.
RETR weitereangebote.php
500 Illegal PORT command.
(21:18:42): 425 Use PORT or PASV first.
(21:18:49): Downloading file "praxis.php"...
PORT 192,168,1,35,10,127
My PC has the IP 192.168.1.35

Re: FTP-Client hangs sometimes

Posted: 16 Nov 2009, 10:14
by Petr Solin
FTP server recommends to use PASV mode, do you have tried it? In Connect FTP Server dialog click Advanced and check Use passive transfer mode box.

It seems that FTP server is somehow confused, it returns "500 Unknown command." reply to "RETR" (retrieve file) command, but all previous RETR commands were successful. Maybe try to update FTP server software (if it is your server certainly). ;-)

What does it mean that "FTP hangs"? Salamander or FTP progress window is not-responding or just it stops downloading and you can close windows and retry download manually? FTP client is made to retry downloads if they fail, which is probably the case here - but server is confused, so it sends only invalid replies, so retrying is not successful.

Re: FTP-Client hangs sometimes

Posted: 16 Nov 2009, 10:44
by PeZe
Hi Petr
Passv Mode is checked, I think it is default, because I've never changed it.

And update the server SW, hmm, I'll ask my provider ;-)

"FTP hangs":
Sorry, my fault, wrong description. AS responses to all the commands, it only stop downloading.

I think the server is a little "out of order" (wrong state of the connection)

May it be helpfull after receiving a "500 Unknown command." to do something like sending
pwd or an other simple command?

Thanks from Germany
Peter

Re: FTP-Client hangs sometimes

Posted: 16 Nov 2009, 11:09
by PeZe
I've test in on my other provider.
Copying a lot of files from the host to my PC:
After a while a popup appears:
...
Error description:
500 ETR not understood

may be there is a "R" gone lost?
AFAIK it happends nether on AS 2.51 or earlier

Thanks, Peter

Re: FTP-Client hangs sometimes

Posted: 16 Nov 2009, 11:14
by Petr Solin
PeZe wrote:Passv Mode is checked, I think it is default, because I've never changed it.
And isn't it only in the third state? Try to click on it to see all three states: ON/OFF/third state. It is also possible that server does not support PASV mode, so FTP client switches to PORT mode automatically.
PeZe wrote:May it be helpfull after receiving a "500 Unknown command." to do something like sending
pwd or an other simple command?
We don't want to complicate our client to bypass similar server problems (moreover it's not frequent).

Re: FTP-Client hangs sometimes

Posted: 16 Nov 2009, 11:16
by Petr Solin
PeZe wrote:AFAIK it happends nether on AS 2.51 or earlier
Please try 2.51 now (server may be broken just for couple of weeks): ftp://ftp.altap.cz/pub/altap/salamand/as251.exe

I do not believe there is any difference between 2.52 and 2.51 in this respect.

Re: FTP-Client hangs sometimes

Posted: 16 Nov 2009, 11:39
by PeZe
Petr Solin wrote: And isn't it only in the third state? Try to click on it to see all three states: ON/OFF/third state. It is also possible that server does not support PASV mode, so FTP client switches to PORT mode automatically.
Bingo!
After changing it to passiv mode I can't reproduce this error on both servers.

Thanks for your fast support.

Peter