Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: FTP Connection Error : Error loading directory...

  1. #1
    Registered Member
    Join Date
    May 2011
    Posts
    5

    Default FTP Connection Error : Error loading directory...

    Hi

    We can not access the ftp directory on the newly formed cpanel.
    Connection logs, such as the following.
    Look forward to your help.
    Sorry for bad English.

    --------------------------------------------------------------
    220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    220-You are user number 1 of 50 allowed.
    220-Local time is now 15:04. Server port: 21.
    220-This is a private system - No anonymous login
    220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    USER xpazarla
    331 User xpazarla OK. Password required
    PASS **********
    230 OK. Current restricted directory is /
    SYST
    215 UNIX Type: L8
    Keep alive off...
    Attemping Active mode transfer...
    PORT 192,168,100,90,68,127
    200 PORT command successful
    LIST
    500 Unknown command
    Server failed to connect data port
    Error loading directory...
    -------------------------------------------------------------

  2. #2
    Registered Member
    Join Date
    May 2011
    Posts
    5

    Default Re: FTP Connection Error : Error loading directory...

    Hi ,

    Check port 20 is open in the server firewall.

    you can allow port 20 in iptables

    iptables -A INPUT -s 0/0 -p tcp --dport 20 -j ACCEPT

    /etc/init.d/iptables save


    In the above its allowed from public. If you want then you can restrict with the specified ip's.


    Sincerely,
    /http://www.adminlogs.info

  3. #3
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,815
    cPanel Access Level

    Root Administrator

    Default Re: FTP Connection Error : Error loading directory...

    FTP normally uses port 21, not 20.

    What is described looks like the customer is using passive-mode FTP and a port range is not open in the firewall to match the port range used by the FTP service. There are two options to fix this:

    • Use active-mode FTP instead of passive. This is normally selectable in the FTP client. In the command-line FTP client, you can simply type "passive" to toggle passive/active mode.
    • Configure a port range for passive-mode FTP in the FTP service configuration, and configure the server's firewall to match.


    The second option has been covered extensively in this forum, as it is a very common issue. I found the following threads that should help:

    http://forums.cpanel.net/f5/ftp-pass...ing-74605.html
    http://forums.cpanel.net/f5/passive-...ng-202992.html
    http://forums.cpanel.net/f5/ftp-not-...se-125589.html

    If you are using Pure-FTPd, which is the default, you can define the passive-mode port range by editing /etc/pure-ftpd.conf and uncommenting the following directive:

    Code:
    # Port range for passive connections replies. - for firewalling.
    
    # PassivePortRange          30000 50000
    Once you have removed the hash mark (#) from the line starting with "PassivePortRange", restart Pure-FTPd and edit your firewall configuration to allow traffic on the same port range.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation - Find cPanel hosting


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  4. #4
    Registered Member
    Join Date
    May 2011
    Posts
    5

    Default Re: FTP Connection Error : Error loading directory...

    the firewall is turned off. Log on with ProFTPD

  5. #5
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,815
    cPanel Access Level

    Root Administrator

    Default Re: FTP Connection Error : Error loading directory...

    There may also be a firewall on your end or your user's end that could cause a problem. Does switching to active mode, as I mentioned, work?
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation - Find cPanel hosting


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  6. #6
    Registered Member
    Join Date
    May 2011
    Posts
    5

    Default Re: FTP Connection Error : Error loading directory...

    PassivePortRange 30000 50000

    I enabled the above line. the firewall is turned off. still not connecting.

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel Access Level

    Root Administrator

    Default Re: FTP Connection Error : Error loading directory...

    Are you certain you are trying passive mode even? The log shows active mode:

    Attemping Active mode transfer...
    Are you using an FTP client such as FileZilla or what precisely? If you are not using FileZilla, could you try using that free FTP client? You can download it from here:

    FileZilla - Client Download
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  8. #8
    Registered Member
    Join Date
    May 2011
    Posts
    5

    Default Re: FTP Connection Error : Error loading directory...

    FileZilla output:

    Status: Resolving address of ftp......com
    Status: Connecting to ........:21...
    Status: Connection established, waiting for welcome message...
    Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    Response: 220-You are user number 1 of 50 allowed.
    Response: 220-Local time is now 14:24. 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 xpazarla
    Response: 331 User xpazarla OK. Password required
    Command: PASS ********
    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: AUTH TLS
    Response: PBSZ
    Response: PROT
    Response: ESTA
    Response: PASV
    Response: EPSV
    Response: SPSV
    Response: ESTP
    Response: 211 End.
    Status: Connected
    Status: Retrieving directory listing...
    Command: PWD
    Response: 257 "/" is your current location
    Command: TYPE I
    Response: 504-Unknown TYPE: I
    Response: 504 TYPE is now ASCII
    Error: Failed to retrieve directory listing

  9. #9
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    11,681
    cPanel Access Level

    Root Administrator

    Default Re: FTP Connection Error : Error loading directory...

    Silly question I'm sure, but can you login to this cPanel users account normally?

  10. #10
    Registered Member
    Join Date
    May 2011
    Posts
    5

    Default Re: FTP Connection Error : Error loading directory...

    yes , I can login to this cPanel users account normally

  11. #11
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    11,681
    cPanel Access Level

    Root Administrator

    Default Re: FTP Connection Error : Error loading directory...

    Using Filezilla to duplicate your steps, my output is identical until the last section:

    Code:
    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 (ip,he,re,some,where)
    Command:	MLSD
    Response:	150 Accepted data connection
    Response:	226-Options: -a -l 
    Response:	226 15 matches total
    Status:	Directory listing successful

  12. #12
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel Access Level

    Root Administrator

    Default Re: FTP Connection Error : Error loading directory...

    If you have root SSH access, please run an "ls -lah /home/xpazarla" to check the permissions on the directory.

    Next, what operating system are you using? There's a bug in pure-ftpd where it will not work to list the directories or upload files in RHEL 3 and CentOS 3. For those operating systems where pure-ftpd will not work, proftpd needs to be used.

    Finally, please check for the following in /etc/pure-ftpd.conf file:

    Code:
    #CallUploadScript yes
    If this is uncommented (where the # has been removed), please re-add the # in front of this option. This option cannot be used with the cPanel installed copy of pure-ftpd
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  13. #13
    Registered User
    Join Date
    Jul 2011
    Posts
    1

    Default Re: FTP Connection Error : Error loading directory...

    Hi,
    I set the passive port range on pure-ftpd.conf to 30000 50000 & set allowed the same in configserver firewall.
    Also the line on pure-ftpd.conf "#CallUploadScript yes" is as u mentioned commented.
    Restarted pureftpd as well as configserver firewall.
    Still I can't login with FTP.
    Can someone tell me what is wrong there?

    I even tried with disabling the firewall, but it is not working too

    My log on Filezilla client is as follows.
    Code:
    Command:	PASS ******
    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:	 AUTH TLS
    Response:	 PBSZ
    Response:	 PROT
    Response:	 ESTA
    Response:	 PASV
    Response:	 EPSV
    Response:	 SPSV
    Response:	 ESTP
    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 (50,30,32,76,146,90)
    Command:	MLSD
    Response:	150 Accepted data connection
    Response:	226-Options: -a -l 
    Response:	226 2 matches total
    Error:	Connection timed out
    Error:	Failed to retrieve directory listing
    Last edited by pubudusj; 07-08-2011 at 06:44 AM.

  14. #14
    cPanel Staff cPanelMichael's Avatar
    Join Date
    Apr 2011
    Posts
    15,369
    cPanel Access Level

    Root Administrator

    Default Re: FTP Connection Error : Error loading directory...

    Hello

    Were you able to run the command that Tristan suggested?

    Code:
    # ls -lah /home/xpazarla
    If the permission and ownership values look normal, please feel free to open a support ticket for this issue so we may check further:

    Submit A Ticket

    You can post the ticket number here so we may track the issue.

    Thank you.
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists - Documentation - Migration Services - Change Logs
    -- cPanelMichael - Migration Specialist, Technical Analyst, cPanel Technical Support

  15. #15
    PDW
    PDW is offline
    Registered Member
    Join Date
    Dec 2003
    Posts
    117

    Default Re: FTP Connection Error : Error loading directory...

    Did you get this fixed with their help, what was the issue - I am havign the exact same problem - started today and I have had no issues before - I cant get ftp connect to to work. thanks

Page 1 of 2 12 LastLast

Similar Threads

  1. Error loading phpmyadmin
    By smooch1502 in forum Database Discussions
    Replies: 1
    Last Post: 01-09-2010, 05:10 AM
  2. Replies: 1
    Last Post: 03-11-2008, 02:58 AM
  3. PuTTY Fatal Error, Network error: Connection timed out
    By cwuser in forum General Discussion
    Replies: 4
    Last Post: 06-30-2007, 06:27 PM
  4. Recent error message: Error loading cPAddonsMD5...
    By proton2112 in forum General Discussion
    Replies: 1
    Last Post: 10-13-2006, 01:40 PM
  5. Bind Error shutting down due to TCP receive error: connection reset
    By eliteds3 in forum Bind / DNS / Nameserver Issues
    Replies: 3
    Last Post: 08-01-2006, 11:43 AM
bargain