[Solved] FTP fails at "Retrieving directory listing"

Discussion in 'Server Operation' started by anark10n, Aug 27, 2022.

  1. anark10n

    anark10n Member

    Hey there, so as the title says, when trying to connect to my server using any ftp account, filezilla reports the following:
    Code:
    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,191,174)
    Command:   MLSD
    Error:   Connection timed out after 20 seconds of inactivity
    Error:   Failed to retrieve directory listing
    
    When trying from the command line, it logs in, but when I try a command such as "ls", I get the following output and then it hangs:
    Code:
    227 Entering Passive Mode (45,58,37,57,151,238)
    
    Before this error, I was able to connect and list the directory without an issue, and the above filezilla errors occurred during an upload, and have persisted since. Anyone have an idea as to why this is happening, and what to check?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. anark10n

    anark10n Member

    Ah, i somehow missed the first set of commands where i had to add the passive ports to pure-ftpd conf. :oops: Apologies, and thank you for the assist.
     

Share This Page