Required Data: JNLP dedicated agents

Issue

Any kind of communication issue between Jenkins master and a dedicated JNLP agent.

Required Data JNLP dedicated agents

This article describes how to collect the minimum required information for communication issues between a Jenkins master and an agent so that it can be efficiently troubleshooted.

If the required data is bigger than 20 MB you will not be able to use ZenDesk to upload all the information. On this case we would like to encourage you to use our upload service in order to attach all the required information.

Environment

  • CloudBees Jenkins Platform (CJP)
  • Operations Center (OC)
  • Client Master (CM)
  • CloudBees Jenkins Enterprise (CJE)

Required Data check list

[ ] Support bundle
[ ] Agent name
[ ] Agent config.xml
[ ] Agent logs
[ ] Master logs
[ ] Process lists in the JNLP agent machine

Support bundle

A support bundle from the Jenkins instance after the issue is exposed. Please, follow the KB below in case you don’t know how to generate a support bundle.

Agent name

The name of the agent under Manage Jenkins -> Manage Nodes

Agent config.xml

It is possible to access to the agent config.xml from the UI. You just need to add at the end of the item URL config.xml. i.e http:///computer//config.xml

<slave>
<name>new-node</name>
<description/>
<remoteFS>/Users/fbelzunc/jnlp-agent</remoteFS>
<numExecutors>1</numExecutors>
<mode>NORMAL</mode>
<retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
<launcher class="hudson.slaves.JNLPLauncher"/>
<label/>
<nodeProperties/>
</slave>

ELB/HaProxy/Firewall ?

Please, specify if there is any HAProxy/ELB/../Firewall between the Jenkins master and the JNLP agent.

Agent logs

In case the JNLP agent is running as a service, stop the service and run the agent from the command line. If the issue happens randomly, then we suggest to redirect the logs to a text file so you can grab the error messages when the issue is exposed.

java -jar slave.jar -jnlpUrl http://support-cluster.cloudbees.com/master-1/computer/new-node/slave-agent.jnlp -secret 575ff66ea96bf140d3dae4fa8d7e96ba1221096678dxxxxxxd1bf1a116

rd-jnlp-agent-command-line.png

Attach the full logs to the support tickets

Master logs

Attach the master logs around the time the issue is exposed that you can directly find in the UI under Manage Jenkins-> System Log -> All Jenkins Logs.

Notice that the idea is to correlate the master logs with the agent logs at the time the issue is exposed.

Process lists in the JNLP agent machine

In a Unix environment with ps -aux and in Windows with Get-Process from Powershell console.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.