Ask Your Question
0

Could not create PID file

asked 2014-07-24 12:50:46 -0500

Louis gravatar image

Every 10 seconds the following error is logged on all the the agents:

Puppet (err): Could not run: Could not create PID file: /var/lib/puppet/run/agent.pid

The scheduled runs still proceed successfully at their runinterval, but I'd still like to fix this. The log files are exploding in size.

How can I begin to troubleshoot this issue?

This is a typical agent configuration:

architecture => x86_64
facterversion => 2.1.0
puppetversion => 3.6.2
rubysitedir => /Library/Ruby/Site/1.8
rubyversion => 1.8.7
sp_cpu_type => Intel Core i5
sp_kernel_version => Darwin 12.5.0
sp_number_processors => 4
sp_os_version => OS X 10.8.5 (12F45)
sp_physical_memory => 8 GB
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-07-25 20:09:54 -0500

Louis gravatar image

updated 2014-07-25 20:12:24 -0500

Adding the --no-daemonize option to the launch daemon plist stopped the problem.

There's still a strange issue when the nodes boot up though:

Puppet (notice): Starting Puppet client version 3.6.2
Puppet (warning): Unable to fetch my node definition, but the agent run will continue:
Puppet (warning): getaddrinfo: nodename nor servname provided, or not known
/File[/var/lib/puppet/facts.d] (err): Failed to generate additional resources using 'eval_generate': getaddrinfo: nodename nor servname provided, or not known
/File[/var/lib/puppet/facts.d] (err): Could not evaluate: Could not retrieve file metadata for puppet://puppet.domain.tld/pluginfacts: getaddrinfo: nodename nor servname provided, or not known
Wrapped exception:
getaddrinfo: nodename nor servname provided, or not known
/File[/var/lib/puppet/lib] (err): Failed to generate additional resources using 'eval_generate': getaddrinfo: nodename nor servname provided, or not known
/File[/var/lib/puppet/lib] (err): Could not evaluate: Could not retrieve file metadata for puppet://puppet.domain.tld/plugins: getaddrinfo: nodename nor servname provided, or not known
Wrapped exception:
getaddrinfo: nodename nor servname provided, or not known
Puppet (notice): Finished catalog run in 1.90 seconds

The jobs still continue to run successfully though, so this is better than the way things were.

edit flag offensive delete link more
0

answered 2014-08-01 21:46:09 -0500

lavaman gravatar image

updated 2014-08-01 21:46:28 -0500

Check the permissions of the run directory. Also the errors in your answer below imply that the name of the master cannot be resolved in dns.

edit flag offensive delete link more

Comments

@lavaman Thanks, but it didn't seem to matter who owned the file or even if everyone had full permissions. As for the DNS issue, there seems to be something broken in the framework: http://stackoverflow.com/questions/4132525/getaddrinfo-nodename-nor-servname-provided-or-not-known

Louis gravatar imageLouis ( 2014-08-05 11:26:02 -0500 )edit

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

Stats

Asked: 2014-07-24 12:49:29 -0500

Seen: 2,385 times

Last updated: Aug 01 '14