Hello dear community (sry for the multiple posts/spam - couldn't change the 
post :-/),

We use Jenkins 2.118 and I tried adding a Windows Machine (and my later my 
notebook) as a slave/remoting agent.

First I added a new Node in the Jenkins configuration "MartinsLaptopWin10". 
There I only could select "static agent".

Then I tried the "old" way with the "
https://myjenkins.de/computer/MartinsLaptopWin10/configure/slave-agent.jnlp
".
Starting this one results in an error:

BadFieldException[ Feld <jnlp><application-desc><argument> weist einen 
> ungültigen Wert auf: ,]
> at com.sun.javaws.jnl.XMLFormat$10.visitElement(Unknown Source)
> at com.sun.javaws.jnl.XMLUtils.visitElements(Unknown Source)
> at com.sun.javaws.jnl.XMLFormat.buildApplicationDesc(Unknown Source)
> at com.sun.javaws.jnl.XMLFormat.process(Unknown Source)
> at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
> at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
> at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
> at com.sun.javaws.Main.launchApp(Unknown Source)
> at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
> at com.sun.javaws.Main.access$000(Unknown Source)
> at com.sun.javaws.Main$1.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)

 
Even if I removed the empty arguments from the jnlp-file I get an error 
(downloding the remoting.jar with the link from the exceptions works fine):

com.sun.deploy.net.FailedDownloadException: Ressource konnte nicht geladen 
> werden: https://myjenkins.de/jnlpJars/remoting.jar
> at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
> at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
> at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
> at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
> at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)

+

> javax.net.ssl.SSLHandshakeException: Received fatal alert: 
> handshake_failure
> at sun.security.ssl.Alerts.getSSLException(Unknown Source)
> at sun.security.ssl.Alerts.getSSLException(Unknown Source)
> at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
> at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
> at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
> at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
> at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
> at 
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown 
> Source)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown 
> Source)
> at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
> at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
> at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.AccessController.doPrivilegedWithCombiner(Unknown Source)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown 
> Source)
> at 
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown 
> Source)
> at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
> at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
> at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
> at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
> at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
> at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
> at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
> at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
> at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)




Then I tried the docker way (https://github.com/jenkinsci/docker-jnlp-slave/
):

docker run jenkins/jnlp-slave -url https://myjenkins.de asdsadsadsadsad 
> MartinsLaptopWin10


This results in the following error:

Warning: JnlpProtocol3 is disabled by default, use JNLP_PROTOCOL_OPTS to 
> alter the behavior
> Apr 30, 2018 6:30:00 AM hudson.remoting.jnlp.Main createEngine
> INFO: Setting up agent: MartinsLaptopWin10
> Apr 30, 2018 6:30:00 AM hudson.remoting.jnlp.Main$CuiListener <init>
> INFO: Jenkins agent is running in headless mode.
> Apr 30, 2018 6:30:00 AM hudson.remoting.Engine startEngine
> INFO: Using Remoting version: 3.19
> Apr 30, 2018 6:30:00 AM hudson.remoting.Engine startEngine
> WARNING: No Working Directory. Using the legacy JAR Cache location: 
> /home/jenkins/.jenkins/cache/jars
> Apr 30, 2018 6:30:00 AM hudson.remoting.jnlp.Main$CuiListener status
> INFO: Locating server among [https:// <https://jenkins.orgavision.org/>
> myjenkins.de <https://jenkins.orgavision.org/tcpSlaveAgentListener/>]

Apr 30, 2018 6:30:00 AM hudson.remoting.jnlp.Main$CuiListener error
> SEVERE: https://myjenkins.de/tcpSlaveAgentListener/ 
> <https://jenkins.orgavision.org/tcpSlaveAgentListener/> is invalid: 404 
> Not Found
> java.io.IOException: https://myjenkins.de/tcpSlaveAgentListener/ 
> <https://jenkins.orgavision.org/tcpSlaveAgentListener/> is invalid: 404 
> Not Found
>         at 
> org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:197)
>         at hudson.remoting.Engine.innerRun(Engine.java:518)
>         at hudson.remoting.Engine.run(Engine.java:469)


I couldn't find another way in the docu
- https://jenkins.io/doc/book/managing/nodes/
- https://jenkins.io/projects/remoting/

Thanks for your help!
Martin

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e2404533-331a-47a4-a7d5-299d831d8cbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to