Pureftp configuration issue on cpanel|Failed to retrieve directory listing

We are getting Failed to retrieve directory listing while we connect through filezilla. There is no log generated on the error log. The issue is with /etc/pure-ftpd.conf has ForcePassiveIP might be having wrong IP address. If the server behind NAT environment then there might be chance of having wrong IP address.

To fix the issue, we need to update pure-ftpd configuration with correct IP address. Moreover, whenever we perform upgrade on cPanel, the changes will get overriden.

Resolution:

To fix this issue, first edit pure-ftpd configuration with correct IP address.

vi /etc/pure-ftpd.conf

ForcePassiveIP: xx.xx.xx.xx

Restart the pure-ftpd service.

systemctl restart pure-ftpd

This change will be temporary until cPanel upgrade happens. To fix the issue permanently, edit the file “/var/cpanel/conf/pureftpd/main”

vi /var/cpanel/conf/pureftpd/main

ForcePassiveIP: xx.xx.xx.xx

 

Leave a Reply