Running minikube cluster as jenkins agent

I have a container instance: jenkins, and kubernetes cluster: minikube both running on my local machine. I can’t figure out a way to integrate minikube in jenkins. Below is how i set things up.

Setup Minikube
    - minikube start
    - replace cert and key values in .kube/config with hardcoded data

Setup Jenkins 
    - docker run --name jenkins -v jenkins_home:/var/jenkins_home -d -p 8080:8080 -p 50000:50000 --network minikube jenkins/jenkins:lts

Integrate Kubernetes in Jenkins 
    - install kubernetes plugin 
    - configure cloud -> add a new cloud -> kubernetes -> kubernetes cloud details  
        - create credential: secret file, use the file with .kube/config
        - click test connection -> Error testing connection : java.net.ConnectException: Failed to connect to /127.0.0.1:{port}

I’ve been stuck with this problem for a few good days and it’s driving me insane. My jenkins instance is already running in the same network with the minikube.

each container will have its own ip, and its own localhost, so 127.0.0.1 means the jenkins container, not the k8s controller. You’ll probably want to use the external ip.

I don’t know if there’s a dynamic way of getting it. I’ve always had a static ip for my k8s controller.

127.0.0.1 is actually the ip im getting from ‘‘kubectl cluster-info’’ that’s why i’m certain it’s from k8s

yea, normally 127.0.0.1 means localhost, as in “this computer”
inside a docker container though, 127.0.0.1 means this container
So unless you are running kubernetes inside of the jenkins container (or not using a jenkins container), 127.0.0.1 isn’t right.

The error message is clearly saying it can’t connect to 127.0.0.1 port 58711

@halkeye @izner32 Hi guys, did You resolve this issue? I have the same problem, and could not understand why my minikube cluster IP is set to localhost 127.0.0.1, I have run jenkins instance and minikube bothi in docker in the same network 192.168…

127.0.0.1 is the container itself, kubernetes will never be that address if you are running jenkins inside of minikube.

@halkeye I am running jenkins outside of minikube (as a another docker container), so I have 2 containers one with minikube and one with jenkins, in the same docker network (WSL2)
This problem is looks like causing the cluster IP which is automatically set to localhost, but don’t know why, maybe it is minikube issue?

@halkeye I think I partially resolved this problem by workaround, I was used --driver=hyperv for minikube and now I have cluster IP from my network (192.168…).

I can connect and configure jenkins in kuberenetes using local minikube but when I use freestyle project and Restrict where this project can be run option with jnlp I see errors in agent pods:

Dec 07, 2022 11:35:11 AM hudson.remoting.jnlp.Main createEngine
INFO: Setting up agent: jnlp-spwz7
Dec 07, 2022 11:35:11 AM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Dec 07, 2022 11:35:11 AM hudson.remoting.Engine startEngine
INFO: Using Remoting version: 4.9
Dec 07, 2022 11:35:11 AM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using /home/jenkins/remoting as a remoting work directory
Dec 07, 2022 11:35:11 AM org.jenkinsci.remoting.engine.WorkDirManager setupLogging
INFO: Both error and output logs will be printed to /home/jenkins/remoting
Dec 07, 2022 11:35:12 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.0.10:8080/]
Dec 07, 2022 11:35:12 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Dec 07, 2022 11:35:12 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting TCP connection tunneling is enabled. Skipping the TCP Agent Listener Port availability check
Dec 07, 2022 11:35:12 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
  Agent address: 192.168.0.10
  Agent port:    50000
  Identity:      7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:35:12 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Dec 07, 2022 11:35:12 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.0.10:50000
Dec 07, 2022 11:35:12 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Dec 07, 2022 11:35:12 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
INFO: Waiting for ProtocolStack to start.
Dec 07, 2022 11:35:22 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Remote identity confirmed: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:35:23 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected
Dec 07, 2022 11:35:23 AM hudson.remoting.UserRequest perform
WARNING: LinkageError while performing UserRequest:hudson.slaves.SlaveComputer$SlaveVersion@399417d6
java.lang.UnsupportedClassVersionError: Failed to load hudson.slaves.SlaveComputer$SlaveVersion
        at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:455)
        at hudson.remoting.RemoteClassLoader.loadRemoteClass(RemoteClassLoader.java:287)
        at hudson.remoting.RemoteClassLoader.loadWithMultiClassLoader(RemoteClassLoader.java:264)
        at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:223)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1986)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1850)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2160)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:503)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:461)
        at hudson.remoting.UserRequest.deserialize(UserRequest.java:289)
        at hudson.remoting.UserRequest.perform(UserRequest.java:189)
        at hudson.remoting.UserRequest.perform(UserRequest.java:54)
        at hudson.remoting.Request$2.run(Request.java:376)
        at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:122)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsupportedClassVersionError: hudson/slaves/SlaveComputer$SlaveVersion has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:635)
        at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:453)
        ... 24 more

Dec 07, 2022 11:35:23 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Terminated
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Performing onReconnect operation.
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: onReconnect operation completed.
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.0.10:8080/]
Dec 07, 2022 11:35:33 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Dec 07, 2022 11:35:33 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting TCP connection tunneling is enabled. Skipping the TCP Agent Listener Port availability check
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
  Agent address: 192.168.0.10
  Agent port:    50000
  Identity:      7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.0.10:50000
Dec 07, 2022 11:35:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Dec 07, 2022 11:35:33 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
INFO: Waiting for ProtocolStack to start.
Dec 07, 2022 11:35:43 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Remote identity confirmed: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:35:43 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected
Dec 07, 2022 11:35:43 AM hudson.remoting.UserRequest perform
WARNING: LinkageError while performing UserRequest:hudson.slaves.SlaveComputer$SlaveVersion@4b5a098c
java.lang.UnsupportedClassVersionError: Failed to load hudson.slaves.SlaveComputer$SlaveVersion
        at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:455)
        at hudson.remoting.RemoteClassLoader.loadRemoteClass(RemoteClassLoader.java:287)
        at hudson.remoting.RemoteClassLoader.loadWithMultiClassLoader(RemoteClassLoader.java:264)
        at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:223)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1986)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1850)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2160)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:503)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:461)
        at hudson.remoting.UserRequest.deserialize(UserRequest.java:289)
        at hudson.remoting.UserRequest.perform(UserRequest.java:189)
        at hudson.remoting.UserRequest.perform(UserRequest.java:54)
        at hudson.remoting.Request$2.run(Request.java:376)
        at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:122)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsupportedClassVersionError: hudson/slaves/SlaveComputer$SlaveVersion has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:635)
        at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:453)
        ... 24 more

Dec 07, 2022 11:35:43 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Terminated
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Performing onReconnect operation.
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: onReconnect operation completed.
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.0.10:8080/]
Dec 07, 2022 11:35:53 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Dec 07, 2022 11:35:53 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting TCP connection tunneling is enabled. Skipping the TCP Agent Listener Port availability check
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
  Agent address: 192.168.0.10
  Agent port:    50000
  Identity:      7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.0.10:50000
Dec 07, 2022 11:35:53 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Dec 07, 2022 11:35:53 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
INFO: Waiting for ProtocolStack to start.
Dec 07, 2022 11:36:03 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Remote identity confirmed: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:36:03 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected
Dec 07, 2022 11:36:03 AM hudson.remoting.UserRequest perform
WARNING: LinkageError while performing UserRequest:hudson.slaves.SlaveComputer$SlaveVersion@faf9264
java.lang.UnsupportedClassVersionError: Failed to load hudson.slaves.SlaveComputer$SlaveVersion
        at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:455)
        at hudson.remoting.RemoteClassLoader.loadRemoteClass(RemoteClassLoader.java:287)
        at hudson.remoting.RemoteClassLoader.loadWithMultiClassLoader(RemoteClassLoader.java:264)
        at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:223)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1986)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1850)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2160)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:503)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:461)
        at hudson.remoting.UserRequest.deserialize(UserRequest.java:289)
        at hudson.remoting.UserRequest.perform(UserRequest.java:189)
        at hudson.remoting.UserRequest.perform(UserRequest.java:54)
        at hudson.remoting.Request$2.run(Request.java:376)
        at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:122)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsupportedClassVersionError: hudson/slaves/SlaveComputer$SlaveVersion has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:635)
        at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:453)
        ... 24 more

Dec 07, 2022 11:36:03 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Terminated
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Performing onReconnect operation.
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: onReconnect operation completed.
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.0.10:8080/]
Dec 07, 2022 11:36:13 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Dec 07, 2022 11:36:13 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting TCP connection tunneling is enabled. Skipping the TCP Agent Listener Port availability check
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
  Agent address: 192.168.0.10
  Agent port:    50000
  Identity:      7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.0.10:50000
Dec 07, 2022 11:36:13 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Dec 07, 2022 11:36:13 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
INFO: Waiting for ProtocolStack to start.
Dec 07, 2022 11:36:23 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Remote identity confirmed: 7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:36:23 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected
Dec 07, 2022 11:36:23 AM hudson.remoting.UserRequest perform
WARNING: LinkageError while performing UserRequest:hudson.slaves.SlaveComputer$SlaveVersion@4c47605e
java.lang.UnsupportedClassVersionError: Failed to load hudson.slaves.SlaveComputer$SlaveVersion
        at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:455)
        at hudson.remoting.RemoteClassLoader.loadRemoteClass(RemoteClassLoader.java:287)
        at hudson.remoting.RemoteClassLoader.loadWithMultiClassLoader(RemoteClassLoader.java:264)
        at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:223)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1986)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1850)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2160)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:503)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:461)
        at hudson.remoting.UserRequest.deserialize(UserRequest.java:289)
        at hudson.remoting.UserRequest.perform(UserRequest.java:189)
        at hudson.remoting.UserRequest.perform(UserRequest.java:54)
        at hudson.remoting.Request$2.run(Request.java:376)
        at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:122)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsupportedClassVersionError: hudson/slaves/SlaveComputer$SlaveVersion has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:635)
        at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:453)
        ... 24 more

Dec 07, 2022 11:36:23 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Terminated
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Performing onReconnect operation.
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: onReconnect operation completed.
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.0.10:8080/]
Dec 07, 2022 11:36:33 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
Dec 07, 2022 11:36:33 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
INFO: Remoting TCP connection tunneling is enabled. Skipping the TCP Agent Listener Port availability check
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Agent discovery successful
  Agent address: 192.168.0.10
  Agent port:    50000
  Identity:      7f:1e:90:75:17:09:ed:c2:bb:4f:4c:59:21:3b:4e:fa
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.0.10:50000
Dec 07, 2022 11:36:33 AM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP4-connect
Dec 07, 2022 11:36:33 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
INFO: Waiting for ProtocolStack to start.

What’s wrong now?

Looks like you are somehow using a newer version of the plugin which is compiled for newer java (likely 11) but running older java (java 8)

see Upgrading to Jenkins LTS 2.361.x

1 Like

@halkeye Thanks I think that I found workaround, I deleted container section from configure cloud setting and then jenkins use some default settings and image “jenkins/inbound-agent:4.11-1-jdk11”

2 Likes