-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
Jenkins and plugins versions report
We updated from 2.532 -> 2.537 and then all our agents failed to connect :(
Sorry, we had to drop back to 2.532 immediately (production) so all I have is the error which hopefully helps
Im not sure what version between of these that the issue was introduced.
[11/19/25 13:40:53] [SSH] Starting sftp client.
[11/19/25 13:40:53] [SSH] Copying latest remoting.jar...
java.io.IOException: Could not copy remoting.jar into 'c:\jenkins' on agent
at PluginClassLoader for ssh-slaves//hudson.plugins.sshslaves.SSHLauncher.copyAgentJar(SSHLauncher.java:738)
at PluginClassLoader for ssh-slaves//hudson.plugins.sshslaves.SSHLauncher.lambda$launch$0(SSHLauncher.java:462)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.IllegalArgumentException: invalid len argument
at PluginClassLoader for trilead-api//com.trilead.ssh2.SFTPv3Client.read(SFTPv3Client.java:1250)
at PluginClassLoader for trilead-api//com.trilead.ssh2.jenkins.SFTPClient$SFTPInputStream.read(SFTPClient.java:172)
at org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:337)
at org.apache.commons.io.input.BoundedInputStream.read(BoundedInputStream.java:536)
at org.apache.commons.io.output.AbstractByteArrayOutputStream.writeImpl(AbstractByteArrayOutputStream.java:405)
at org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream.write(UnsynchronizedByteArrayOutputStream.java:227)
at org.apache.commons.io.IOUtils.copyToOutputStream(IOUtils.java:1958)
at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:2918)
at PluginClassLoader for ssh-slaves//hudson.plugins.sshslaves.SSHLauncher.readInputStreamIntoByteArrayAndClose(SSHLauncher.java:796)
at PluginClassLoader for ssh-slaves//hudson.plugins.sshslaves.SSHLauncher.copyAgentJar(SSHLauncher.java:705)
What Operating System are you using (both controller, and any agents involved in the problem)?
Controller:
Windows Server 2019 Standard 1809
openjdk 17.0.12 2024-07-16 LTS
Agents:
Windows 10 Pro 22H2
openjdk 17.0.12 2024-07-16 LTS
(Pretty sure our linux agents had the same issue as well)
We do have 1x agent using Java 21 but I forgot to check if that connected OK due to my "panic" to get us back online.
UPDATE:
Found the logs for the agent using jdk-21.0.7.6-hotspot and it had the same issue as above
Reproduction steps
Update controller to 2.532
All ssh agents fail to copy new remoting.jar
Expected Results
agent connects
Actual Results
all agents stay offline
Anything else?
No response
Are you interested in contributing a fix?
No response