FTP Failed to retrieve directory listing

Discussion in 'Installation/Configuration' started by Thilak, Nov 25, 2018.

Tags:
  1. Thilak

    Thilak Member

    I am using ISPConfig 3.1.13 on Ubuntu 18.04 x64. I have configured two clients and fora each client, I have created 2 sites like site.domain1.com & domain1.com for client1 & so on. I have also created FTP accounts for each sites with domain root access.
    Whenever I try to upload some files using FileZilla, I get the error as 'Failed to retrieve directory listing' after a long waiting of 'Retrieving directory listing of "/web/customization/css". This happens every time even if I reboot the server.
    The server is hosted in Digital Ocean and there is no firewall behind the server network. Also, I have not enabled any firewall in the ISPC too.
    In the monitoring section, no errors or warnings displayed except 1 or more components needs an update (Ubuntu update)
    In the log, I found only these type of logs.
    Nov 25 08:27:31 domain.com pure-ftpd: ([email protected]) [INFO] New connection from 157.49.141.123
    Nov 25 08:27:31 domain.com pure-ftpd: ([email protected]) [INFO] domain_admin_ftp is now logged in

    My Iptable rules show like this.
    iptables -S (ipv4)
    -P INPUT ACCEPT
    -P FORWARD ACCEPT
    -P OUTPUT ACCEPT

    I have even tried by enabling passive ports range to 30000 50000 in pure-ftpd.conf (Uncommented). But still same problem. Is this because the server uses private IP and public IP for networking?
    Please help me to resolve this problem.
     
  2. Have you well restarted pure-ftpd-mysql service after changing its settings (passive ports range) ?
     
  3. Thilak

    Thilak Member

    Yes, I have restarted entire server itself. But problem not solved.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Which one does pure-ftp use?
    But the symptom you describe is common, and previously has been solved by setting passive port range and opening those ports in firewall.
     
  5. Thilak

    Thilak Member

    Actually I have not configured the IP address in the pure-ftpd config files. I just entered both private and public IP addresses in the IP address section of the ISP config. I am not using any extra firewalls and in ispc, it is saying no firewalls found. So, i assume there is no firewall. The connection worka if I reboot the server for 1 or two connection attempts and then it starts to show retrieving directory listing message.
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What kind of connection do you start in Filezilla? Plain FTP or SFTP? And what have you set up in Pure-FTPD?
     
  7. Thilak

    Thilak Member

    Tried default connection (Explicit TLS) as well as plain ftp. If I use SSH of root user, it works fine.
     
  8. Thilak

    Thilak Member

    I had faced same problem with my previous control panel centos web panel as well. For that reason i switched to ispc
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    The problem is not related to the control panel that you use, the problem is related to a firewall issue or other firewall/router hardware on your network in combination with the FTP protocol.

    Please post the session debug details from your FTP client to see where exactly the FTP session stops.
     
  10. Thilak

    Thilak Member

    I have checked it now from my office PC and did not get the problem. I will again check with my laptop and post the result. Thank you.
     
  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Only time when pure-ftp set up with ISPConfig caused problems was when new version of Filezilla had different defaults. It did not work until I figured out what settings it had changed and configured the settings properly.
     

Share This Page