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

Swarm client service can't connect to master after update to 3.40

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • swarm-plugin
    • None

      I have updated both our swarm-client plugin in Jenkins to 3.40 and the swarm service jar to 3.40 and get the following error:

      Jul 10 16:29:09 acc-melissa systemd[1]: Started jenkins-swarm-client.
      Jul 10 16:29:09 acc-melissa java[1295057]: Jul 10, 2023 4:29:09 PM hudson.plugins.swarm.Client main
      Jul 10 16:29:09 acc-melissa java[1295057]: INFO: Client.main invoked with: [-name acc-melissa -description acc-melissa -labels acc-melissa melissa -executors 4 -username REDACTED -password REDACTED -fsroot /opt/build -master https://jenkinstest.topdesk.com -t maven-3=/opt/maven3 -disableSslVerification Jul 10 16:29:09 acc-melissa java[1295057]: Jul 10, 2023 4:29:09 PM hudson.plugins.swarm.Client run
      Jul 10 16:29:09 acc-melissa java[1295057]: INFO: Discovering Jenkins master
      Jul 10 16:29:09 acc-melissa java[1295057]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
      Jul 10 16:29:09 acc-melissa java[1295057]: SLF4J: Defaulting to no-operation (NOP) logger implementation
      Jul 10 16:29:09 acc-melissa java[1295057]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
      Jul 10 16:29:09 acc-melissa java[1295057]: Jul 10, 2023 4:29:09 PM hudson.plugins.swarm.SwarmClient discoverFromMasterUrl
      Jul 10 16:29:09 acc-melissa java[1295057]: SEVERE: Failed to fetch swarm information from Jenkins, plugin not installed?
      Jul 10 16:29:09 acc-melissa java[1295057]: Jul 10, 2023 4:29:09 PM hudson.plugins.swarm.Client run
      Jul 10 16:29:09 acc-melissa java[1295057]: SEVERE: RetryException occurred
      Jul 10 16:29:09 acc-melissa java[1295057]: hudson.plugins.swarm.RetryException: Failed to fetch swarm information from Jenkins, plugin not installed?
      Jul 10 16:29:09 acc-melissa java[1295057]:         at hudson.plugins.swarm.SwarmClient.discoverFromMasterUrl(SwarmClient.java:229)
      Jul 10 16:29:09 acc-melissa java[1295057]:         at hudson.plugins.swarm.Client.run(Client.java:114)
      Jul 10 16:29:09 acc-melissa java[1295057]:         at hudson.plugins.swarm.Client.main(Client.java:87)
      Jul 10 16:29:09 acc-melissa java[1295057]: Jul 10, 2023 4:29:09 PM hudson.plugins.swarm.Client run
       

      Downgrading the Swarm service jar to 3.39 resolves the issue again.

          [JENKINS-71615] Swarm client service can't connect to master after update to 3.40

          Mark Waite added a comment -

          I'm unable to duplicate the issue as described. My test is not running behind an nginx reverse proxy like yours is, but otherwise I tried to match your configuration. Steps that I took included:

          1. Create a plugins.txt that lists the plugins installed on your controller
          2. Create a run-jenkins.sh shell script that downloads Jenkins 2.411 and installs the plugins listed in plugins.txt
          3. Run the run-jenkins.sh shell script and complete the setup wizard by creating an account with username mwaite and password mwaite
          4. Enable port 50000 as the fixed TCP port for inbound agents
          5. Download swarm-client.jar from the /swarm/swarm-client.jar URL on that machine
          6. Run the swarm-client.jar file with the command java -jar ./swarm-client.jar -url http://testing-b.markwaite.net:8080 -username mwaite -password mwaite
          7. Confirm that the swarm client connects

          I would check the reverse proxy configuration to see if it is somehow disallowing more than it should.

          Mark Waite added a comment - I'm unable to duplicate the issue as described. My test is not running behind an nginx reverse proxy like yours is, but otherwise I tried to match your configuration. Steps that I took included: Create a plugins.txt that lists the plugins installed on your controller Create a run-jenkins.sh shell script that downloads Jenkins 2.411 and installs the plugins listed in plugins.txt Run the run-jenkins.sh shell script and complete the setup wizard by creating an account with username mwaite and password mwaite Enable port 50000 as the fixed TCP port for inbound agents Download swarm-client.jar from the /swarm/swarm-client.jar URL on that machine Run the swarm-client.jar file with the command java -jar ./swarm-client.jar -url http://testing-b.markwaite.net:8080 -username mwaite -password mwaite Confirm that the swarm client connects I would check the reverse proxy configuration to see if it is somehow disallowing more than it should.

            Unassigned Unassigned
            joepweijers Joep Weijers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: