Skip to content

Version 1.11 On Jenkins 2.263.3 Agent Unable To Download JNLP File From Host #109

@David-Villeneuve

Description

@David-Villeneuve

Upgraded from 1.9 to 1.11 and Agents no longer start. They get an error downloading the .jnlp file from jenkins:

[9:08:51 PM] Creating Service with Name : agt-e_Center_Upload-4
[9:08:51 PM] ServiceSpec created with ID : wxdymep26euwr7tqy6eo91667
[9:08:51 PM] ServiceSpec request JSON : {"TaskTemplate":{"ContainerSpec":{"Image":"docreg-builder.bts.rim.net/build_u16basebuild_mainline_container:latest","Command":["sh","-cx","curl --connect-timeout 20 --max-time 60 -o agent.jar $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_JAR_URL && java -jar agent.jar -jnlpUrl $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_JNLP_URL -secret $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_SECRET -noReconnect -workDir /tmp"],"Env":["DOCKER_SWARM_PLUGIN_JENKINS_AGENT_SECRET=a120dbdfcff9f5eb63e8d01eb17f6b438ac17ebc80fb5a12a491a69f06eaa8a5","DOCKER_SWARM_PLUGIN_JENKINS_AGENT_JAR_URL=http://jenkins.example.comt:8080/jnlpJars/agent.jar","DOCKER_SWARM_PLUGIN_JENKINS_AGENT_JNLP_URL=http://jenkins.example.comt:8080/computer/agt-e_Center_Upload-4/jenkins-agent.jnlp","DOCKER_SWARM_PLUGIN_JENKINS_AGENT_NAME=agt-e_Center_Upload-4"],"Dir":"/builds","User":"builder","DNSConfig":{"Nameservers":[],"Search":[],"Options":[]},"Mounts":[{"Target":"/home/builder/.subversion","Source":"/home/builder/.subversion","Type":"bind","VolumeOptions":null},{"Target":"/home/builder/.qnx","Source":"/home/builder.qnx","Type":"bind","VolumeOptions":null},{"Target":"/home/builder/.ssh","Source":"/home/builder/.ssh","Type":"bind","VolumeOptions":null},{"Target":"/home/builder/.artifactory_python.cfg","Source":"/home/builder/.artifactory_python.cfg","Type":"bind","VolumeOptions":null}],"Hosts":["10.122.90.239 jenkins.example.com","10.222.4.15 svn.example.com svn"],"Secrets":[],"Configs":[]},"RestartPolicy":{"Condition":"none","MaxAttempts":0},"Resources":{"Limits":{"NanoCPUs":0,"MemoryBytes":0},"Reservations":{"NanoCPUs":0,"MemoryBytes":0}},"Placement":{"Constraints":[],"Platforms":[{"Architecture":"","OS":""}]}},"EndpointSpec":{"Ports":[]},"Name":"agt-e_Center_Upload-4","Labels":{"ROLE":"jenkins-agent"},"Networks":[]}
�k+ curl --connect-timeout 20 --max-time 60 -o agent.jar http://jenkins.example.com:8080/jnlpJars/agent.jar
�P % Total % Received % Xferd Average Speed Time Time Time Current
�N Dload Upload Total Spent Left Speed
��
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1485k 100 1485k 0 0 46.6M 0 --:--:-- --:--:-- --:--:-- 48.3M
��+ java -jar agent.jar -jnlpUrl http://jenkins.example.comt:8080/computer/agt-e_Center_Upload-4/jenkins-agent.jnlp -secret a120dbdfcff9f5eb63e8d01eb17f6b438ac17ebc80fb5a12a491a69f06eaa8a5 -noReconnect -workDir /tmp
�WFeb 26, 2021 9:08:52 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
�7INFO: Using /tmp/remoting as a remoting work directory
�RFeb 26, 2021 9:08:52 PM org.jenkinsci.remoting.engine.WorkDirManager setupLogging
�BINFO: Both error and output logs will be printed to /tmp/remoting
��Exception in thread "main" java.io.IOException: Failed to obtain http://jenkins.example.com:8080/computer/agt-e_Center_Upload-4/jenkins-agent.jnlp?encrypt=true
�C at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:577)
�4 at hudson.remoting.Launcher.run(Launcher.java:347)
�5 at hudson.remoting.Launcher.main(Launcher.java:298)
��Caused by: java.io.IOException: Failed to load http://jenkins.example.com:8080/computer/agt-e_Center_Upload-4/jenkins-agent.jnlp?encrypt=true: 404 Not Found
�C at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:519)
� ... 2 more

Host is Ubuntu 16, java is
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~16.04-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions