Jenkins Upgrade Issue

I upgraded Jenkins to v2.394 which is running on Linux OS. After the upgrade 2 of the windows agents were not able to connect back to the controller. After some investigation, agent error log says “Agent version 4.7 or newer is required”. How do I upgrade it? Thank you.

The Windows agent will have a file agent.jar installed on it somewhere. A new copy of that file needs to be downloaded from the controller page that is used to configure the agent. Replace the old copy of agent.jar with the new copy and restart the agent.

As an alternative that would avoid the need to download that update yourself, you could switch from the inbound agent configuration you are running now to instead use an ssh (outbound) agent. Rough instructions are available in Launch Windows agents with OpenSSH.

1 Like

okay. I downloaded using controllerurl/jnlpjars/agent.jar, replaced it and started again. It just took 3 minutes. Thanks.

@MarkEWaite Is there a solution for Jenkins running on Kubernetes please?

Yes. Update the version of remoting that is being used by the agent that is running in Kubernetes.

The Jenkins infrastructure team runs many of the ci.jenkins.io agents with Kubernetes. I believe that they regularly upgrade the agent definition to use the most recent remoting release in the agents that are launched by Kubernetes.

The latest image, which we are using, here Docker

is 4.13. So I dont understand where the 4.9 error message is coming from.

You’re using an agent container image that is no longer being updated. Switch to use the inbound-agents container image available from Docker .

We have used updated terminology for the inbound agents for a while. By using that outdated image, you’ve not received the updates that have been made to the newer container images.