FTP - Server Directory - NOT able to "LIST" - DESP

  • webbie
  • Born
  • Born
  • webbie
  • Posts: 2

Post 3+ Months Ago

I am having extreme difficulty LISTING (and hence uploading) to my FTP Server. Details of the problem are given below; please help if you can!

Server:- ftp.fortunecity.com
Client:- Free FTP Manager version 2.2.14b
Router:- BT Voyager 2000 wireless

Situation:- able to connect, but "Time Out" after "LIST" command.

FortuneCity Support:- No issues at their end. Suggest using "Passive" connection, checking configuration of the firewall. Their FTP servers use high-end TCP ports (10000 and upwards). May need to make sure that these are not blocked.

Latest Situation:- I have ..... configured the FTP client in "passive" mode, reduce the firewall level from "medium" to "low", turned on debugging on the client

NOT Sure:- how to check/set TCP ports; Desperately Urgent; please see connection log below .....
>[10:46:51] Status: Connecting to ftp.fortunecity.com ...
>[10:46:51] Trace: FtpControlSocket.cpp(923): OnConnect(0) OpMode=1
>OpState=-1 caller=xxx
>[10:46:51] Status: Connected with ftp.fortunecity.com. Waiting for welcome
>message...
>[10:46:51] Trace: FtpControlSocket.cpp(746): OnReceive(0) OpMode=1
>OpState=-1 caller=xxx
>[10:46:51] Response: 220 server ready. Enter Username.
>[10:46:51] Command: USER yyy
>[10:46:51] Trace: FtpControlSocket.cpp(746): OnReceive(0) OpMode=1
>OpState=0 caller=xxx
>[10:46:51] Response: 331 Welcome 'xxx', enter password to login.
>[10:46:51] Command: PASS *******
>[10:46:51] Trace: FtpControlSocket.cpp(746): OnReceive(0) OpMode=1
>OpState=3 caller=yyy
>[10:46:51] Response: 230-Welcome to FortuneCity.Com.
>[10:46:51] Response:
>[10:46:51] Response: Your quota is zzzKb.
>[10:46:51] Response: You have used aaaKb.
>[10:46:51] Response:
>[10:46:51] Response: If you have trouble downloading please try
>[10:46:51] Response: using Passive(PASV) Mode.
>[10:46:51] Response:
>[10:46:51] Response: 230 User 'xxx' login successful.
>[10:46:51] Command: FEAT
>[10:46:51] Trace: FtpControlSocket.cpp(746): OnReceive(0) OpMode=1
>OpState=-13 caller=yyy
>[10:46:51] Response: 500 FTP: command not recognised.
>[10:46:51] Command: SYST
>[10:46:52] Trace: FtpControlSocket.cpp(746): OnReceive(0) OpMode=1
>OpState=-14 caller=yyy
>[10:46:52] Response: 215 UNIX Type: L8
>[10:46:52] Status: Connected
>[10:46:52] Trace: FtpControlSocket.cpp(3885): ResetOperation(1) OpMode=1
>OpState=-14 caller=yyy
>[10:46:52] Trace: FtpControlSocket.cpp(1135): List(FALSE,0,"/","",1)
>OpMode=0 OpState=-1 caller=yyy
>[10:46:52] Status: Retrieving directory listing...
>[10:46:52] Command: PWD
>[10:46:52] Trace: FtpControlSocket.cpp(746): OnReceive(0) OpMode=4
>OpState=0 caller=yyy
>[10:46:52] Response: 257 "/" is the current directory.
>[10:46:52] Trace: FtpControlSocket.cpp(1135): List(FALSE,0,"","",0)
>OpMode=4 OpState=0 caller=yyy
>[10:46:52] Command: TYPE A
>[10:46:52] Trace: FtpControlSocket.cpp(746): OnReceive(0) OpMode=4
>OpState=8 caller=yyy
>[10:46:52] Response: 200 TYPE is now ASCII.
>[10:46:52] Trace: FtpControlSocket.cpp(1135): List(FALSE,0,"","",0)
>OpMode=4 OpState=8 caller=yyy
>[10:46:52] Command: PASV
>[10:46:52] Trace: FtpControlSocket.cpp(746): OnReceive(0) OpMode=4
>OpState=7 caller=yyy
>[10:46:52] Response: 227 Entering Passive Mode (64,152,35,180,236,27)
>[10:46:52] Trace: FtpControlSocket.cpp(1135): List(FALSE,0,"","",0)
>OpMode=4 OpState=7 caller=yyy
>[10:46:52] Trace: TransferSocket.cpp(577): SetActive() caller=yyy
>[10:46:52] Command: LIST
>[10:47:13] Trace: TransferSocket.cpp(465): OnConnect(10060)
>caller=yyy
>[10:47:13] Error: Transfer channel can't be opened. Reason: A connection
>attempt failed because the connected party did not properly respond after a
>period of time, or established connection failed because connected host has
>failed to respond.
>[10:47:13] Trace: TransferSocket.cpp(1158): Close() caller=yyy
>[10:47:13] Trace: FtpControlSocket.cpp(1881): TransferEnd(68) OpMode=4
>OpState=9 caller=yyy
>[10:47:13] Trace: FtpControlSocket.cpp(1135): List(TRUE,64,"","",0)
>OpMode=4 OpState=9 caller=yyy
>[10:47:13] Trace: TransferSocket.cpp(97): ~CTransferSocket()
>caller=yyy
>[10:47:13] Trace: TransferSocket.cpp(1158): Close() caller=yyy
>[10:47:13] Trace: FtpControlSocket.cpp(3885): ResetOperation(4) OpMode=4
>OpState=9 caller=yyy
>[10:47:13] Error: Could not retrieve directory listing
>[10:47:21] Command: PWD
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

Test the connection using a command prompt instead of using the client. Let's say the file you want to upload is called test.exe, which is a binary file and let's say it's in C:\windows
Open the command prompt and cd to that directory. Here's an example:
C:\DOCUME~1>cd ..

C:\>cd windows

C:\WINDOWS>ftp 192.168.0.99
Connected to 192.168.0.99.
220 queyosepa.local FTP server (Version 6.00LS) ready.
User (192.168.0.99:(none)): don2007
331 Password required for don2007
Password:
230 User don2007 logged in.
ftp> binary
200 Type set to I.
ftp>ls -asl
0 -rw-r--r-- 1 don2007 don2007 0 Feb 18 2006 vidx0000.htm
2 -rw-r--r-- 1 don2007 don2007 474 Apr 7 2006 wmisc.vbs
719216 -rw-r--r-- 1 don2007 don2007 736096256 Sep 14 2006 some.iso
226 Transfer complete.
ftp: 9910 bytes received in 0.05Seconds 210.85Kbytes/sec.
ftp>put text.exe
Transfer complete
ftp> quit
221 Goodbye.

C:\WINDOWS>
  • webbie
  • Born
  • Born
  • webbie
  • Posts: 2

Post 3+ Months Ago

Hi Don2007

Thanks for your comments.

I have tried via command prompt. I am able to "connect" and able to go through the motions of "upload" and "download". There are two specific situations:-
a) the command line locks up and the only way to release is via "CTRL-V"
b) the downloaded file (recently uploaded) is "0" bytes, which leads me to believe that the size of uploaded file stored on the web server is also "0" bytes. This is confirmed by checking the URL, which is shows a blank page and the usual confirmation "done".
c) Could you please provide the exact syntax for using ftp in "passive" mode via command line. I have tried "PASV", but it is rejected as being "invalid command".

Thanks again for your kind help.
webbie
-----------
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

Some servers aren't configured to do passive mode. I just tested my own FTP server (FreeBSD), which I only use on my LAN and another server where I have a shell account. I get invalid command on both. I see how I could change that on my local server but of course, there is no way I can change the one where my shell account is.

If they are telling you to use passive mode, then you shouldn't be getting invalid command. As far as firewalls go, either disable yours completely for now or make sure that FTP is in the exceptions list. If you still have problems, try it from another machine.

Also, after you connect with the client, open a command prompt and run netstat -ano
Note the port #s on the connection.
  • rllunzmann
  • Graduate
  • Graduate
  • rllunzmann
  • Posts: 101
  • Loc: Wisconsin

Post 3+ Months Ago

perhaps try using another ftp client as well, or try CoreFTP for free, you can justify different connection methods through their too.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.