# JVM Version Incompatibility Between Jenkins Controller and Agent after the plugin updates

**URL:** <https://community.jenkins.io/t/jvm-version-incompatibility-between-jenkins-controller-and-agent-after-the-plugin-updates/27203>\
**Category:** Ask a question\
**Tags:** controller\
**Created:** [February 20, 2025, 12:51am UTC](https://community.jenkins.io/t/jvm-version-incompatibility-between-jenkins-controller-and-agent-after-the-plugin-updates/27203 "2025-02-20T00:51:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![triveni1015](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@triveni1015](https://community.jenkins.io/u/triveni1015)\
**Post date:** [February 20, 2025, 12:51am UTC](https://community.jenkins.io/t/jvm-version-incompatibility-between-jenkins-controller-and-agent-after-the-plugin-updates/27203/1 "2025-02-20T00:51:02Z")

</div>

I am experiencing an issue where my Jenkins agent goes offline with the error message: “This node is offline because the JVM version of the agent is incompatible with the controller one.” This issue started after updating some plugins.

This node is offline because the JVM version of the agent is incompatible with the controller one.

**Details** :  
\*\*\*\*Jenkins version: 2.426.3

- **Jenkins Controller Java Version** : 17.0.14
- **Jenkins Agent Java Version** : 17.0.9  
**Steps Taken** :

1. Verified that both the controller and the agent are running Java 17.
2. Set the `JAVA_HOME` environment variable on both the controller and the agent.
3. Updated the `remoting.jar` file.

**Additional Information** :

- The issue started after updating some plugins.

Any assistance or suggestions to resolve this issue would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [February 20, 2025, 7:38am UTC](https://community.jenkins.io/t/jvm-version-incompatibility-between-jenkins-controller-and-agent-after-the-plugin-updates/27203/2 "2025-02-20T07:38:11Z")

</div>

Do you have installed the plugin [Versions Node Monitors](https://plugins.jenkins.io/versioncolumn/) and configured it with paranoid++ maybe?

---

<div class="post-metadata">

**Author:** ![triveni1015](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@triveni1015](https://community.jenkins.io/u/triveni1015)\
**Post date:** [March 3, 2025, 6:58pm UTC](https://community.jenkins.io/t/jvm-version-incompatibility-between-jenkins-controller-and-agent-after-the-plugin-updates/27203/3 "2025-03-03T18:58:38Z")

</div>

I figured out the issue, and it was due to the plugin Versions Node Monitors. I adjusted the node monitor settings, which resolved the problem. Thank you for your response.

* * *

---

<div class="post-metadata">

**Author:** ![albertoal](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@albertoal](https://community.jenkins.io/u/albertoal)\
**Post date:** [May 8, 2025, 3:22pm UTC](https://community.jenkins.io/t/jvm-version-incompatibility-between-jenkins-controller-and-agent-after-the-plugin-updates/27203/4 "2025-05-08T15:22:49Z")

</div>

In case it helps someone, we had a similiar issue where after upgrading to Java 17, agents would randomly disconnect with the following error:

```auto
 I/O error in channel 
java.io.StreamCorruptedException: invalid stream header: 636F7272
java.base/java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:958)
at java.base/java.io.ObjectInputStream.<init>(ObjectInputStream.java:392)
at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:50)
at hudson.remoting.Command.readFrom(Command.java:141)

```

We do not use the Versions Monitors plugin

After digging, we discovered that certain versions of OpenJDK were causing the issues. For example `17.0.13` in the Agents and the Main Jenkins server. The issue went away after upgrading and keeping consistent OpenJDK Version numbers. We are planning an upgrade to Java 21 soon and we are hoping we won’t experience the same issues there
