Hello Friends,
We have found `agent_catalog_run.lock` file is more than 24 hour old and not being deleted automatically and still it's pid exist .
Puppet should heve advance enough to track such things and auto del this file if older than certain age OR should have some parameters in puppet.conf to control such situation .
# date
Mon May 11 16:24:45 IST 2015
# cat /var/lib/puppet/state/agent_catalog_run.lock
24145
# ll /var/lib/puppet/state/agent_catalog_run.lock
-rw-r--r-- 1 root root 5 May 10 01:43 /var/lib/puppet/state/agent_catalog_run.lock
# puppet agent -t --no-daemonize --onetime
Notice: Run of Puppet configuration client already in progress; skipping (/var/lib/puppet/state/agent_catalog_run.lock exists)
# stat /var/lib/puppet/state/agent_catalog_run.lock
File: `/var/lib/puppet/state/agent_catalog_run.lock'
Size: 5 Blocks: 8 IO Block: 4096 regular file
Device: fd06h/64774d Inode: 131155 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2015-05-11 10:51:43.761514774 +0530
Modify: 2015-05-10 01:43:52.205471543 +0530
Change: 2015-05-10 01:43:52.205471543 +0530
# ll /proc/24145/fd/
total 0
lr-x------ 1 root root 64 May 11 15:36 0 -> /dev/null
l-wx------ 1 root root 64 May 11 15:36 1 -> /dev/null
l-wx------ 1 root root 64 May 11 15:36 2 -> /dev/null
lrwx------ 1 root root 64 May 11 15:36 3 -> socket:[6398356]
lr-x------ 1 root root 64 May 11 15:36 4 -> /etc/group
lrwx------ 1 root root 64 May 11 15:36 5 -> socket:[7500737]
[root@qpass-prod-dbmgmt-101 ~]#
We are running with:
* Master:
* puppet-server-3.7.5-1.el6.noarch
* puppet-3.7.5-1.el6.noarch
* facter-2.4.3-1.el6.x86_64
* ruby-1.8.7.374-3.el6_6.x86_64
* mcollective-2.8.0-1.el6.noarch
* Agent:
* mcollective-2.8.0-1.el6.noarch
* puppet-3.7.5-1.el6.noarch
* facter-2.4.3-1.el6.x86_64
* ruby-1.8.7.374-3.el6_6.x86_64
Any one faced such issue, please guide how to overcome this issue .
I tried below:
1. restart puppet - NO luck
2. manually delete the `/var/lib/puppet/state/agent_catalog_run.lock` - this work but this can't be permanent solution .
Please help!!
↧