Skip to main content
This page describes what to do in case of an Icinga alert. For more information you could search the govuk-puppet repo for the source of the alert
Warning This document has not been updated for a while now. It may be out of date.
Last updated: 5 Apr 2022

Puppet last run errors

This alert triggers when there’s an error while running Puppet on a machine.

View the logs

To view the errors in Kibana, first login to Logit, and then run the following query (where $hostname is the short name of the machine linked to the alert, for example ip-10-1-2-3):

syslog_program:"puppet-agent" AND host:$hostname

You may also SSH into the machine and look at syslog:

tail /var/log/syslog

Re-run Puppet

You can also try running Puppet again and check the output:

govuk_puppet --test

If you see Skipping because of failed dependencies in the output, and the error dpkg was interrupted, then it is likely the new instance failed to provision.

Check the puppet lock

Sometimes this alert means that there is a puppet lock on the machine, so puppet won’t be run. You can list current locks by running:

govuk_puppet -l

Could not parse puppet summary file

This usually means the Puppet client is unable to retrieve the catalogue from the master.

The file that the check uses is /var/lib/puppet/state/last_run_summary.yaml. If it is only a few lines long, check logs for the error as above.