[Puppet Users] Re: Lock file /var/lib/puppet/state/puppetdlock

Keith Edmunds
Sat, 21 Mar 2009 12:46:23 -0000

On Mon, 16 Feb 2009 21:39:55 -0600, luke@madstop.com said:

> Note that you should be able to run ''puppetd --enable'' to
remove that
> stale lock file.

Old thread revisited. Some clients occasionally don''t clear the
lockfile
in the subject. A couple of people have suggested, as above, that "puppetd
--enable" should clear it. It doesn''t:

# ls -l /var/lib/puppet/state/puppetdlock
-rw-r--r-- 1 root root 5 2009-03-20 14:50 /var/lib/puppet/state/puppetdlock
# puppetd --enable
# ls -l /var/lib/puppet/state/puppetdlock
-rw-r--r-- 1 root root 5 2009-03-20 14:50 /var/lib/puppet/state/puppetdlock
#

My only recourse now would seem to be a cron job that checks the age of
the puppetdlock and restarts the puppet client if the lockfile is older
than a given age.

This is with:

# puppetd --version
0.24.5
#

Any ideas as to why this is happening?

Thanks,
Keith