Ftp failed to restart

QUESTIONS CENTRECategory: apacheFtp failed to restart
ZENHOST Support Staff asked 3 years ago

You are trying to restart your server… and your FTP fails to start… or restart.

</p>
<pre># /scripts/restartsrv_pureftpd
Waiting for “pureftpd” to restart ………warn [restartsrv_base] The 'pureftpd' service's PID file '/var/run/pure-ftpd.pid' did not appear after 10 seconds.

…warn [restartsrv_base] The 'pureftpd' service's PID file '/var/run/pure-ftpd.pid' did not appear after 10 seconds.

</pre>
<pre>Service Error The “pureftpd” service failed to start.</pre>
<pre>Startup Log
    Starting pure-config.pl: [  OK  ]
    Starting pure-authd:

pureftpd has failed. Contact your system administrator if the service does not automagically recover.</pre>
<p>

 

The reason for this error is that Pure-ftpd service doesn’t work with {CallUploadScript} set to (yes) in /etc/pure-ftpd.conf configuration file. That is because the pure-uploadscript service is not getting started while restarting the pure-ftpd service.

Run the following command via SSH for fix this issue:

# /usr/sbin/pure-uploadscript -B -r /etc/pure-ftpd.conf

Restart the service :

# /etc/init.d/pure-ftpd restart

 

And your service will restart succesfully