Skip to main content
Table of contents
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

Icinga alerts

Jenkins agent not connected to master

If the Jenkins agent is not connect to the master you can have a look at the Jenkins Nodes UI and see if it’s possible to diagnose and solve the problem from there.

View the log for the relevant agent, for example by clicking on the hostname of the agent and then choosing Log from the menu on the left-hand side.

Logs can also be found on the agent machine under /var/lib/jenkins/remoting/logs.

If the agent process is repeatedly starting up and failing with messages like:

deleting obsolete workspace /var/lib/jenkins/workspace/ishing-e2e-tests_govuk-test-TBY2AGKJXBE42MNITWCQM63I6R6XJSSGHBHBPH6P4IOBGXQK5OMA
...
Unexpected termination of the channel

then try clearing out the workspace directory on the agent:

$ gds govuk connect ssh -e ci ci_agent:0
$ sudo rm -r /var/lib/jenkins/workspace/*

If there doesn’t seem to be way to solve the problem it may be necessary to restart the master process:

$ gds govuk connect ssh -e ci_master
$ sudo service jenkins restart

Restarting the master process will temporarily suspend all CI jobs while the master reconnects to the agents, but it should not cause any jobs to fail.

This page was last reviewed on 23 January 2020. It needs to be reviewed again on 23 July 2020 by the page owner #govuk-2ndline .
This page was set to be reviewed before 23 July 2020 by the page owner #govuk-2ndline. This might mean the content is out of date.