-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
My slaves constantly run in the following exception:
INFO: I/O error in channel channel java.io.StreamCorruptedException: invalid type code: 00 at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1764) at java.base/java.io.ObjectInputStream$FieldValues.<init>(ObjectInputStream.java:2606) at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2457) at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2257) at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1733) at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:509) at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:467) at hudson.remoting.Command.readFromObjectStream(Command.java:155) at hudson.remoting.Command.readFrom(Command.java:142) at hudson.remoting.Command.readFrom(Command.java:128) at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:35) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:61)
A second problem is that instead of closing the connection completely after that exception, Jenkins will keep on trying to make calls on the slave, which fail:
channel stopped ERROR: ERROR: Failed to monitor for Response Time Failed to monitor for Free Disk Space java.io.EOFException at java.base/java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2894) at java.base/java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3389) at java.base/java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:931) at java.base/java.io.ObjectInputStream.<init>(ObjectInputStream.java:374) at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:49) at hudson.remoting.Command.readFrom(Command.java:142) at hudson.remoting.Command.readFrom(Command.java:128) at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:35) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:61)
The only solution is to manually close the connection and reopen it.
Additional info:
openjdk version "17.0.4.1" 2022-08-12
JENKINS_VERSION | 2.369 |