Windows agent offline or unable to connect

Issue

  • Jenkins agent offline
  • Jenkins agent unable to connect

Environment

  • CloudBees Jenkins Enterprise (CloudBees Jenkins Platform)
  • Windows Agent (Slave)

Resolution

Re-create agent by doing the following:

1) Remove $JENKINS_HOME/nodes/{agentname}/config.xml

2) Restart both the agent (slave process) and the Jenkins master (the instance running CloudBees Jenkins Enterprise)

Note: The 2.50 (and newer) versions of remoting (slave.jar) adds support for connecting through a proxy. If you have the http_proxy environment variable or the http.proxyHost system property defined for the agent process, it won’t be able to connect to the master. If needed, please remove these and restart the Windows agent, then attempt to re-connect. If you are running CloudBees Jenkins Enterprise 1.609.1.1 or newer, you should have 2.50 or newer…unless you upgraded from a previous release and the Windows agents didn’t get updated.

Updating The Windows Agent

If necessary, use this procedure to update the Windows agent to the version bundled with your CloudBees Jenkins Enterprise release…

1) Retrieve the version from {Jenkins_Master_URL}/jnlpJars/slave.jar

2) Stop the agent process (service) on the Windows agent

3) Delete the existing slave.jar on each Windows agent and replace it with the newly retrieved version.

4) Start the agent process (service) on the Windows agent

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.