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 in Puppet by Karan
• 3,610 points
45 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 by Sirajul
• 30,140 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 in Puppet by Sirajul
• 30,140 points
28 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 in Puppet by Sirajul
• 30,140 points
16 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
179 views
0 votes
1 answer