MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: idove on 2019-07-04, 18:43:27

Title: Pure-FTPd doesn't start after update
Post by: idove on 2019-07-04, 18:43:27
After server update/upgrade I noticed also that pureftpd also doesn't startup.

Code: [Select]
systemctl status pure-ftpd
? pure-ftpd.service - Pure-FTPd FTP server
   Loaded: loaded (/usr/lib/systemd/system/pure-ftpd.service; enabled; vendor preset: disabled)
   Active: activating (start) since Thu 2019-07-04 18:41:38 CEST; 3s ago
  Process: 25685 ExecStart=/usr/sbin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf --daemonize (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/pure-ftpd.service
           ??25686 /usr/sbin/pure-ftpd --daemonize -A -c5000 -B -C8 -D -fftp -H -I15 -lpuredb:/etc/pure-ftpd/pureftpd.pdb -lpam -L1...

Srp 04 18:41:38 server.mo**er.info systemd[1]: Starting Pure-FTPd FTP server...
Srp 04 18:41:38 server.mo**er.info systemd[1]: Failed to read PID from file /var/run/pure-ftpd.pid: Invalid argument

Title: Re: Pure-FTPd doesn't start after update
Post by: idove on 2019-07-04, 18:53:20
Solved with:

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

and then

# systemctl start pure-ftpd


Found "similar" solution here, just different folder for pure-ftpd.conf
https://forums.cpanel.net/threads/ftp-failed-to-restart.542941/#post-2192141
Title: Re: Pure-FTPd doesn't start after update
Post by: dfreddie on 2019-07-08, 15:45:40
Solved with:

#

and then

# systemctl start pure-ftpd


Found "similar" solution here, just different folder for pure-ftpd.conf
https://forums.cpanel.net/threads/ftp-failed-to-restart.542941/#post-2192141

I've had problems with pureFTP for more then a year. After every server restart or "sh /script/cleanup" I've had to run manually "/usr/sbin/pure-uploadscript -B -r /etc/pure-ftpd/pure-ftpd.conf".
Title: Re: Pure-FTPd doesn't start after update
Post by: idove on 2019-07-08, 16:00:59
Yes,
this is now must do, after cleanup :).
I forget to do it again after update/cleanup and pure-ftpd doesn't work, anyway tnx for response.

Maybe mratwork can analyze and add this line to cleanup script or similar, tnx.
Title: Re: Pure-FTPd doesn't start after update
Post by: dfreddie on 2019-07-12, 21:12:44
Right now is not even starting with "/usr/sbin/pure-uploadscript -B -r /etc/pure-ftpd/pure-ftpd.conf" trick!!! >:( >:(
Title: Re: Pure-FTPd doesn't start after update
Post by: MRatWork on 2019-07-13, 01:15:44
Try to go to 'FTP configure' and then click 'update'.
Title: Re: Pure-FTPd doesn't start after update
Post by: idove on 2019-09-20, 10:50:27
Ok, I noticed that after server reboot I still need to do:

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

Anyway, it is not big problem, but it will be good if it will be solved somehow soon.
tnx.