Ftp Stopped working, no directory listing.

Serra

Well-Known Member
Oct 27, 2005
266
18
168
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
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.
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.
 

Serra

Well-Known Member
Oct 27, 2005
266
18
168
Florida
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?
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
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.