Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70007

Could not obtain CSRF crumb. Response code: 400

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • swarm-plugin
    • 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%"

       

       

        1. 80.txt
          7 kB
          Rene Kempen
        2. def.txt
          7 kB
          Rene Kempen
        3. FAILED_Ethernet2.txt
          1 kB
          Rene Kempen
        4. FAILED.txt
          2.12 MB
          Rene Kempen
        5. image-2023-12-19-10-30-01-867.png
          41 kB
          Rene Kempen
        6. OK_Ethernet2.txt
          3 kB
          Rene Kempen
        7. OK.txt
          4 kB
          Rene Kempen

            Unassigned Unassigned
            rene_kempen Rene Kempen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: