Hi !

Similar problem with version 1.500 of Jenkins (403 instead of 404) :
Failing to obtain http://URL_JENKINS/computer/SLAVE/slave-agent.jnlp
java.io.IOException: Failed to load
http://URL_JENKINS/computer/SLAVE/slave-agent.jnlp: 403 Forbidden
at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:236)
at hudson.remoting.Launcher.run(Launcher.java:198)
at hudson.remoting.Launcher.main(Launcher.java:171)
Waiting 10 seconds before retry
Failing to obtain http://URL_JENKINS/computer/SLAVE/slave-agent.jnlp
java.io.IOException: Failed to load
http://URL_JENKINS/computer/SLAVE/slave-agent.jnlp: 403 Forbidden
at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:236)
at hudson.remoting.Launcher.run(Launcher.java:198)
at hudson.remoting.Launcher.main(Launcher.java:171)
Waiting 10 seconds before retry

I launch the slave using this command line :
java -jar slave.jar -auth myuser:mypassword -jnlpUrl
http://URL_JENKINS/computer/SLAVE/slave-agent.jnlp

@Sami : The -auth option is printed when you run :
java -jar slave.jar -optionthatdoesnotexist

I can connect to Jenkins using this login/password.

Any ideas ?

Thanks in advance.
Michaël Pailloncy


2013/2/3 Sami Tikka <[email protected]>

> Which Jenkins version are you using? Recent Jenkins versions allowed
> unauthenticated access to the slave-agent.jnlp URL, which makes starting
> JNLP slaves a bit more difficult.
>
> I'm pretty sure the slave startup does not use -auth option to provide a
> username and password. Where did you pick that up?
>
> You can use a browser to authenticate and download the slave-agent.jnlp
> and save file on the slave local disk. Then start the slave and profile a
> file://localhost/path/to/slave-agent.jnlp as URL on the slave command line.
>
> -- Sami
>
> Mehdi Hayani Soujaa <[email protected]> kirjoitti 1.2.2013 kello
> 11.38:
>
> > Hii,
> >
> > From the "Jenkins-The Definitive Guide" book we've tried to add the
> slave based on the command line strategy. So, as mentioned in the book, we
> used the following command:
> >
> > java -jar slave.jar -jnlpUrl 
> > _http://**.**.**.**:****/cip/computer/NewNode/slave-agent.jnlp
> -auth user:password
> >
> > But, the problem is that each time we execute this command, we get this
> error:
> >
> > Failing to obtain http://
> **.**.**.***:****/cip/computer/NewNode/slave-agent.jnlp
> > java.io.IOException: Failed to load 
> > _http://**.**.**.***:****/cip/computer/NewNode/slave-agent.jnlp:
> 404 Not Found
> >         at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:238)
> >         at hudson.remoting.Launcher.run(Launcher.java:200)
> >         at hudson.remoting.Launcher.main(Launcher.java:173)
> > Waiting 10 seconds before retry
> >
> > It seems that it can't find the slave agent file, But if we copy the URL
> in a browser manually, the file is downloaded.
> >
> >
> > Any idea about this issue ??
> >
> >
> > Regards
> > Mehdi
> >
> >
> > --
> > 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 [email protected].
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to