New inbound agent URLs are not accessible by agents (regression in 2.364)

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: core
    • Environment:
    • 2.365

      In Jenkins 2.364, when creating a container to perform a build, the JNLP launcher is failing with a 403 forbidden.

      I'm able to recreate the problem with both the Docker and YetAnotherDocker plugins. I'm also able to recreate the problem on the command line.

      Rolling back to Jenkins version 2.363 corrects the issue.

      YetAnotherDocker Output:
      + RUN_CMD='su - jenkins -c '"'"'java -Xmn1G -Xms4G -jar slave.jar -noReconnect -jnlpUrl https://pipeline.#####.com/test//manage/computer/corp%2Djenkins%2Dyad%2Df4ceb4c4b385//slave-agent.jnlp -secret ########################################################'"'"
      + eval 'su - jenkins -c '"'"'java -Xmn1G -Xms4G -jar slave.jar -noReconnect -jnlpUrl https://pipeline.#####.com/test//manage/computer/corp%2Djenkins%2Dyad%2Df4ceb4c4b385//slave-agent.jnlp -secret ########################################################'"'"
      + su - jenkins -c 'java -Xmn1G -Xms4G -jar slave.jar -noReconnect -jnlpUrl https://pipeline.#####.com/test//manage/computer/corp%2Djenkins%2Dyad%2Df4ceb4c4b385//slave-agent.jnlp -secret ########################################################'
      Exception in thread "main" java.io.IOException: Failed to obtain https://pipeline.#####.com/test//manage/computer/corp%2Djenkins%2Dyad%2Df4ceb4c4b385//slave-agent.jnlp?encrypt=true
      at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:567)
      at hudson.remoting.Launcher.run(Launcher.java:346)
      at hudson.remoting.Launcher.main(Launcher.java:297)
      Caused by: java.io.IOException: Failed to load https://pipeline.#####.com/test//manage/computer/corp%2Djenkins%2Dyad%2Df4ceb4c4b385//slave-agent.jnlp?encrypt=true: 403 Forbidden
      at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:514)
      ... 2 more

      Command Line:
      bash-5.1# curl -sO https://pipeline.#####.com/test/jnlpJars/agent.jar
      bash-5.1# java -jar agent.jar -jnlpUrl https://pipeline.#####.com/test/manage/computer/jenkins%2Dbc%2Ddid%2D000k7zi0cecag/jenkins-agent.jnlp -secret ########################################################
      Failed to obtain https://pipeline.#####.com/test/manage/computer/jenkins%2Dbc%2Ddid%2D000k7zi0cecag/jenkins-agent.jnlp?encrypt=true
      java.io.IOException: Failed to load https://pipeline.#####.com/test/manage/computer/jenkins%2Dbc%2Ddid%2D000k7zi0cecag/jenkins-agent.jnlp?encrypt=true: 403 Forbidden
      at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:514)
      at hudson.remoting.Launcher.run(Launcher.java:346)
      at hudson.remoting.Launcher.main(Launcher.java:297)
      Waiting 10 seconds before retry
      Failed to obtain https://pipeline.#####.com/test/manage/computer/jenkins%2Dbc%2Ddid%2D000k7zi0cecag/jenkins-agent.jnlp?encrypt=true
      java.io.IOException: Failed to load https://pipeline.#####.com/test/manage/computer/jenkins%2Dbc%2Ddid%2D000k7zi0cecag/jenkins-agent.jnlp?encrypt=true: 403 Forbidden
      at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:514)
      at hudson.remoting.Launcher.run(Launcher.java:346)
      at hudson.remoting.Launcher.main(Launcher.java:297)
      Waiting 10 seconds before retry

            Assignee:
            Tim Jacomb
            Reporter:
            William Gillaspy
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: