ProFTP problem

Hi,

I have an open issue with the proftpd (see: https://virtualmin.com/node/38759).

First of all I have a problem understanding, which status is displayed in the System Information as described in the forum topic, second I am currently facing a strange problem that the FTP daemon is quitting every few days and I cannot figure out why. The latter topic might be off topic, but I would really highly appreciate any help solving this mystery as well, as I am sick of restarting the daemon manually all the time ... :)

PS: This has not happened on my old server with Virtualmin / Webmin, but I copied the setup directly, so there should be no difference.

Cheers Vince

Status: 
Active

Comments

You should check the log file /var/log/messages for any reference to or messages from proftpd to see why it is quitting.

Additionally, you may also want to take a peek at the output of the command "dmesg | tail 100", to see if you see any kernel error messages. If you're seeing any resource problems, it could display them there (such as OOM Killer, which can occur in instances of low RAM).

Hi,

just fyi: I checked /var/log/proftpd/proftpd.log and found this

2016-01-18 06:28:56,691 x3.eec.de proftpd[9734] x3.eec.de: ProFTPD killed (signal 15)
2016-01-18 06:28:56,726 x3.eec.de proftpd[9734] x3.eec.de: ProFTPD 1.3.5rc3 standalone mode SHUTDOWN

Google led me to Stack Overflow and I applied that solution by adding --retry=1 in the init.d script - keep fingers crossed. :)

Thank you both very much!

Cheers Vince

That message suggests that proftpd was intentionally shut down.

it is true, proftpd has been intentionally shut down everytime: logrotate restarts the service, but proftpd is somehow "slow" and stays dead - therefore they say that adding the retry option should fix the issue. I hope that this information will help you as well.

Odd that it doesn't re-start after log rotation. Is your system perhaps low on RAM?

It seems that there is a known issue with restarting proftd on some systems ... it is certainly not due to low resources as my server is ten times the resources than my old server aka "super powered" ... maybe just some strange "glitch", but I never experienced such behaviour from Linux ...

Just to give you an impression:

Operating system  Ubuntu Linux 14.04.3
Webmin version  1.782
Theme version   Authentic Theme 17.50
Time on system  Saturday, 2016-01-23 1:41:30
Kernel and CPU  Linux 3.13.0-68-generic on x86_64
Processor information   Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 8 cores
System uptime   56 days, 1 hours, 48 minutes
Running processes   418
CPU load averages   0.81 (1 min) 0.72 (5 mins) 0.60 (15 mins)
Real memory 30.39 GB total / 2.40 GB used
Virtual memory  15.62 GB total / 96.83 MB used
Local disk space    2.67 TB total / 2.09 TB free / 590.53 GB used
Package updates All installed packages are up to date
Welshman's picture
Submitted by Welshman on Sat, 01/23/2016 - 10:19

Ubuntu 14.04 - ProFTPd stops unexpectedly, easy fix ...

edit the service file, to add a retry and sleep ...

/etc/init.d/proftpd ...

Find this line...

start-stop-daemon --stop --signal $SIGNAL --quiet --pidfile "$PIDFILE"

and replace with ...

start-stop-daemon --stop --signal $SIGNAL --retry 1 --quiet --pidfile "$PIDFILE"

Restart the service and the problem should go away.

... exactly what I researched and posted under #3 - thank you for the confirmation!

Cheers Vince

didnt worked out on debian 8, still gets killed

--retry 1

Yeah we've heard a few reports of this occurring on a few different distros. Though it doesn't occur on all of them which makes it tricky to troubleshoot.

It does sound like there's a packaging bug in the case of some of these, which we're hoping will be resolved soon.

In the meantime, you may want to setup monitoring using Webmin -> Others -> System and Server Status.

Using that, you can ensure that ProFTPd continues running even if it's killed off during the package rotation.

I've had this problem for a year on my server (which is now Webmin 1.791 on Ubuntu 14.04.1). I too see in my log:

/var/log/proftpd/proftpd.log.1:2016-04-17 01:39:36,185 ns1 proftpd[1588] ns1: ProFTPD killed (signal 15)
/var/log/proftpd/proftpd.log.1:2016-04-17 01:39:37,898 ns1 proftpd[1588] ns1: ProFTPD 1.3.5rc3 standalone mode SHUTDOWN
/var/log/proftpd/proftpd.log.1:2016-04-17 01:41:13,820 ns1 proftpd[1623] ns1: ProFTPD 1.3.5rc3 (devel) (built Fri Dec 20 2013 18:05:41 UTC) standalone mode STARTUP
/var/log/proftpd/proftpd.log.1:2016-04-17 07:06:34,769 ns1 proftpd[1623] ns1: ProFTPD killed (signal 15)
/var/log/proftpd/proftpd.log.1:2016-04-17 07:06:35,318 ns1 proftpd[1623] ns1: ProFTPD 1.3.5rc3 standalone mode SHUTDOWN

The STARTUP is me manually restarting from Virtualmin's "System Information | Status" icon. Btw- if I start proftpd from the "Servers" module, the "System Information" page will still show it unstarted. Bug?

I'll give the "--retry 1" solution a try. If it doesn't work, I'll try the FOREVER command. Btw- would there be any harm in increasing retry to a higher number? Or does "1" just mean "yes" here?

Ok, three Sundays have gone by, and ProFTPd no longer dies. All I did was add the "--retry 1" statement to /etc/init.d/proftpd as above.
I think we have a confirmed solution for my platform.
Ubuntu Linux 14.04.1, Webmin 1.795, Virtualmin 5.02.gpl