Submitted by securewebs on Mon, 05/21/2012 - 11:53 Pro Licensee
We have a client server with the just the GPL version. His ProFTPD broke and won't start. Is there any tips on how to debug the issue?
Status:
Active
We have a client server with the just the GPL version. His ProFTPD broke and won't start. Is there any tips on how to debug the issue?
Comments
Submitted by andreychek on Mon, 05/21/2012 - 11:57 Comment #1
What error do you see when trying to start ProFTPD from the command line?
And do any errors show up in /var/log/messages when starting it?
Submitted by securewebs on Mon, 05/21/2012 - 17:41 Pro Licensee Comment #2
They got the FTP going somehow. So it is working without my intervention. However, it was brought to my attention that you can climb up the FTP ladder as a virtual customer and see all the other sites. I know how to stop that in Windows but is there a way to stop it in ProFTPD? And if that is the default behavior and default install would it not be a security risk?
Submitted by andreychek on Mon, 05/21/2012 - 20:02 Comment #3
There's some details regarding your FTP question in this document here:
http://www.virtualmin.com/documentation/security/faq
If you have any followup questions, feel free to let us know!
Submitted by securewebs on Tue, 05/29/2012 - 17:05 Pro Licensee Comment #4
Now one of our servers is in trouble with ProFTPD and the complaints are pouring in. The service won't start. It does not really give any details. How is it that two dedicated servers have broken down ProFTPD in the space of just a week or so? It is alarming how fragile ProFTPD is becoming. Last year we had to replace a server for a client because his ProFTPD was not working but we need to learn enough to fix it. Can you help? I really don't know what to do.
Submitted by andreychek on Tue, 05/29/2012 - 17:16 Comment #5
Well, it's pretty rare for services to fail -- the key is for us to figure out what's going on, then we can look into how to prevent that from occurring again in the future.
What output do you get if you run this command:
rpm -qa | grep proftp
Also, what do you see if you try running this command as root:
/usr/sbin/proftpd
Submitted by securewebs on Wed, 05/30/2012 - 09:24 Pro Licensee Comment #6
[root@tango ~]# rpm -qa | grep proftp proftpd-1.3.3c-1.el5.vm
In logs the last entry is:
May 30 07:09:48 tango proftpd[11352]: 64.85.10.200 - ProFTPD 1.3.3c (maint) (built Wed Nov 17 2010 19:37:41 PST) standalone mode STARTUP
Submitted by andreychek on Wed, 05/30/2012 - 09:35 Comment #7
That all looks good there.
What output do you see on the console if you run this command as root:
/usr/sbin/proftpd
If it's failing to launch, the above command should produce an error message on the console.
If you don't receive an error -- what output does this command produce:
netstat -anlp | grep :21
Submitted by nexusguy59 on Sun, 08/19/2012 - 08:16 Comment #8
Hello Everyone,
I am having the following issue with the ftp service on my server.
Here is the particulars on my server:
Distributor ID: Ubuntu Description: Ubuntu 10.04.4 LTS Release: 10.04 Codename: lucid
cat /proc/version Linux version 2.6.18-274.3.1.el5.028stab094.3 (root@rhel5-build-x64) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Thu Sep 22 13:24:07 MSD 2011
Webmin version 1.590 Virtualmin version 3.93.gpl GPL
top - 17:03:37 up 7 days, 18:28, 1 user, load average: 0.12, 0.13, 0.08 Tasks: 46 total, 1 running, 45 sleeping, 0 stopped, 0 zombie Cpu0 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu1 : 0.0%us, 0.3%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu4 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu5 : 0.3%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu6 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu7 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2097152k total, 554800k used, 1542352k free, 0k buffers Swap: 0k total, 0k used, 0k free, 0k cached
Obviously this is the error:
root@ubuntu1:/# service proftpd start * Starting ftp server proftpd /etc/init.d/proftpd: line 88: 1372 Illegal instruction start-stop-daemon --start --quiet --pidfile "$PIDFILE" --oknodo --exec $DAEMON -- $OPTIONS
I think this should cover it, Thanks in Advance. I have been searching and trying things out for a month. I cannot figure it out. I have been having them use the file manager to put there web content up on their site.
Thanks again,
Michael
Linux System Admin - hosthobo.net
Submitted by andreychek on Sun, 08/19/2012 - 08:27 Comment #9
You may want to try starting ProFTPd manually from the command line to see if it shows you some more specific errors... you can do that with this command:
/usr/sbin/proftpd -n
It also appears as if you may be using OpenVZ there... we've seen some unusual things occur with it when resources get low. While it does look like you have plenty of RAM, there could be other limits being hit. You may want to take a peek in /proc/user_beancounters, and make sure the "failcnt" column at the end doesn't show any failures.
However, if the above doesn't help -- it'd be best to start a new thread in the forums, where we can assist you there.
When you do that, be sure to include whatever output you get when starting ProFTPd directly. Thanks!
Submitted by Karl on Tue, 08/28/2012 - 09:26 Pro Licensee Comment #10
I have a similar issue with ProFTPD too:
After update from ProFTPD 1.3.3g to 1.3.4a-1.el5.rf.x86_64 ProFTPD doesn't start any more.
The command "/usr/sbin/proftpd" produced this error:
Fatal: unknown configuration directive 'VRootEngine' on line 16 of '/etc/proftpd.conf'
Line 16 of the proftpd.conf is this:
VRootEngine on
The update created a new proftpd.conf file and saved the old one as "proftpd.conf.rpmnew".
Then I replaced the new proftpd.conf file with the old one and now ProFTPD starts.
But I don't know the reason for this trouble.
My system: CentOS 5.8
Additional notes: The new proftpd.conf file is quite different to the old one and has more than double the size.
Submitted by andreychek on Tue, 08/28/2012 - 09:34 Comment #11
Hi Karl -- it looks like you're using a non-standard ProFTPd version... a lot of folks have had problems when using a ProFTPd package from a third party repository.
My recommendation would be to reinstall the proftpd package from the Virtualmin repository.
I'd also suggest disabling third party repositories on your system, and only pulling in packages from non-standard repos that you really need.
Submitted by Karl on Tue, 08/28/2012 - 09:57 Pro Licensee Comment #12
Hi Andrey,
thanks for your quick response. Meanwhile I found a solution here: https://forums.proftpd.org/smf/index.php?topic=7663.0
I followed the instructions and now it works again.
Do you still recommend to reinstall the proftpd package from the Virtualmin repository?
Thanks and best regards, Karl
Submitted by andreychek on Tue, 08/28/2012 - 10:02 Comment #13
Well, if it's working, there's no need to make changes -- but if you run into problems with it in the future, you might consider reinstalling the proftpd package from the Virtualmin repository.
Even if you don't switch proftpd packages, I would still suggest either disabling the RPMForge repository, or configuring it to only pull in packages you need.
Submitted by securewebs on Tue, 06/14/2016 - 18:02 Pro Licensee Comment #14
I never did get this working. We still have two servers without working FTP. This one shows it can't be started, the other is running but does not work. With this one that won't start --- [root@thresher ~]# service proftpd start Redirecting to /bin/systemctl start proftpd.service Job for proftpd.service failed because a timeout was exceeded. See "systemctl status proftpd.service" and "journalctl -xe" for details. ------ proftpd[16503]: mod_delay/0.7: unable to load DelayTable '/run/proftpd/proftpd.delay' (fd 4) into memory: Invalid argument
Submitted by andreychek on Tue, 06/14/2016 - 19:56 Comment #15
With the one that won't start, it sounds like there's a problem with one of the ProFTPd modules... mod_delay.
I don't see that being loaded in the systems I'm looking at, is that by chance something you had enabled? If so, you may want to try disabling it and see if that allows ProFTPd to start.
If that doesn't help, what distro/version is it that you're using?
Submitted by securewebs on Thu, 06/16/2016 - 17:36 Pro Licensee Comment #16
Still can't figure out how to get FTP going on a server now for the last few weeks. It is not the SSH Key problem that we had on another server, this is something different.
Jun 16 15:17:37 thresher systemd: proftpd.service start operation timed out. Terminating.
Jun 16 15:17:37 thresher proftpd: 2016-06-16 15:17:37,310 thresher.securewebs.com proftpd[10158]: ProFTPD killed (signal 15)
Jun 16 15:17:37 thresher proftpd: 2016-06-16 15:17:37,310 thresher.securewebs.com proftpd[10158]: mod_delay/0.7: unable to load DelayTable '/run/proftpd/proftpd.delay' (fd 4) into memory: Invalid argument
Jun 16 15:17:37 thresher proftpd: 2016-06-16 15:17:37,310 thresher.securewebs.com proftpd[10158]: ProFTPD 1.3.5a standalone mode SHUTDOWN
Jun 16 15:17:37 thresher systemd: Failed to start ProFTPD FTP Server.
Jun 16 15:17:37 thresher systemd: Unit proftpd.service entered failed state.
Jun 16 15:17:37 thresher systemd: proftpd.service failed. Anyone with a thought on how to debug. Never tried uninstalling and installing before. Was hoping to fix it.
Submitted by andreychek on Thu, 06/16/2016 - 18:50 Comment #17
Hmm, did you try the suggestion I shared above?
It still looks like you're still experiencing a problem with mod_delay. Let us know what you think about our thoughts in Comment #15, which addresses the problem you appear to be seeing here.
Submitted by securewebs on Thu, 06/16/2016 - 19:25 Pro Licensee Comment #18
I can see by running proftpd -l that there is a mod_delay.c listed, but I have no idea how to disable it. And I have never compiled a program in my life, that would be above my pay grade. Any thoughts on if there is a way to disable the module to see if that allows FTP to start?
Submitted by andreychek on Thu, 06/16/2016 - 19:43 Comment #19
There should be a modules.conf file, somewhere in /etc... maybe in /etc/proftpd. In there would be a list of modules that ProFTPd is trying to start.
You can comment out the line loading that particular module, and then re-attempt starting ProFTPd.
Submitted by securewebs on Thu, 06/16/2016 - 21:46 Pro Licensee Comment #20
That was the first thing I did days ago. Since then I have looked at the config file many times. There are a number of modules, but no module for mod_delay.c that I can tell. I think my next experiment might be to take the config file from a working server and replace all that I can on this not working server. Perhaps there is something in the syntax that is wrong. I don't have anything to lose at this point because the service won't start anyway. If I get it working I will proudly let everyone know how it was done.
Submitted by andreychek on Thu, 06/16/2016 - 22:05 Comment #21
Yeah that's a good idea... if that doesn't help, you can always share the config with us, and we can take a peek and see if there's something in there that stands out to us.