headermask image

header image

vsftpd dead but subsys locked

When you are usually running ftp daemon in the Linux, you may come across this error. You notice that your ftp site is not being served. At this point you start troubleshooting by looking at the service.

/etc/init.d/vsftpd status
vsftpd dead but subsys locked

The solution to this is first stop the xinetd by the following command,

/etc/rc.d/init.d/xinetd stop
Stopping xinetd: [ OK ]

Then remove the vsftpd lock by removing the lock file from
rm /var/lock/subsys/vsftpd

Then start the vsftpd daemon by using the following command,
service vsftpd restart
Starting vsftpd for vsftpd: [ OK ]

After starting the vsftpd deamon, you need to restart the xinetd service using the following command,
/etc/rc.d/init.d/xinetd restart
Starting xinetd: [ OK ]

This will bring up your ftp site and running.

If you liked my post, feel free to subscribe to my rss feeds

3 Comments so far (Add 1 more)

  1. Thanks for ur prompt response. I will perform the above steps but I think I need permission to perfrom those steps.

    Thanks

    1. Akther Jaweed on February 5th, 2009 at 5:16 pm
  2. Hi Akther Jaweed,

    If the lock is found in both systems, then you should carry out the above steps in both systems. vsftpd is saying that it can’t start or serve because of the lock.
    In your case as you tried to reboot, Linux kernel would have sent signal 1 to all daemons asking them to stop and if the daemons are not able to performance stop within a short period of time, it would be killed. So vsftpd service may have been killed and hence the cleanup was not performed leaving out the lock file intact. Usually when you stop the service, the lock file gets removed. Hope this explains why you still got the lock files and also what you should do when you get into situations like this.

    2. Prasad MNR on February 5th, 2009 at 4:17 pm
  3. Hi
    On production server where we are using Oracle Applications 11i multi node and the Operating System is Linux unbreakable recently we shutdown both the servers and up successfully but when I was tried to use FTP not working. I was findout that vsftpd dead but subsys lock on both servers. My doubt is the above solution should be perform on both server is it works.

    Waiting for ur early reply.
    Have a nice day.

    3. Akther Jaweed on February 5th, 2009 at 3:34 pm

One Trackback

  1. […] […]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*