Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42441

add windows 7 via ssh: Could not copy slave.jar into '/volumes1/jenkins_build' on slave

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I add Windows 7 slave by launch method "launch slave agents via SSH" in Jenkins, my system info is:
      MINGW32_NT-6.1 WIN7VM06 1.0.17(0.48/3/2) 2011-04-24 23:39 i686 Msys

      and I got the following error:
      [03/02/17 16:35:13] [SSH] Opening SSH connection to WIN7VM06:22.
      [03/02/17 16:35:14] [SSH] Authentication successful.
      [03/02/17 16:35:18] [SSH] The remote users environment is:
      ALLUSERSPROFILE='C:\ProgramData'
      ANT_HOME='C:\apache-ant-1.9.3'
      APPDATA='C:\Users\chunhui.li\AppData\Roaming'
      BASH=/usr/bin/bash
      BASH_ARGC=()
      BASH_ARGV=()
      BASH_EXECUTION_STRING=set
      BASH_LINENO=()
      BASH_SOURCE=()
      BASH_VERSINFO=([0]="3" [1]="1" [2]="17" [3]="1" [4]="release" [5]="i686-pc-msys")
      BASH_VERSION='3.1.17(1)-release'
      BITVISESFSDLL=00001988-43C8DDE8-B5059B29-598EC7DD
      BZR_PROGRESS_BAR=none
      BZR_REMOTE_PATH=/data/cmsadmin/environment/release/MScms/Environment_latest/bzr
      COMMONPROGRAMFILES='C:\Program Files (x86)\Common Files'
      COMMONPROGRAMFILES(X86)='C:\Program Files (x86)\Common Files'
      COMMONPROGRAMW6432='C:\Program Files\Common Files'
      COMPUTERNAME=WIN7VM06
      COMSPEC='C:\Windows\system32\cmd.exe'
      CVConfigPath=/data/cmsadmin/environment/cmsadmin/CVconfig
      CV_HOSTTYPE=i686_MINGW32_1.0.17
      DIRSTACK=()
      EUID=500
      FP_NO_HOST_CHECK=NO
      GROUPS=()
      HISTCONTROL=ignoredups:ignorespace
      HISTFILE=/data/users/chunhui.li/.bash_history
      HISTFILESIZE=2000
      HISTSIZE=1000
      HOME=/data/users/chunhui.li
      HOMEDRIVE='
      '
      HOMEPATH='USERSERVER\homes'
      HOMESHARE='\\USERSERVER\homes'
      HOSTNAME=WIN7VM06
      HOSTTYPE=i686_MINGW32_1.0.17
      IFS=$' \t\n'
      JAVA_HOME='C:\Program Files\Java\jdk1.7.0_79'
      LOCALAPPDATA='C:\Users\chunhui.li\AppData\Local'
      LOGNAME=chunhui.li
      LOGONSERVER='
      FILESERVER'
      LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:.cmd=01;32:.exe=01;32:.com=01;32:.btm=01;32:.bat=01;32:.tar=01;31:.tgz=01;31:.arj=01;31:.taz=01;31:.lzh=01;31:.zip=01;31:.z=01;31:.Z=01;31:.gz=01;31:.bz2=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.avi=01;35:.fli=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.flac=01;35:.mp3=01;35:.mpc=01;35:.ogg=01;35:*.wav=01;35:'
      MACHTYPE=i686-pc-msys
      MAKE_MODE=unix
      MSBUILD_ROOT=/volumes1/build/
      MSENVIRONMENT_PATH=/data/cmsadmin/environment
      MSRELEASE_ROOT=/data/id/release
      MSSITE_NAME=MAPSCAPE_EINDHOVEN
      MSYSTEM=MINGW32
      NUMBER_OF_PROCESSORS=8
      OLDPWD=/data/users/hans.vanpinxteren
      OPTERR=1
      OPTIND=1
      OS=Windows_NT
      OSTYPE=msys
      PATH='/data/cmsadmin/environment/release/MScms/Environment_latest/i686_MINGW32_1.0.17:/data/cmsadmin/environment/release/MScms/Environment_latest:.:/usr/local/bin:/mingw/bin:/bin:/mingw/bin:/c/cmake-2.8.12.2-win32-x86/bin:/c/Program Files/Java/jdk1.7.0_79/bin:/c/apache-ant-1.9.3/bin:/c/Program Files/7-Zip:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/c/Program Files (x86)/Bazaar:/c/Program Files/Git/cmd'
      PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
      PIPESTATUS=([0]="0")
      PPID=1
      PROCESSOR_ARCHITECTURE=x86
      PROCESSOR_ARCHITEW6432=AMD64
      PROCESSOR_IDENTIFIER='Intel64 Family 6 Model 45 Stepping 7, GenuineIntel'
      PROCESSOR_LEVEL=6
      PROCESSOR_REVISION=2d07
      PROGRAMDATA='C:\ProgramData'
      PROGRAMFILES='C:\Program Files (x86)'
      PROGRAMFILES(X86)='C:\Program Files (x86)'
      PROGRAMW6432='C:\Program Files'
      PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
      PS4='+ '
      PSMODULEPATH='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
      PUBLIC='C:\Users\Public'
      PWD=/data/users/chunhui.li
      PYTHONPATH=/data/id/release/bzr/current/lib/python
      SHELL=/bin/sh
      SHELLOPTS=braceexpand:hashall:interactive-comments
      SHLVL=1
      SSHSESSIONID=2555
      SSHWINGROUP='Development and Innovation'
      SSHWINGROUPDOMAIN=MAPSCAPE
      SSHWINUSER=chunhui.li
      SSHWINUSERDOMAIN=MAPSCAPE
      SSH_CLIENT='10.57.101.161 57092 22'
      SSH_CONNECTION='10.57.101.161 57092 10.57.2.157 22'
      SYSTEMDRIVE=C:
      SYSTEMROOT='C:\Windows'
      TEMP=/tmp
      TEMPDIR=/tmp
      TERM=cygwin
      TMP=/tmp
      TMPDIR=/tmp
      UID=500
      USER=chunhui.li
      USERDOMAIN=MAPSCAPE
      USERNAME=chunhui.li
      USERPROFILE='C:\Users\chunhui.li'
      WINDIR='C:\Windows'
      WINDOWS_PATH='/mingw/bin:/c/cmake-2.8.12.2-win32-x86/bin:/c/Program Files/Java/jdk1.7.0_79/bin:/c/apache-ant-1.9.3/bin:/c/Program Files/7-Zip:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/c/Program Files (x86)/Bazaar:/c/Program Files/Git/cmd'
      WINDOWS_TRACING_FLAGS=3
      WINDOWS_TRACING_LOGFILE='C:\BVTBin\Tests\installpackage\csilogfile.log'
      WINSSHDGROUP='Development and Innovation'
      WINSSHDGROUPDOMAIN=MAPSCAPE
      _=/data/cmsadmin/environment/bin/profile
      i=/etc/profile.d/home.sh
      [03/02/17 16:35:21] [SSH] Checking java version of java
      [03/02/17 16:35:25] [SSH] java -version returned 1.7.0_79.
      [03/02/17 16:35:25] [SSH] Starting sftp client.
      hudson.util.IOException2: Could not copy slave.jar into '/volumes1/jenkins_build' on slave
      at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:1057)
      at hudson.plugins.sshslaves.SSHLauncher.access$300(SSHLauncher.java:139)
      at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:726)
      at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:709)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: com.trilead.ssh2.SFTPException: The requested operation failed. (SSH_FX_FAILURE: An error occurred, but no specific error code exists to describe the failure.)
      at com.trilead.ssh2.SFTPv3Client.statBoth(SFTPv3Client.java:440)
      at com.trilead.ssh2.SFTPv3Client.stat(SFTPv3Client.java:455)
      at hudson.plugins.sshslaves.SFTPClient._stat(SFTPClient.java:60)
      at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:1021)
      ... 7 more
      [03/02/17 16:35:28] Launch failed - cleaning up connection
      [03/02/17 16:35:28] [SSH] Connection closed.

      [03/02/17 16:59:13] [SSH] Opening SSH connection to WIN7VM06:22.

      [03/02/17 16:59:15] [SSH] Authentication successful.

      [03/02/17 16:59:20] [SSH] The remote users environment is:

      ALLUSERSPROFILE='C:\ProgramData'
      ANT_HOME='C:\apache-ant-1.9.3'
      APPDATA='C:\Users\chunhui.li\AppData\Roaming'
      BASH=/usr/bin/bash
      BASH_ARGC=()
      BASH_ARGV=()
      BASH_EXECUTION_STRING=set
      BASH_LINENO=()
      BASH_SOURCE=()
      BASH_VERSINFO=([0]="3" [1]="1" [2]="17" [3]="1" [4]="release" [5]="i686-pc-msys")
      BASH_VERSION='3.1.17(1)-release'
      BITVISESFSDLL=00000DD8-07D86ABF-E166485C-ADF7854D
      BZR_PROGRESS_BAR=none
      BZR_REMOTE_PATH=/data/cmsadmin/environment/release/MScms/Environment_latest/bzr
      COMMONPROGRAMFILES='C:\Program Files (x86)\Common Files'
      COMMONPROGRAMFILES(X86)='C:\Program Files (x86)\Common Files'
      COMMONPROGRAMW6432='C:\Program Files\Common Files'
      COMPUTERNAME=WIN7VM06
      COMSPEC='C:\Windows\system32\cmd.exe'
      CVConfigPath=/data/cmsadmin/environment/cmsadmin/CVconfig
      CV_HOSTTYPE=i686_MINGW32_1.0.17
      DIRSTACK=()
      EUID=500
      FP_NO_HOST_CHECK=NO
      GROUPS=()
      HISTCONTROL=ignoredups:ignorespace
      HISTFILE=/data/users/chunhui.li/.bash_history
      HISTFILESIZE=2000
      HISTSIZE=1000
      HOME=/data/users/chunhui.li
      HOMEDRIVE='
      '
      HOMEPATH='USERSERVER\homes'
      HOMESHARE='\\USERSERVER\homes'
      HOSTNAME=WIN7VM06
      HOSTTYPE=i686_MINGW32_1.0.17
      IFS=$' \t\n'
      JAVA_HOME='C:\Program Files\Java\jdk1.7.0_79'
      LOCALAPPDATA='C:\Users\chunhui.li\AppData\Local'
      LOGNAME=chunhui.li
      LOGONSERVER='
      FILESERVER'
      LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:.cmd=01;32:.exe=01;32:.com=01;32:.btm=01;32:.bat=01;32:.tar=01;31:.tgz=01;31:.arj=01;31:.taz=01;31:.lzh=01;31:.zip=01;31:.z=01;31:.Z=01;31:.gz=01;31:.bz2=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.avi=01;35:.fli=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.flac=01;35:.mp3=01;35:.mpc=01;35:.ogg=01;35:*.wav=01;35:'
      MACHTYPE=i686-pc-msys
      MAKE_MODE=unix
      MSBUILD_ROOT=/volumes1/build/
      MSENVIRONMENT_PATH=/data/cmsadmin/environment
      MSRELEASE_ROOT=/data/id/release
      MSSITE_NAME=MAPSCAPE_EINDHOVEN
      MSYSTEM=MINGW32
      NUMBER_OF_PROCESSORS=8
      OLDPWD=/data/users/hans.vanpinxteren
      OPTERR=1
      OPTIND=1
      OS=Windows_NT
      OSTYPE=msys
      PATH='/data/cmsadmin/environment/release/MScms/Environment_latest/i686_MINGW32_1.0.17:/data/cmsadmin/environment/release/MScms/Environment_latest:.:/usr/local/bin:/mingw/bin:/bin:/mingw/bin:/c/cmake-2.8.12.2-win32-x86/bin:/c/Program Files/Java/jdk1.7.0_79/bin:/c/apache-ant-1.9.3/bin:/c/Program Files/7-Zip:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/c/Program Files (x86)/Bazaar:/c/Program Files/Git/cmd'
      PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
      PIPESTATUS=([0]="0")
      PPID=1
      PROCESSOR_ARCHITECTURE=x86
      PROCESSOR_ARCHITEW6432=AMD64
      PROCESSOR_IDENTIFIER='Intel64 Family 6 Model 45 Stepping 7, GenuineIntel'
      PROCESSOR_LEVEL=6
      PROCESSOR_REVISION=2d07
      PROGRAMDATA='C:\ProgramData'
      PROGRAMFILES='C:\Program Files (x86)'
      PROGRAMFILES(X86)='C:\Program Files (x86)'
      PROGRAMW6432='C:\Program Files'
      PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
      PS4='+ '
      PSMODULEPATH='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
      PUBLIC='C:\Users\Public'
      PWD=/data/users/chunhui.li
      PYTHONPATH=/data/id/release/bzr/current/lib/python
      SHELL=/bin/sh
      SHELLOPTS=braceexpand:hashall:interactive-comments
      SHLVL=1
      SSHSESSIONID=2558
      SSHWINGROUP='Development and Innovation'
      SSHWINGROUPDOMAIN=MAPSCAPE
      SSHWINUSER=chunhui.li
      SSHWINUSERDOMAIN=MAPSCAPE
      SSH_CLIENT='10.57.101.161 60340 22'
      SSH_CONNECTION='10.57.101.161 60340 10.57.2.157 22'
      SYSTEMDRIVE=C:
      SYSTEMROOT='C:\Windows'
      TEMP=/tmp
      TEMPDIR=/tmp
      TERM=cygwin
      TMP=/tmp
      TMPDIR=/tmp
      UID=500
      USER=chunhui.li
      USERDOMAIN=MAPSCAPE
      USERNAME=chunhui.li
      USERPROFILE='C:\Users\chunhui.li'
      WINDIR='C:\Windows'
      WINDOWS_PATH='/mingw/bin:/c/cmake-2.8.12.2-win32-x86/bin:/c/Program Files/Java/jdk1.7.0_79/bin:/c/apache-ant-1.9.3/bin:/c/Program Files/7-Zip:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/c/Program Files (x86)/Bazaar:/c/Program Files/Git/cmd'
      WINDOWS_TRACING_FLAGS=3
      WINDOWS_TRACING_LOGFILE='C:\BVTBin\Tests\installpackage\csilogfile.log'
      WINSSHDGROUP='Development and Innovation'
      WINSSHDGROUPDOMAIN=MAPSCAPE
      _=/data/cmsadmin/environment/bin/profile
      i=/etc/profile.d/home.sh
      [03/02/17 16:59:24] [SSH] Checking java version of java

      [03/02/17 16:59:29] [SSH] java -version returned 1.7.0_79.
      [03/02/17 16:59:29] [SSH] Starting sftp client.

      hudson.util.IOException2: Could not copy slave.jar into '/volumes1/jenkins_build' on slave
      at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:1057)
      at hudson.plugins.sshslaves.SSHLauncher.access$300(SSHLauncher.java:139)
      at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:726)
      at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:709)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: com.trilead.ssh2.SFTPException: The requested operation failed. (SSH_FX_FAILURE: An error occurred, but no specific error code exists to describe the failure.)
      at com.trilead.ssh2.SFTPv3Client.statBoth(SFTPv3Client.java:440)
      at com.trilead.ssh2.SFTPv3Client.stat(SFTPv3Client.java:455)
      at hudson.plugins.sshslaves.SFTPClient._stat(SFTPClient.java:60)
      at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:1021)
      ... 7 more
      [03/02/17 16:59:40] Launch failed - cleaning up connection
      [03/02/17 16:59:40] [SSH] Connection closed.

      I can manually copy slave.jar into '/volumes1/jenkins_build' with the same user.

        Attachments

          Issue Links

            Activity

            Show
            ifernandezcalvo Ivan Fernandez Calvo added a comment - see this comment https://issues.jenkins-ci.org/browse/JENKINS-42856?focusedCommentId=301254&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-301254

              People

              Assignee:
              ifernandezcalvo Ivan Fernandez Calvo
              Reporter:
              hubertli Hubert Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: