-
Bug
-
Resolution: Duplicate
-
Critical
-
None
Hello. I have a problem after update Jenkins from 2.263.2 to 2.322 version:
Jenkins can't reconnect to all agents. If I delete the work folder(/home/jenkins/tmp) from the agent, Jenkins can be connected to agent.
Log:
SSHLauncher\{host='192.168.0.10', port=22, credentialsId='jenkins', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=60, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.NonVerifyingKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true} [11/30/21 07:49:24] [SSH] Opening SSH connection to 192.168.0.10:22. [11/30/21 07:49:24] [SSH] WARNING: SSH Host Keys are not being verified. Man-in-the-middle attacks may be possible against this connection. [11/30/21 07:49:24] [SSH] Authentication successful. [11/30/21 07:49:24] [SSH] The remote user's environment is: BASH=/bin/bash BASHOPTS=cmdhist:complete_fullquote:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="4" [1]="3" [2]="48" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") BASH_VERSION='4.3.48(1)-release' DIRSTACK=() EUID=999 GROUPS=() HOME=/home/jenkins HOSTNAME=eth-parity-testnet HOSTTYPE=x86_64 IFS=$' \t\n' LANG=en_US.UTF-8 LANGUAGE=en_US:en LOGNAME=jenkins MACHTYPE=x86_64-pc-linux-gnu MAIL=/var/mail/jenkins OPTERR=1 OPTIND=1 OSTYPE=linux-gnu PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PIPESTATUS=([0]="0") PPID=30458 PS4='+ ' PWD=/home/jenkins SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='192.168.0.2 52124 22' SSH_CONNECTION='192.168.0.2 52124 192.168.0.237 22' TERM=dumb UID=999 USER=jenkins XDG_RUNTIME_DIR=/run/user/999 XDG_SESSION_ID=27837 _=']' [11/30/21 07:49:24] [SSH] Checking java version of /home/jenkins/tmp/jdk/bin/java Couldn't figure out the Java version of /home/jenkins/tmp/jdk/bin/java bash: /home/jenkins/tmp/jdk/bin/java: No such file or directory [11/30/21 07:49:24] [SSH] Checking java version of java [11/30/21 07:49:24] [SSH] java -version returned 1.8.0_252. [11/30/21 07:49:24] [SSH] Starting sftp client. [11/30/21 07:49:24] [SSH] Copying latest remoting.jar... java.io.IOException: Could not copy remoting.jar into '/home/jenkins/tmp' on agent at hudson.plugins.sshslaves.SSHLauncher.copyAgentJar(SSHLauncher.java:717) at hudson.plugins.sshslaves.SSHLauncher.access$300(SSHLauncher.java:113) at hudson.plugins.sshslaves.SSHLauncher$1.call(SSHLauncher.java:457) at hudson.plugins.sshslaves.SSHLauncher$1.call(SSHLauncher.java:423) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.lang.IllegalArgumentException: invalid len argument at com.trilead.ssh2.SFTPv3Client.read(SFTPv3Client.java:1232) at com.trilead.ssh2.jenkins.SFTPClient$SFTPInputStream.read(SFTPClient.java:172) at com.google.common.io.ByteStreams.toByteArrayInternal(ByteStreams.java:184) at com.google.common.io.ByteStreams.toByteArray(ByteStreams.java:224) at hudson.plugins.sshslaves.SSHLauncher.readInputStreamIntoByteArrayAndClose(SSHLauncher.java:775) at hudson.plugins.sshslaves.SSHLauncher.copyAgentJar(SSHLauncher.java:686) ... 7 more [11/30/21 07:49:25] Launch failed - cleaning up connection [11/30/21 07:49:25] [SSH] Connection closed. SSHLauncher\{host='144.76.25.187', port=2205, credentialsId='jenkins', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=60, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.NonVerifyingKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true} [11/30/21 08:13:24] [SSH] Opening SSH connection to 144.76.25.187:2205. [11/30/21 08:13:24] [SSH] WARNING: SSH Host Keys are not being verified. Man-in-the-middle attacks may be possible against this connection. [11/30/21 08:13:24] [SSH] Authentication successful. [11/30/21 08:13:24] [SSH] The remote user's environment is: BASH=/bin/bash BASHOPTS=cmdhist:complete_fullquote:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="4" [1]="3" [2]="48" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") BASH_VERSION='4.3.48(1)-release' DIRSTACK=() EUID=999 GROUPS=() HOME=/home/jenkins HOSTNAME=eth-parity-testnet HOSTTYPE=x86_64 IFS=$' \t\n' LANG=en_US.UTF-8 LANGUAGE=en_US:en LOGNAME=jenkins MACHTYPE=x86_64-pc-linux-gnu MAIL=/var/mail/jenkins OPTERR=1 OPTIND=1 OSTYPE=linux-gnu PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PIPESTATUS=([0]="0") PPID=30597 PS4='+ ' PWD=/home/jenkins SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='192.168.0.2 48600 22' SSH_CONNECTION='192.168.0.2 48600 192.168.0.237 22' TERM=dumb UID=999 USER=jenkins XDG_RUNTIME_DIR=/run/user/999 XDG_SESSION_ID=27843 _=']' [11/30/21 08:13:24] [SSH] Checking java version of /home/jenkins/tmp/jdk/bin/java Couldn't figure out the Java version of /home/jenkins/tmp/jdk/bin/java bash: /home/jenkins/tmp/jdk/bin/java: No such file or directory [11/30/21 08:13:24] [SSH] Checking java version of java [11/30/21 08:13:24] [SSH] java -version returned 1.8.0_252. [11/30/21 08:13:24] [SSH] Starting sftp client. [11/30/21 08:13:25] [SSH] Copying latest remoting.jar... java.io.IOException: Could not copy remoting.jar into '/home/jenkins/tmp' on agent at hudson.plugins.sshslaves.SSHLauncher.copyAgentJar(SSHLauncher.java:717) at hudson.plugins.sshslaves.SSHLauncher.access$300(SSHLauncher.java:113) at hudson.plugins.sshslaves.SSHLauncher$1.call(SSHLauncher.java:457) at hudson.plugins.sshslaves.SSHLauncher$1.call(SSHLauncher.java:423) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.lang.IllegalArgumentException: invalid len argument at com.trilead.ssh2.SFTPv3Client.read(SFTPv3Client.java:1232) at com.trilead.ssh2.jenkins.SFTPClient$SFTPInputStream.read(SFTPClient.java:172) at com.google.common.io.ByteStreams.toByteArrayInternal(ByteStreams.java:184) at com.google.common.io.ByteStreams.toByteArray(ByteStreams.java:224) at hudson.plugins.sshslaves.SSHLauncher.readInputStreamIntoByteArrayAndClose(SSHLauncher.java:775) at hudson.plugins.sshslaves.SSHLauncher.copyAgentJar(SSHLauncher.java:686) ... 7 more [11/30/21 08:13:25] Launch failed - cleaning up connection [11/30/21 08:13:25] [SSH] Connection closed.
Permissions:
H
- duplicates
-
JENKINS-67165 Jenkins 2.320, Agent Start up Error
- Closed