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

Failed to create a swam agent on jenkins. response code 411

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • swarm-plugin
    • None
    • Jenkins 2.289.2
      swam-plugin Version: 3.27
      swarm-client version: 3.27
    • 3.28

      After updating jenkins I see this error message when trying to run the swarm-client on a slave machine.

       

       

       

      Aug 09, 2021 11:01:03 AM hudson.plugins.swarm.Client logArguments
       INFO: Client invoked with: -name slave-abc -password ***** -retry 1 -url http://jenkins.sab.local -username ***** 
       Aug 09, 2021 11:01:03 AM hudson.plugins.swarm.Client run
       INFO: Connecting to Jenkins controller
       Aug 09, 2021 11:01:03 AM hudson.plugins.swarm.Client run
       INFO: Attempting to connect to http://jenkins.sab.local/
       Aug 09, 2021 11:01:04 AM hudson.plugins.swarm.Client run
       SEVERE: An error occurred
       hudson.plugins.swarm.RetryException: Failed to create a Swarm agent on Jenkins. Response code: 411
       <?xml version="1.0" encoding="iso-8859-1"?>
       <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
       <head>
       <title>411 Length Required</title>
       </head>
       <body>
       <h1>411 Length Required</h1>
       </body>
       </html>
      at hudson.plugins.swarm.SwarmClient.createSwarmAgent(SwarmClient.java:457)
       at hudson.plugins.swarm.Client.run(Client.java:204)
       at hudson.plugins.swarm.Client.main(Client.java:73)
      Aug 09, 2021 11:01:04 AM hudson.plugins.swarm.Client run
       SEVERE: Retry limit reached, exiting...
      

       

            fatmcgav Gavin Williams
            hthiery Heiko Thiery
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: