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.


Reply via email to