Monday 25 June 2012

Filezilla Errors

FileZilla connection timed out error message




If you get this error message, you will need to go to Edit, Settings
Under the Connection option, find the timeout section
You will need to change the timeout in seconds to a higher number (i.e. 160)
Click ok
Try to connect again; the error message should be resolved


To View Overall:::Network Configrutaion
http://wiki.filezilla-project.org/Network_Configuration

Testing:
http://ftptest.net/

==============================
Filezilla Error: Failed to retrieve directory listing

 
Filezilla Error: Failed to retrieve directory listing
Error: Connection timed out

You might have faced this issue because of default setting of Connection in your Filezilla like this :

FTP >> Active Mode: Get External IP Address From This URL, Which pointed to http://ip.filezilla-project.org/ip.php .

This is the source of the problem. If you go to above mentioned URL, you will probably get a result of 127.0.0.1. If the Filezilla client needs the external address and is given 127.0.0.1 (localhost) then there will be problems in connection.

You need to configure your Filezilla client as mentioned below :

Open Filezilla, go to Edit >> Settings >> Click on Connection >> FTP: Choose Active >> Click on Connection >> FTP >> Active Mode: Select “Ask your operating system for the external IP address” >> Click on Connection >> FTP >> Passive Mode: Choose Fall Back to Active Mode >> Press OK.

Try connecting to your FTP site once again and it should work now.

If you are behind any firewall/security settings then make sure that they are configured to allow FTP access or disable the firewall/security settings and try again connecting to your FTP site.

If you have root access to your server then you may have a look to the logs (/var/log/secure and /var/log/messages files) for more information regarding FTP connectivity issue.

Connection Time Out in FTP

Usually Time Out Error occurs when we try to upload large files. We need to check following at our local system:

1. Make sure that the FTP settings in your client is correct like as hostname, username and password, port to connect etc.

2. Try enabling “passive mode” in FTP client.

3. Check personal firewall/security settings, programs like Norton Anti-Virus to make sure that they are configured to allow FTP access. Try turning these programs completely off and retry FTP.

4. Check for any timeout settings in local FTP client and try increasing this.

4. If you continue to have trouble, the time out via the FTP is most likely because of one or more dropped packets at your ISP or at any of the intermediate routers. When you connect to our server, you are usually going through 14-20 other routers before it gets to remote destination. If any one of them lose a packet it can cause problems with FTP. One way to get around this is to have a constant PING open – this keeps the connection through the different servers alive.

In Windows Machine :

open a DOS window on your computer and type the following, it will keep a ping open:
ping -t domainname.com

In Linux Machine, use the command line below:

ping domainname.com

PS : Replace “domainname.com” with your domain name. Then once your upload has completed, press Control-C to cancel the ping.
==============================
use Filezilla FTP client to manage files on many servers. I had a specific Filezilla client that refused to retrieve a directory listing. Other computers could connect to the same server just fine. Thusly I knew it was a client configuration problem.
I ended up with messages like this:
Response: 200 PORT command successful. Consider using PASV.
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing
I ran the Filezilla configuration wizard to diagnose the problem. The configuration wizard utility ran for a while reporting success until the very end. After timing out, I received the following messages:
Response: 200 PORT command successful
LIST
Response: 150 opening data connection
Response: 503 Failure of data connection.
Server sent invalid reply.
Connection closed
Searching the Internet led to not so helpful posts such as "Please read the Network Configuration guide.". After analyzing the situation, it turns out the solution isn't so obvious. My Client had the default setting of Connection -> FTP -> Active Mode: Get External IP Address From This URL. Which pointed to http://ip.filezilla-project.org/ip.php . This is the source of the problem. If you go to that URL, you will probably get a result of 127.0.0.1. If the Filezilla client needs the external address, and is given 127.0.0.1, then there will be problems indeed!
If you have a similar problem with Filezilla, and the problem persists even when the Windows Firewall is disabled,

here is what you need to do:
  • Open Filezilla, go to Edit -> Settings
  • Click on Connection -> FTP: Choose Active
  • Click on Connection -> FTP -> Active Mode: Select "Ask your operating system for the external IP address"
  • Click on Connection -> FTP -> Passive Mode: Choose Fall Back to Active Mode
  • Press OK.
Try connecting to your FTP site once again. Works!

Update: In some cases, and for reasons unknown, Filezilla just won't work. I have found that coreFTP is a nice FTP program that is free Windows software which includes the client FTP features you need. Features like SFTP (SSH), SSL, TLS, IDN, browser integration, site to site transfers, FTP transfer resume, drag and drop support, file viewing & editing, firewall support, custom commands, FTP URL parsing, command line transfers, filters, and much, much more!

==============================
I was connecting fine in active mode then this:
Command: PORT 10,0,0,101,235,118
Response: 501 Server cannot accept argument.
Command: PASV
Response: 227 Entering Passive Mode (22,11,55,33,195,182).
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out
Error: Failed to retrieve directory listing

it was switching to passive mode and trying port:
256*195+182=50102
I didn't see how to configure in filezilla what ports it used in the switch over. Seemed to use the same one each time so just opened ports 49152 - 50300 in the firewall.
Worked! got the directory listing.
===============================
I found two solutions that worked for me:

1, go to http://www.hotspotbot.com and down load Hot Spot Bot. Basically, the VPN will help you bypass firewall settings that could be on LAN or WAN routers. This solution worked but it was very slow. So,

2. Enable SFTP on the server and conect via SFTP. You may have to contact your hosting company or server administrator. In my case, I actually had to email a photo of my picture ID, but it was well worth it. It is fast, secure and reliable.

=================================

Status:   Resolving IP-Address for www.addinall.net
Status:   Connecting to 65.254.60.9:21...
Status:   Connection established, waiting for welcome message...
Response:   220---------- Welcome to Pure-FTPd [TLS] ----------
Response:   220-You are user number 2 of 50 allowed.
Response:   220-Local time is now 15:15. Server port: 21.
Response:   220-This is a private system - No anonymous login
Response:   220 You will be disconnected after 15 minutes of inactivity.
Command:   USER addinall
Response:   331 User addinall OK. Password required
Command:   PASS ********
Response:   230-User addinall has group access to: addinall
Response:   230 OK. Current restricted directory is /
Command:   SYST
Response:   215 UNIX Type: L8
Command:   FEAT
Response:   211-Extensions supported:
Response:    EPRT
Response:    IDLE
Response:    MDTM
Response:    SIZE
Response:    REST STREAM
Response:    MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
Response:    MLSD
Response:    ESTP
Response:    PASV
Response:    EPSV
Response:    SPSV
Response:    ESTA
Response:    AUTH TLS
Response:    PBSZ
Response:    PROT
Response:   211 End.
Status:   Connected
Status:   Retrieving directory listing...
Command:   PWD
Response:   257 "/" is your current location
Command:   TYPE I
Response:   200 TYPE is now 8-bit binary
Command:   PASV
Response:   227 Entering Passive Mode (65,254,60,9,160,49)
Command:   LIST
Error:   Connection timed out
Error:   Failed to retrieve directory listing
Status:   Resolving IP-Address for www.addinall.net
Status:   Connecting to 65.254.60.9:21...
Status:   Connection established, waiting for welcome message...
Response:   220---------- Welcome to Pure-FTPd [TLS] ----------
Response:   220-You are user number 2 of 50 allowed.
Response:   220-Local time is now 15:23. Server port: 21.
Response:   220-This is a private system - No anonymous login
Response:   220 You will be disconnected after 15 minutes of inactivity.
Command:   USER addinall
Response:   331 User addinall OK. Password required
Command:   PASS ********
Response:   230-User addinall has group access to: addinall
Response:   230 OK. Current restricted directory is /
Status:   Connected
Status:   Retrieving directory listing...
Command:   PWD
Response:   257 "/" is your current location
Command:   TYPE I
Response:   200 TYPE is now 8-bit binary
Command:   PASV
Response:   227 Entering Passive Mode (65,254,60,9,234,232)
Command:   LIST
Error:   Connection timed out
Error:   Failed to retrieve directory listing
Status:   Resolving IP-Address for www.addinall.net
Trace:   ControlSocket.cpp(1003): CRealControlSocket::ContinueConnect(0p13a7fe0) m_pEngine=0p130d1c0 caller=0p1382d10
Status:   Connecting to 65.254.60.9:21...
Status:   Connection established, waiting for welcome message...
Trace:   CFtpControlSocket::OnReceive()
Response:   220---------- Welcome to Pure-FTPd [TLS] ----------
Response:   220-You are user number 3 of 50 allowed.
Response:   220-Local time is now 15:29. Server port: 21.
Response:   220-This is a private system - No anonymous login
Response:   220 You will be disconnected after 15 minutes of inactivity.
Trace:   CFtpControlSocket::SendNextCommand()
Command:   USER addinall
Trace:   CFtpControlSocket::OnReceive()
Response:   331 User addinall OK. Password required
Trace:   CFtpControlSocket::SendNextCommand()
Command:   PASS ********
Trace:   CFtpControlSocket::OnReceive()
Response:   230-User addinall has group access to: addinall
Response:   230 OK. Current restricted directory is /
Status:   Connected
Trace:   CFtpControlSocket::ResetOperation(0)
Trace:   CControlSocket::ResetOperation(0)
Status:   Retrieving directory listing...
Trace:   CFtpControlSocket::SendNextCommand()
Trace:   CFtpControlSocket::ChangeDirSend()
Command:   PWD
Trace:   CFtpControlSocket::OnReceive()
Response:   257 "/" is your current location
Trace:   CFtpControlSocket::ResetOperation(0)
Trace:   CControlSocket::ResetOperation(0)
Trace:   CFtpControlSocket::ParseSubcommandResult(0)
Trace:   CFtpControlSocket::ListSubcommandResult()
Trace:   CFtpControlSocket::SendNextCommand()
Trace:   CFtpControlSocket::TransferSend()
Command:   TYPE I
Trace:   CFtpControlSocket::OnReceive()
Response:   200 TYPE is now 8-bit binary
Trace:   CFtpControlSocket::TransferParseResponse()
Trace:   CFtpControlSocket::SendNextCommand()
Trace:   CFtpControlSocket::TransferSend()
Command:   PASV
Trace:   CFtpControlSocket::OnReceive()
Response:   227 Entering Passive Mode (65,254,60,9,159,9)
Trace:   CFtpControlSocket::TransferParseResponse()
Trace:   CFtpControlSocket::SendNextCommand()
Trace:   CFtpControlSocket::TransferSend()
Command:   LIST
Error:   Connection timed out
Trace:   CFtpControlSocket::ResetOperation(2114)
Trace:   CControlSocket::ResetOperation(2114)
Trace:   CFtpControlSocket::ResetOperation(2114)
Trace:   CControlSocket::ResetOperation(2114)
Error:   Failed to retrieve directory listing

Go to your site manager, click on Transfer Settings Tab.
Select the Transfer mode as "Active"
=============================
Status: Resolving address of xxx.com.ph
Status: Connecting to xxx.xxx.xxx.xxx:21...
Status: Connection established, waiting for welcome message...
Response: 220 FTP Server ready.
Command: USER ftp
Response: 331 Password required for ftp.
Command: PASS ********
Response: 230 User ftp logged in.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PORT 203,177,6,3,24,247
Response: 200 PORT command successful
Command: LIST
Response: 425 Unable to build data connection: Connection refused
Error: Failed to retrieve directory listing

----->Response: 227 Entering Passive Mode (xxx,xxx,xxx,xxx,172,252).


=====================================
Status: Resolving address of xxx.com.ph
Status: Connecting to xxx.xxx.xxx.xxx:21...
Status: Connection established, waiting for welcome message...
Response: 220 FTP Server ready.
Command: USER ftp
Response: 331 Password required for ftp.
Command: PASS ********
Response: 230 User ftp logged in.
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: REST STREAM
Response: SIZE
Response: 211 End
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (xxx,xxx,xxx,xxx,172,252).
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing

-------> 
See if you can change the transfer type under the transfer menu. If it is set to auto, change it to binary, and try that. If that doesn't work, try it in ascii.

=====================================


Try Cmd Promt:

ftp yourservername.com

it asks for username and password.

type help for commands

use dos or unix type commands

cd directoryname
for change directory to directoryname

try listing out directories by typing dir
dir for current directory and dir directoryname for listing directoryname

If a directory doesn't list with dir then try using ls instead of dir

I'm finding that the listing problem only occurs when listing with dir and only with directories with a larger number of files. The dir is the equivalent to the LIST (ls -l) used by filezilla.

I would like to know if this is the same with anybody else.  
========================
 

No comments:

Post a Comment