I've configure puppet server and client, when I run puppet master --verbose --no-daemonize
on puppet server, I get following message,
Notice: Starting Puppet master version 3.8.4 Error: Could not run: Could not create PID file: /var/run/puppet/master.pid
what could be the possible solution ?
Best Answer
The error
err: Could not retrieve catalog from remote server
indicates that the puppet agent was unable to contact the puppetmaster.Ensure the puppet agent is configured with the puppetmaster's hostname or fully qualified domain name. View
/etc/puppetlabs/puppet/puppet.conf
and in section[main]
, confirm the value ofserver
is correct.Example configuration:
In the above example the server name
puppet
must be the address of the puppetmaster.See the puppet configuration documentation.
Second, ensure the puppetmaster's hostname or fully qualified domain name resolves to an IP address. Fix your DNS if it does not resolve.
Use
dig
or another tool to ensure the name resolves correctly:Lastly, check the firewall on the puppetmaster. Ensure all the required ports are allowed in the firewall configuration as specified in the documentation.
Console accepts HTTPS traffic from end-users on this port. Classifier group: “PE Console”
commands must be able to reach MCollective on this port. Classifier
group: “PE ActiveMQ Broker”