Jenkins level 3

Hi All,

I am facing issue while running agent -master connectivity section as below.

[tony@stapp01 ~]$ java -jar agent.jar -jnlpUrl https://8080-port-ea65118aec7b4f5f.labs.kodekloud.com/manage/computer/App_server_1/jenkins-agent.jnlp -secret 3232732e58e335f25c32648ef395df760699243777254c5e16afa55c04871d47 -workDir “/home/tony/jenkins”
Aug 08, 2023 1:00:12 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using /home/tony/jenkins/remoting as a remoting work directory
Aug 08, 2023 1:00:12 PM org.jenkinsci.remoting.engine.WorkDirManager setupLogging
INFO: Both error and output logs will be printed to /home/tony/jenkins/remoting
Aug 08, 2023 1:00:13 PM hudson.remoting.jnlp.Main createEngine
INFO: Setting up agent: App_server_1
Aug 08, 2023 1:00:13 PM hudson.remoting.Engine startEngine
INFO: Using Remoting version: 3107.v665000b_51092
Aug 08, 2023 1:00:13 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using /home/tony/jenkins/remoting as a remoting work directory
Aug 08, 2023 1:00:13 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [https://8080-port-./]
Aug 08, 2023 1:00:13 PM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: Failed to connect to https://8080-port-./tcpSlaveAgentListener/: 8080-port-.
java.io.IOException: Failed to connect to https://8080-port-./tcpSlaveAgentListener/: 8080-port-.
*** at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:216)***
*** at hudson.remoting.Engine.innerRun(Engine.java:755)***
*** at hudson.remoting.Engine.run(Engine.java:543)***
Caused by: java.net.UnknownHostException: 8080-port-.
*** at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:572)***
*** at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)***
*** at java.base/java.net.Socket.connect(Socket.java:633)***
*** at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304)***
*** at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:178)***
*** at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:533)***
*** at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:638)***
*** at java.base/sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:266)***
*** at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380)***
*** at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193)***
*** at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242)***
*** at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)***
*** at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179)***
*** at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:142)***
*** at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:213)***
*** … 2 more***

I can understand that thsi is due to host resolving, kindly post your comments how you guys have solved this to make the agent running.

Thanks,
Prabhu

Hi @rbu20007 use openjdk-17-jre on slave node, your issue will be resolved.

I am using open JDK 17 and the problem is it is not resolving the https://8080-port-./

I tried to update the jnlp file but it is not having the option to run with the edited file.