-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
Windows Jenkins master version 2.361.3, Windows Jenkins slave Swarm client 3.37
After upgrade to Swarm client 3.37 the Jenkins slave cannot connect anymore to the Jenkins master with version 2.361.3. Error message i get is:
Nov 03, 2022 3:54:12 PM hudson.plugins.swarm.SwarmClient getCsrfCrumb
SEVERE: Could not obtain CSRF crumb. Response code: 400
<h1>Bad Message 400</h1><pre>reason: Bad Request</pre>
Nov 03, 2022 3:54:12 PM hudson.plugins.swarm.Client run
SEVERE: An error occurred
hudson.plugins.swarm.RetryException: Failed to create a Swarm agent on Jenkins. Response code: 400
<h1>Bad Message 400</h1><pre>reason: Bad Request</pre>
at hudson.plugins.swarm.SwarmClient.createSwarmAgent(SwarmClient.java:405)
at hudson.plugins.swarm.Client.run(Client.java:216)
at hudson.plugins.swarm.Client.main(Client.java:68)
Java version running is in C:\Program Files\AdoptOpenJDK\jdk-11.0.11.9-openj9\bin\java.exe
Jenkins slave is started with these commands:
"C:\Program Files (x86)\GnuWin32\bin\wget" -v --no-proxy -P . http://%MASTER%%MASTERPORT%/swarm/swarm-client.jar -O swarm%MASTER%.jar
java -jar swarm%MASTER%.jar -executors 1 -disableClientsUniqueId -deleteExistingClients -fsroot %JENKINS_WORKAREA% -labels "%COMPUTERNAME% %SUPPORTED_LABELS%" -master http://%MASTER%%MASTERPORT% -username %USERNAME% -password %PASSWD% -name %COMPUTERNAME% -description "%COMPUTERNAME% runs %SUPPORTED_LABELS%"
The Jenkins project does not test Jenkins or its components with the OpenJ9 Java virtual machine. Does the same problem happen when using a recent Hotspot JDK like Adoptium 11.0.17? If not, then please switch to the hotspot virtual machine rather than the OpenJ9 virtual machine.
If it fails with the hotspot virtual machine, then please provide more details so that others can duplicate the problem. I frequently run a swarm 3.37 agent with Jenkins 2.361.3. The agent command line that I use is: