swarm agent, bad request, azure

11 views
Skip to first unread message

Ewelina Wilkosz

unread,
Dec 15, 2020, 7:48:49 AM12/15/20
to Jenkins Users
Here is what I am getting when I try to connect VM in Azure as a build agent for Jenkins in the same Azure:

$ java -jar swarm-client-3.22.jar -username xxxxx -passwordFile password.txt -name test-agent -mode normal -master http://x.x.x.x/ -labels azure
Dec 15, 2020 12:38:57 PM hudson.plugins.swarm.Client logArguments
INFO: Client invoked with: -labels [azure] -master http://x.x.x.x/ -name test-agent -passwordFile password.txt -username *****
Dec 15, 2020 12:38:57 PM hudson.plugins.swarm.Client run
INFO: Connecting to Jenkins master
Dec 15, 2020 12:38:57 PM hudson.plugins.swarm.Client run
INFO: Attempting to connect to http://x.x.x.x/
Dec 15, 2020 12:39:00 PM hudson.plugins.swarm.Client run
SEVERE: An error occurred
java.io.IOException: Failed to obtain http://x.x.x.x/computer/test-agent-65e117e9/slave-agent.jnlp
        at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:577)
        at hudson.plugins.swarm.SwarmClient.getJnlpArgs(SwarmClient.java:159)
        at hudson.plugins.swarm.Client.run(Client.java:190)
        at hudson.plugins.swarm.Client.main(Client.java:52)
Caused by: java.io.IOException: Failed to load http://x.x.x.x/computer/test-agent-65e117e9/slave-agent.jnlp: 400 Bad Request
        at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:519)
        ... 3 more


I can see the node on Jenkins, but offline
This agent is offline because Jenkins failed to launch the agent process on it. See log for more details

Any ideas how to troubleshoot to find the reson?
Reply all
Reply to author
Forward
0 new messages