Ask Your Question

Agent doesn't run

asked 2015-02-23 06:44:51 -0600

niccoX gravatar image

updated 2015-02-23 11:57:53 -0600

Formerly successful agent (CentOS release 6.5 (Final)) has stopped running against master (3.3.1) for a time now.

puppet agent --test --noop --debug

Notice: Run of Puppet configuration client already in progress; skipping (/var/opt/lib/pe-puppet/state/agentcatalogrun.lock exists)

no errors during test. No cert issues, selinux disabled.

puppet agent --noop --debug --verbose

Error: Could not run: Could not create PID file: /var/run/pe-puppet/ exists, last updated today Feb 23.

There is no issues between the agent and master, properly configured. ping works.

puppet agent --configprint server (no issues)

puppet kick --trace --host --debug

Connection refused - connect(2) (/opt/puppet/lib/ruby/1.9.1/net/http.rb (errors))

finished with exit code 2

Console status:

message Currently idling; last completed run 40 days 18 hours 23 minutes 16 seconds ago

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-05-11 05:48:41 -0600

shirish shukla gravatar image

But this is not the solution, puppet agent have to delete the old lock file by self .

edit flag offensive delete link more

answered 2015-02-23 11:56:43 -0600

niccoX gravatar image

I solved it by removing the /var/opt/lib/pe-puppet/state/agent_catalog_run.lock file.

It was an empty file, probably cause of a bad shutdown of the VM or puppet agent disabled.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-02-23 06:39:18 -0600

Seen: 2,124 times

Last updated: Feb 23 '15