swarm agent, bad request, azure

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

swarm agent, bad request, azure

Ewelina Wilkosz
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?

You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f33c89f2-843b-4f64-819f-21c16ad321bbn%40googlegroups.com.