Troubleshooting connections between components
If agent nodes can't retrieve configurations, check for communication, certificate, DNS , and NTP issues.
Agents can't reach the primary server
Agent nodes must be able to communicate with the primary server in order to retrieve configurations.
telnet
<PRIMARY_HOSTNAME> 8140
returns a Name or service not
known error.Agents don't have signed certificates
Agent certificates must be signed by the primary server.
Agents aren't using the primary server's valid DNS name
Agents trust the primary server only if they contact it at one of the valid hostnames specified when the primary server was installed.
puppet agent
--configprint server
, then the agent node and primary server can't
communicate.Time is out of sync
The date and time must be in sync on the primary server and agent nodes.
date
command returns
incorrect or inconsistent dates.Node certificates have invalid dates
The date and time must be in sync when certificates are created.
openssl x509 -text -noout -in $(puppet config print --section master ssldir)/certs/<NODE_NAME>.pem
A node is re-using a certname
If a new node re-uses an old node's certname, and the primary server retains the previous node's certificate, the new node can't request a new certificate.
Agents can't reach the filebucket server
If the primary server is installed with a certname that doesn't match its hostname, agents can't back up files to the filebucket on the primary server.
If agents logs contain errors like could not back up, this means nodes are likely attempting to back up files to the wrong hostname.
/etc/puppetlabs/code/environments/production/manifests/site.pp
so that
the filebucket server
attribute points to the correct hostname. For
example:
# Define filebucket 'main':
filebucket { 'main':
server => '<PRIMARY_DNS_NAME>',
path => false,
}
server
attribute on the primary
server fixes the error on all agent nodes.Orchestrator can't connect to the PE Bolt server
There are two options for debugging a faulty connection between the orchestrator and the PE Bolt server.
- Set the
bolt_server_loglevel
parameter in thepuppet_enterprise::profile::bolt_server
class, and then run Puppet. - Manually update the
loglevel
parameter in the/etc/puppetlabs/bolt-server/conf.d/bolt-server.conf
file.
The Bolt server logs are located at:
/var/log/puppetlabs/bolt-server/bolt-server.log