Skip to main content

Failed to load directory listing

Comments

6 comments

  • cPanelMichael
    Hello, Check to see if the information on the following thread helps: FTP Connects but Timeout with Error Failed to retrieve directory listing Thank you.
    0
  • MS DEV
    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.
    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
    0
  • MS DEV
    And my directrory structure is /home/ for main cpanel /home/// for new created user.
    0
  • cPanelMichael
    Hello @MS DEV, Are you using CSF? If so, ensure to review the following post: SOLVED - passive mode on pure-ftp + configserver You may also want to review the following post to verify if the issue is related to the referenced case: Permanently disable ForcePassiveIP option Thank you.
    0
  • MS DEV
    Hello @MS DEV, Are you using CSF? If so, ensure to review the following post: SOLVED - passive mode on pure-ftp + configserver You may also want to review the following post to verify if the issue is related to the referenced case: Permanently disable ForcePassiveIP option Thank you.

    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.
    0
  • 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.

    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:
    # grep PassivePortRange /etc/pure-ftpd.conf PassivePortRange 49152 65534
    Thank you.
    0

Please sign in to leave a comment.