[Solved] Pure-ftp failed to retrieve directory listing

Discussion in 'Server Operation' started by anark10n, Apr 29, 2019.

  1. anark10n

    anark10n Member

    Hey there
    Looks like i've encountered a common issue, for which none of the solutions I've seen on here worked. Enabling passive ports are per this had a worse effect, and i couldn't even log in using the passive ports. Trying to check the logs on ISPC reports that the service is online(along with every other service), but systemctl reports differently.
    The output of netstat -tnulp | grep 21:
    Code:
    tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      21571/memcached     
    tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      25514/pure-ftpd (SE
    tcp6       0      0 :::21                   :::*                    LISTEN      25514/pure-ftpd (SE
    
    FileZilla log when using default port 21:
    Code:
    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:   PASV
    Response:   227 Entering Passive Mode (45,58,37,57,64,84)
    Command:   MLSD
    Error:   Connection timed out after 20 seconds of inactivity
    Error:   Failed to retrieve directory listing
    Status:   Disconnected from server
    Status:   Resolving address of opensrvr01.openitmation.com
    Status:   Connecting to [public ip address]:21...
    Status:   Connection established, waiting for welcome message...
    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:   PASV
    Response:   227 Entering Passive Mode (45,58,37,57,144,247)
    Command:   MLSD
    Error:   Connection timed out after 20 seconds of inactivity
    Error:   Failed to retrieve directory listing
    
    Any ideas on what else to check would be much appreciated?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What does
    the report say?
    @till : the poster wrote he already used that same Faqforge tutorial.
     
  4. anark10n

    anark10n Member

    systemctl status pure-ftpd-mysql:
    Code:
    ● pure-ftpd-mysql.service
       Loaded: loaded (/etc/init.d/pure-ftpd-mysql; generated; vendor preset: enable
       Active: active (running) since Mon 2019-04-29 16:41:12 UTC; 22min ago
         Docs: man:systemd-sysv-generator(8)
      Process: 26581 ExecStop=/etc/init.d/pure-ftpd-mysql stop (code=exited, status=
      Process: 26593 ExecStart=/etc/init.d/pure-ftpd-mysql start (code=exited, statu
        Tasks: 5 (limit: 4915)
       CGroup: /system.slice/pure-ftpd-mysql.service
               ├─26603 pure-ftpd (SERVER)
               ├─27094 pure-ftpd (IDLE)
               ├─27095 pure-ftpd (PRIV)
               ├─27097 pure-ftpd (IDLE)
               └─27098 pure-ftpd (PRIV)
    
     
  5. anark10n

    anark10n Member

    Looks like it was down to the home folder of my non-root debian user belonging to root, as that's how created it, everything's working and services are reporting as online again.
     

Share This Page