Error Puppet agent lock file exist - skipping var lib puppet state agent catalog run lock exists

0 votes

While trying to apply a manifest that I have on my puppet server, I execute the command :

sudo /opt/puppetlabs/bin/puppet agent -t
Error: Puppet agent lock file exist - skipping (/var/lib/puppet/state/agent_catalog_run.lock exists...

What's the way to solve this error?

 

Sep 18, 2019 in Puppet by Karan
• 19,610 points
7,240 views

1 answer to this question.

0 votes

This usually happens when you have already issued a puppet agent -t command in a session and the process of applying the catalog isn't complete yet.

In this case, if you have to run puppet agent -t, you need to first remove that lock from the file. Try this:

sudo rm /var/lib/puppet/state/agent_catalog_run.lock

Now execute,

sudo /opt/puppetlabs/bin/puppet agent -t

This should resolve the issue.

answered Sep 18, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer

Puppet agent log shows error "could not back up"

If agents log errors like "could not ...READ MORE

answered Aug 2, 2019 in Puppet by Sirajul
• 59,230 points
1,792 views
0 votes
1 answer

Puppet: error on running sudo puppet agent -t

The puppetmaster process is the one attempting ...READ MORE

answered Aug 6, 2019 in Puppet by Sirajul
• 59,230 points
2,152 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,065 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP