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!

Ftp Stopped working, no directory listing.

Discussion in 'General Discussion' started by Serra, Mar 10, 2018.

  1. Serra

    Serra Well-Known Member

    Joined:
    Oct 27, 2005
    Messages:
    258
    Likes Received:
    17
    Trophy Points:
    168
    Location:
    Florida
    My server stopped FTPing. It would login, but then could get a "connection refused" message when it tried to get a directory listing.

    I traced the problem down to:

    /var/cpanel/conf/pureftpd/main

    There was a line in that configuration file:

    ForcePassiveIP: 66.135.45.84

    FTP was working fine, then it just stopped. I'm not sure what that IP, it is unrelated to my server.

    I replaced it with the server IP and it seems to be working fine now.

    Full commands to do this are:
    rm -f /var/cpanel/conf/pureftpd/main.cache command.

    Edit the main configuration file

    nano /var/cpanel/conf/pureftpd/main

    with a text editor.

    To apply your changes, you can force an update of FTP with the following command:

    /scripts/setupftpserver pure-ftpd --force
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Is it possible that IP address was associated with this cPanel server at some point in time? If not, can you verify if this cPanel installation was setup via an image or custom script as opposed to the standard cPanel installation steps?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Serra

    Serra Well-Known Member

    Joined:
    Oct 27, 2005
    Messages:
    258
    Likes Received:
    17
    Trophy Points:
    168
    Location:
    Florida
    It is close to the IP of the server, but was never assigned. The server was brand new, so I suspect the IP was in the my datacenter, but not this specific server.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I've not been able to reproduce this on a test environment. Was the cPanel installation completed manually, or was it provisioned as part of an image? It's possible the IP address was configured as part of the image used to setup the server.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice