Issue in remoting after upgrade [Agent version 4.13 or newer is required]

Jenkins setup:
Jenkins: 2.426.1
OS: Linux - 5.15.0-1049-aws
Java: 11.0.20.1 - Ubuntu (OpenJDK 64-Bit Server VM)

I recently upgraded jenkins and now I cannot use my cloud nodes, The issue I am getting is:

Nov 20, 2023 1:07:32 PM hudson.remoting.jnlp.Main createEngine
INFO: Setting up agent: jp-eks-slave-r4t6g
Nov 20, 2023 1:07:32 PM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Nov 20, 2023 1:07:32 PM hudson.remoting.Engine startEngine
INFO: Using Remoting version: 4.9
Nov 20, 2023 1:07:32 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using /var/lib/jenkins/remoting as a remoting work directory
Nov 20, 2023 1:07:32 PM org.jenkinsci.remoting.engine.WorkDirManager setupLogging
INFO: Both error and output logs will be printed to /var/lib/jenkins/remoting
Nov 20, 2023 1:07:32 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://10.60.3.93:8080/]
Nov 20, 2023 1:07:32 PM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: Agent version 4.13 or newer is required.
java.io.IOException: Agent version 4.13 or newer is required.
	at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:229)
	at hudson.remoting.Engine.innerRun(Engine.java:724)
	at hudson.remoting.Engine.run(Engine.java:540)

I am using: Docker

As mu base image. Buit still not working

See Jenkins Upgrade Issue - #2 by MarkEWaite for a step-by-step guide on how to obtain a new agent.jar

Is there a solution for Jenkins running on Kubernetes please?

Okay, so I am not specifically looking for a agent node over a VM. That would have been easy to replace the jar.

For anyone running agent on K8s [Cloud Node] I had a painful day in determining that the base images have moved from Docker to Docker

I realised the issue while going into the layer details, and found out that the agent Image I pulled from /jenkins/jnlp-agent/tags didn’t have a higher version than 4.9.

However Images at /jenkins/inbound-agent/tags had versions 4.13 and higher.

So I just pulled this image and it worked for me.

1 Like

Thanks! it worked for me. append message: jenkins/inbound-agent image tag must newest
agent version 4.13 or newer is required not means image tag 4.13