When running a longer Jenkins (2.361.4) job the connection to the client 'unexpectedly disconnects' after about an hour killing the job and the client. Any SSH connection I have is still OK but I have to reboot the client to let Jenkins restart the client instance.
FATAL: command execution failed java.io.EOFException at java.base/java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2911) at java.base/java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3406) at java.base/java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:932) at java.base/java.io.ObjectInputStream.(ObjectInputStream.java:375) at hudson.remoting.ObjectInputStreamEx.(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) Caused: java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:75) Caused: java.io.IOException: Backing channel 'pi4node' is disconnected.
The node is on a 4GB Pi4 running 64 bit PiOSLite with Java JDK 11.0.8-zulu This was working fine until recently, and still works fine on my other node that is a 1G 3B+ running Raspian Lite with the same JDK (Running Java client instead of server, as client isn't supported on 64bit)
I've tried installing various different versions of the JDK for the Pi4 (11.0.12, 11.0.16.1, 11.0.17, 17.0.5, 19.0.1) but it's still doing it.
I've tried everything in this related issue without success, how can I get jobs longer than a hour to run?