Adding Windows slaves to Jenkins

1,183 views
Skip to first unread message

Patricia Mendez Lorenzo

unread,
Nov 18, 2014, 6:28:12 AM11/18/14
to jenkins...@googlegroups.com

Hello all,

just arriving to this forum, nice to be here. I have a quetion, maybe you can help me. I am trying to add a windows slave to my jenkins instance. I am following the instructions included in "Launch Java Web Start slave agent via Windows Scheduler". The master node has a proper SSL certificate, however when lauching the command:

java -jar slave.jar -jnlpUrl https://<master_node>:443/computer/<slave_windows_hostname>/slave-agent.jnlp -secret <long_hex_string>

(executed inside the windows slave) it tells me:

Exception in thread "main" javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching <master server name> found

would you have an indea about what's going worng and how to solve this issue?

Thanks so much!
Best
Patricia

Dunnigan, Terrence J

unread,
Nov 18, 2014, 10:27:38 AM11/18/14
to jenkins...@googlegroups.com

Hi Patricia,

 

Does this help? https://issues.jenkins-ci.org/browse/JENKINS-12629 There’s a few suggestions on that page, including using the –noCertificateCheck option.

 

Terry

--
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 jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patricia Mendez Lorenzo

unread,
Nov 18, 2014, 11:01:40 AM11/18/14
to jenkins...@googlegroups.com

Thanks so much Terry for your help,

indeed I realized that in the command line:

java -jar slave.jar -jnlpUrl https://<master_node>:443/computer/<slave_windows_hostname>/slave-agent.jnlp -secret <long_hex_string>

the <master_node> string was missing the domain, so I changed this information in: 
Jenkins-> Configuration->Jenkins URL

and I added the domain name also to the master hostname input. I solved the problem SSLHandshakeException. However, there is still a problem while trying to launch the application from the web.
When I try to launch it still I get an exception:

java.lang.NullPointerException
at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
[.........]

On the other hand when execurting the command manually (java -jar slave.jar -jnplUrl https:.....) I get the message:

Failing to obtain https://<master_node>:443/computer/<slave_windows_hostname>/slave-agent.jnlp?encrypt=true
java.io.IOException:
https://<master_node>:443/computer/<slave_windows_hostname>/slave-agent.jnlp?encrypt=true doesn't look like a JNPL file; content
type was text/html; charset=utf-8

Would you have any hint concerning this issue?

Thanks so much indeed
Patricia

Patricia Mendez Lorenzo

unread,
Nov 18, 2014, 11:03:17 AM11/18/14
to jenkins...@googlegroups.com

Thanks so much Terry for your help,

indeed I realized that in the command line:

java -jar slave.jar -jnlpUrl https://<master_node>:443/computer/<slave_windows_hostname>/slave-agent.jnlp -secret <long_hex_string>

the <master_node> string was missing the domain, so I changed this information in: 
Jenkins-> Configuration->Jenkins URL

and I added the domain name also to the master hostname input. I solved the problem SSLHandshakeException. However, there is still a problem while trying to launch the application from the web.
When I try to launch it still I get an exception:

java.lang.NullPointerException
at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
[.........]

On the other hand when execurting the command manually (java -jar slave.jar -jnplUrl https:.....) I get the message:

Failing to obtain https://<master_node>:443/computer/<slave_windows_hostname>/slave-agent.jnlp?encrypt=true
java.io.IOException:
https://<master_node>:443/computer/<slave_windows_hostname>/slave-agent.jnlp?encrypt=true doesn't look like a JNPL file; content
type was text/html; charset=utf-8

Would you have any hint concerning this issue?

Thanks so much indeed
Patricia



Richard Bywater

unread,
Nov 18, 2014, 3:28:34 PM11/18/14
to jenkins...@googlegroups.com
Might be worth manually going to that URL that is getting the IOException to see what is being returned as it sounds like its a HTML Page of some sort.

Richard.

--

Patricia Mendez Lorenzo

unread,
Nov 19, 2014, 8:49:11 AM11/19/14
to jenkins...@googlegroups.com


Hello Richard,

could you please tell me how this file should look like or direct me to an example so I can compare it withthe one I have?

Thanks a lot
Cheers,
Patricia

Brosh, Yossi

unread,
Nov 19, 2014, 9:54:19 AM11/19/14
to jenkins...@googlegroups.com

 

From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Patricia Mendez Lorenzo
Sent: Tuesday 18 November 2014 13:28
To: jenkins...@googlegroups.com
Subject: Adding Windows slaves to Jenkins

 

--

Patricia Mendez Lorenzo

unread,
Nov 20, 2014, 4:38:23 AM11/20/14
to jenkins...@googlegroups.com

Hi Yossi,

I've already followed all instructions included in the link you sent me and they do not work. The problem has appeared after the following actions:

1. We've installed a SSO front-end for login purposes into the master
2. We've passed to a https protocol for the master
3. We've intalled a trusted certificate also in the master

After these 3 actions, no way to restart the windows slaves and I do not know which one is making the mess and providing this IOException. wget works, i can get the slave.jnlp file, the http address works... but this jnlp file is creating a exception where it was not triggered before these 3 actions.

Thanks so much,
BR
Patricia

Brosh, Yossi

unread,
Nov 20, 2014, 6:59:00 AM11/20/14
to jenkins...@googlegroups.com

Hi Patricia,

Your master run on which os ?

Your batch file in the slave should run as administrator !!

The slave Configuration on Jenkins:

 

Check if you are admin:

echo off

echo USERNAME: %USERNAME%

 

NET FILE 1>NUL 2>NUL

echo %ERRORLEVEL%

IF %ERRORLEVEL% EQU 0 (

    ECHO this script run as Administrator

) ELSE (

    ECHO this script run as NO Administrator.!!!!!!

)

AT > NUL

IF %ERRORLEVEL% EQU 0 (

    ECHO this script run as Administrator

) ELSE (

    ECHO this script run as NO Administrator.!!!!!!

)

Reply all
Reply to author
Forward
0 new messages