Operating System - Linux
1829738 Members
1736 Online
109992 Solutions
New Discussion

Re: vsftpd dead but subsys locked

 
SOLVED
Go to solution
Harstad_1
Occasional Advisor

vsftpd dead but subsys locked

Hi All

When I try to stop the vsftpd service, executing "service vsftpd stop" the output command is :
NOT OK and "vsftpd dead but subsys locked"

Starting the service all is OK.

Seeing the /etc/init.d/vsftpd file , I see that when the stop call run properly ($?=0) execute a a "rm /var/lock/subsys/vsftp".

I have deleted the file manually , but the error continous.

Do you have any idea about it?

Linux version: Enterprise Linux AS release 3

Thanks for your help

Harstad
6 REPLIES 6
TJ_16
Frequent Advisor

Re: vsftpd dead but subsys locked

Well, for one I don't think your vsftpd is even starting.
What happens when you type:
/etc/init.d/vsftpd status after you start it?

My guess you will get the locked message.

I had this same problem with snmpd and it was due to having a "faulty" line in my /etc/snmp/snmp.conf line, so you may want to look at /etc/vsftpd/vsftpd.conf file first.
Harstad_1
Occasional Advisor

Re: vsftpd dead but subsys locked

Hi

Firstable, thanks for your answer.

I have checked the vsftpd.conf file and all seems OK. Comparing this file with the same in other server is equal

Thanks

Harstad
Greg_237
New Member

Re: vsftpd dead but subsys locked

I had a similar problem and noticed that an entry in /etc/sysconfig/network was wrong. It specified:

GATEWAY=

when it should have specified:

GATEWAY=.

When I changed it and rebooted, vsftpd came up OK and seems to be working fine.
Steven E. Protter
Exalted Contributor
Solution

Re: vsftpd dead but subsys locked

The vspftd service has died prior to your attempt to stop it.

This is caused by a number of factors, including problems not related to vsftpd.

I would suggest using yum or up2date to get the latest version of vsfptd installed.

This daemon has a log file which may give a clue as to why its dying. There are DOS type attacks or too many malicious user situations which may bring this condition about.

There may be a clue in /var/log/messages as well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
betasummerkamp
New Member

Re: vsftpd dead but subsys locked

I've just managed to fix the problem on FC 4.
I had made changes to vsftpd.conf to disable anonymous access. On using "service vsftpd start" and "service vsftpd status", Iwould get "vsftpd dead but subsys locked".

I first went into /etc/vsftpd/ and undid all changes. Ona hunch I also deleted all excess recovery confs like vsftpd.conf~ and vsftpd.conf- created by the editors used. I then removed the /var/lock/subsys/vsftpd file.

"service vsftpd stop", "service vsftpd start" and "service vsftpd status" now give the expected output.
Vipulinux
Respected Contributor

Re: vsftpd dead but subsys locked

Hi

You could try deleting the /var/run/vsftpd pid file and try and you will get the expected results.

Cheers