Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Failed to load directory listing

Discussion in 'General Discussion' started by arjanvr, Apr 6, 2017.

Tags:
  1. arjanvr

    arjanvr Well-Known Member

    Joined:
    Dec 13, 2013
    Messages:
    110
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    When i try to connect through ftp (filezilla) i get

    failed to load directory listing

    When i setup:
    Protocol: FTP
    Encryption: Use only Plain FTP
    Transfer Settings: Active Mode

    it does connect but this should not have to be done to be able connect. I switched ftp mode in WHM but it makes no difference..

    Any one knows how to fix this?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. MS DEV

    MS DEV Registered

    Joined:
    Jul 10, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Website Owner
    I have a problem to directory list.

    I able to open ftp for main cpanel account. But newly created ftp user with "add Ftp account" in cpanel it gives me following error.

    Code:
    Status:    Connecting to xxx.xxx.xxx.xxx:21...
    Status:    Connection established, waiting for welcome message...
    Status:    Initializing TLS...
    Status:    Verifying certificate...
    Status:    TLS connection established.
    Status:    Logged in
    Status:    Retrieving directory listing...
    Command:    PWD
    Response:    257 "/" is your current location
    Command:    TYPE I
    Response:    200 TYPE is now 8-bit binary
    Command:    PORT 100,120,147,59,196,113
    Response:    500 I won't open a connection to xxx.xxx.xxx.xxx (only to yyy.yyy.yyy.yyy)
    Command:    PASV
    Response:    227 Entering Passive Mode (xx,xxx,xxx,xxx,xxx,xxx)
    Command:    MLSD
    Error:    Connection timed out after 20 seconds of inactivity
    Error:    Failed to retrieve directory listing
     
  4. MS DEV

    MS DEV Registered

    Joined:
    Jul 10, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Website Owner
    And my directrory structure is

    /home/<username> for main cpanel
    /home/<username>/<domain-name>/<ftp-folder> for new created user.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  6. MS DEV

    MS DEV Registered

    Joined:
    Jul 10, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Website Owner
    Hi cPanelMichael,

    Thanks for your quick reply. I am not using csf. But when I stop iptables from server shell its working. Its may be block in firewall. How can I allow new ftp user and directory in my IpTables.

    Thank you.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    You generally need to open the passive port range on your firewall. You can find the range to allow in your /etc/pure-ftpd.conf file. EX:

    Code:
    # grep PassivePortRange /etc/pure-ftpd.conf
    PassivePortRange 49152 65534
    Thank you.
     
Loading...

Share This Page