---
owner_slack: "#2ndline"
title: Puppet last run errors
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-05-18
review_in: 6 months
---

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

To investigate, SSH into the machine and look at `syslog`:

```
tail /var/log/syslog
```

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

```
govuk_puppet --test
```

---
owner_slack: "#2ndline"
title: Puppet last run errors
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-08-31
review_in: 6 months
---

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

To investigate, SSH into the machine and look at `syslog`:

```
tail /var/log/syslog
```

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

```
govuk_puppet --test
```

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
```

Add info about listing locks for puppet last run docs
Add info about listing locks for puppet last run docs

Sometimes the reason for this alert is that there is a puppet lock
on the machine, so add a note about it.
