• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • core
    • Jenkins Version 1.581
      Master Linux AMD 64
      Slave: MacOS

      This job is having trouble connecting to the remote slave. Here is the error.

      Building remotely on <Slave> in workspace /var/qasf_repostitory/qa_submission_form_git_deploy
      FATAL: java.io.IOException: Remote call on <Slave> failed
      hudson.remoting.RemotingSystemException: java.io.IOException: Remote call on <Slave> failed
      at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:189)
      at com.sun.proxy.$Proxy56.addCredentials(Unknown Source)
      at org.jenkinsci.plugins.gitclient.RemoteGitImpl.addCredentials(RemoteGitImpl.java:203)
      at hudson.plugins.git.GitSCM.createClient(GitSCM.java:693)
      at hudson.plugins.git.GitSCM.createClient(GitSCM.java:669)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1010)
      at hudson.scm.SCM.checkout(SCM.java:488)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
      at hudson.model.Run.execute(Run.java:1745)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)
      Caused by: java.io.IOException: Remote call on <Slave> failed
      at hudson.remoting.Channel.call(Channel.java:760)
      at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:173)
      ... 14 more
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.util.Secret
      at sun.misc.Unsafe.ensureClassInitialized(Native Method)
      at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
      at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:142)
      at java.lang.reflect.Field.acquireFieldAccessor(Field.java:1088)
      at java.lang.reflect.Field.getFieldAccessor(Field.java:1069)
      at java.lang.reflect.Field.getLong(Field.java:611)
      at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1663)
      at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:72)
      at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:480)
      at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:468)
      at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365)
      at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:602)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1623)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1707)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1345)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
      at hudson.remoting.UserRequest.deserialize(UserRequest.java:185)
      at hudson.remoting.UserRequest.perform(UserRequest.java:99)
      at hudson.remoting.UserRequest.perform(UserRequest.java:49)
      at hudson.remoting.Request$2.run(Request.java:324)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      at ......remote call to <Slave>(Native Method)
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356)
      at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
      at hudson.remoting.Channel.call(Channel.java:752)
      ... 15 more

      Anyone know what the issue might be?

          [JENKINS-30253] Job fails to connect to remote slave

          Alex Earl added a comment -

          Is the slave.jar version updated on the slave computer? What JVM are you running on master and the slave?

          Alex Earl added a comment - Is the slave.jar version updated on the slave computer? What JVM are you running on master and the slave?

          I'm also facing the same issue (its intermediate) and we are using the below versions on master and slave machines; any help is highly appreciated.

          Jenkins Master - Windows server 2008
          Jenkins Slave - Windows 7
          Java JDK - 1.7.0.79 (both machines)

          Downloaded the Slave.jar from the Jenkins itself on Slave machine.

          Connecting the Slave to master using the jnlpurl connection

          sreedhar mallipeddi added a comment - I'm also facing the same issue (its intermediate) and we are using the below versions on master and slave machines; any help is highly appreciated. Jenkins Master - Windows server 2008 Jenkins Slave - Windows 7 Java JDK - 1.7.0.79 (both machines) Downloaded the Slave.jar from the Jenkins itself on Slave machine. Connecting the Slave to master using the jnlpurl connection

          Andrew Gray added a comment -

          Getting this as well on following environment:

          Jenkins Master - Windows server 2012 R2
          Jenkins Slave - Windows server 2012 R2
          Java (Master) JDK1.8.0_66
          Java (Slave) - JRE1.8.0_91

          Could different versions of Java between Master and Slave be causing the issue?

          Andrew Gray added a comment - Getting this as well on following environment: Jenkins Master - Windows server 2012 R2 Jenkins Slave - Windows server 2012 R2 Java (Master) JDK1.8.0_66 Java (Slave) - JRE1.8.0_91 Could different versions of Java between Master and Slave be causing the issue?

          Oleg Nenashev added a comment -

          Does anybody still see the issue?

          Oleg Nenashev added a comment - Does anybody still see the issue?

          I  am experiencing this output:
          Cannot contact Remote2Node: java.io.IOException: Remote call on JNLP4-connect connection from sr04014369.railinfra.local/10.16.193.66:51998 failed

          sa_git Strukton added a comment - I  am experiencing this output: Cannot contact Remote2Node: java.io.IOException: Remote call on JNLP4-connect connection from sr04014369.railinfra.local/10.16.193.66:51998 failed

          Oleg Nenashev added a comment -

          sa_git without a full stacktrace it is impossible to say anything

          Oleg Nenashev added a comment - sa_git without a full stacktrace it is impossible to say anything

          Olegm thanks for the quick repsonse.

          My issue might be https://issues.jenkins-ci.org/browse/JENKINS-42405

          When testing I found that converting SH into BAT indeed solves the issue.

           

          sa_git Strukton added a comment - Olegm thanks for the quick repsonse. My issue might be https://issues.jenkins-ci.org/browse/JENKINS-42405 When testing I found that converting SH into BAT indeed solves the issue.  

          Andrew Conti added a comment -

          I got this error as well and reconnecting the node solved the issue. The agent logs show that a new slave.jar was copied.

          [06/19/17 12:05:01] [SSH] Checking java version of java
          [06/19/17 12:05:01] [SSH] java -version returned 1.8.0_121.
          [06/19/17 12:05:01] [SSH] Starting sftp client.
          [06/19/17 12:05:02] [SSH] Copying latest slave.jar...
          [06/19/17 12:05:07] [SSH] Copied 719,269 bytes.
          Expanded the channel window size to 4MB
          [06/19/17 12:05:08] [SSH] Starting slave process: cd "/var/lib/jenkins" && java  -jar slave.jar
          <===[JENKINS REMOTING CAPACITY]===>channel started
          Slave.jar version: 3.7
          This is a Unix agent
          Evacuated stdout
          Agent successfully connected and online

          Andrew Conti added a comment - I got this error as well and reconnecting the node solved the issue. The agent logs show that a new slave.jar was copied. [06/19/17 12:05:01] [SSH] Checking java version of java [06/19/17 12:05:01] [SSH] java -version returned 1.8.0_121. [06/19/17 12:05:01] [SSH] Starting sftp client. [06/19/17 12:05:02] [SSH] Copying latest slave.jar... [06/19/17 12:05:07] [SSH] Copied 719,269 bytes. Expanded the channel window size to 4MB [06/19/17 12:05:08] [SSH] Starting slave process: cd "/ var /lib/jenkins" && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 3.7 This is a Unix agent Evacuated stdout Agent successfully connected and online

          Mihai Iacob added a comment -

          I have this stack trace:

           

          Resolving deltas: 100% (1619/1619), done. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:545) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) at ......remote call to Service Build - Agent 5(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545) at hudson.remoting.UserResponse.retrieve(UserRequest.java:253) at hudson.remoting.Channel.call(Channel.java:830) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146) at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132) at com.sun.proxy.$Proxy64.execute(Unknown Source) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1067) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107) at hudson.scm.SCM.checkout(SCM.java:495) at hudson.model.AbstractProject.checkout(AbstractProject.java:1212) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485) at hudson.model.Run.execute(Run.java:1735) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:415) ERROR: null Archiving artifacts Notifying upstream projects of job completion Finished: FAILURE
          
          
          
          

           

          master version:

           

          java -version
          openjdk version "1.8.0_111"
          OpenJDK Runtime Environment (build 1.8.0_111-b15)
          OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)
          

           

           

          slave version:

           

          openjdk version "1.8.0_131"
          OpenJDK Runtime Environment (build 1.8.0_131-b11)
          OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
           
          

           

          OS Version (both master, and slave)

           

          cat /etc/*-release
          NAME="Red Hat Enterprise Linux Server"
          VERSION="7.3 (Maipo)"
          ID="rhel"
          ID_LIKE="fedora"
          VERSION_ID="7.3"
          PRETTY_NAME="Red Hat Enterprise Linux Server 7.3 (Maipo)"
          ANSI_COLOR="0;31"
          CPE_NAME="cpe:/o:redhat:enterprise_linux:7.3:GA:server"
          HOME_URL="https://www.redhat.com/"
          BUG_REPORT_URL="https://bugzilla.redhat.com/"
           
          REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
          REDHAT_BUGZILLA_PRODUCT_VERSION=7.3
          REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
          REDHAT_SUPPORT_PRODUCT_VERSION="7.3"
          Red Hat Enterprise Linux Server release 7.3 (Maipo)
          Red Hat Enterprise Linux Server release 7.3 (Maipo)
          

           

           

          Only failed once, not sure why.

          Mihai Iacob added a comment - I have this stack trace:   Resolving deltas: 100% (1619/1619), done. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:545) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang. Thread .run( Thread .java:748) at ......remote call to Service Build - Agent 5(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545) at hudson.remoting.UserResponse.retrieve(UserRequest.java:253) at hudson.remoting.Channel.call(Channel.java:830) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146) at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132) at com.sun.proxy.$Proxy64.execute(Unknown Source) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1067) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107) at hudson.scm.SCM.checkout(SCM.java:495) at hudson.model.AbstractProject.checkout(AbstractProject.java:1212) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485) at hudson.model.Run.execute(Run.java:1735) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:415) ERROR: null Archiving artifacts Notifying upstream projects of job completion Finished: FAILURE   master version:   java -version openjdk version "1.8.0_111" OpenJDK Runtime Environment (build 1.8.0_111-b15) OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)     slave version:   openjdk version "1.8.0_131" OpenJDK Runtime Environment (build 1.8.0_131-b11) OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)     OS Version (both master, and slave)   cat /etc/*-release NAME= "Red Hat Enterprise Linux Server" VERSION= "7.3 (Maipo)" ID= "rhel" ID_LIKE= "fedora" VERSION_ID= "7.3" PRETTY_NAME= "Red Hat Enterprise Linux Server 7.3 (Maipo)" ANSI_COLOR= "0;31" CPE_NAME= "cpe:/o:redhat:enterprise_linux:7.3:GA:server" HOME_URL= "https: //www.redhat.com/" BUG_REPORT_URL= "https: //bugzilla.redhat.com/"   REDHAT_BUGZILLA_PRODUCT= "Red Hat Enterprise Linux 7" REDHAT_BUGZILLA_PRODUCT_VERSION=7.3 REDHAT_SUPPORT_PRODUCT= "Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION= "7.3" Red Hat Enterprise Linux Server release 7.3 (Maipo) Red Hat Enterprise Linux Server release 7.3 (Maipo)     Only failed once, not sure why.

            Unassigned Unassigned
            rodrd261 Daniel Rodriguez II
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: