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

Slave launcher fails after NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins$MasterComputer

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: core
    • Environment:
      Core versions: Jenkins-1.509.2, Jenkins-1.509.3, Jenkins-1.509.4-RC
      Master: Windows server 2007 SP1; RHEL6
      Slave: Linux Mint 64 bits; Windows 7 (JNLP)
    • Similar Issues:

      Description

      I am able to start slave.jar via ssh or via jnlp.
      The log of the connection shows that the node is correctly started.
      In a project, I have 2 main parts:

      • a svn checkout
      • a shell command to start cmake + compilation.

      If I launch my build, it hangs. Then, I disabled the svn checkout and leave only the shell command with a "echo hello".
      If I start the build, it hangs with the following error message:

      Started by user anonymous
      [EnvInject] - Loading node environment variables.
      Building remotely on slave_linux_64 in workspace /home/crystal/jenkins/workspace/TESTLinux
      FATAL: command execution failed
      java.io.IOException: Remote call on slave_linux_64 failed
      at hudson.remoting.Channel.call(Channel.java:723)
      at hudson.Launcher$RemoteLauncher.launch(Launcher.java:862)
      at hudson.Launcher$ProcStarter.start(Launcher.java:353)
      at hudson.Launcher$ProcStarter.join(Launcher.java:360)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:91)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:60)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      at hudson.model.Build$BuildExecution.build(Build.java:199)
      at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
      at hudson.model.Run.execute(Run.java:1603)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:247)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins$MasterComputer
      at hudson.Launcher$LocalLauncher.<init>(Launcher.java:755)
      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:991)
      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at hudson.remoting.Engine$1$1.run(Engine.java:63)
      at java.lang.Thread.run(Thread.java:724)
      Build step 'Execute shell' marked build as failure
      Finished: FAILURE

      When I looked at the jenkins directory I configured on the slave, all the required jar are present, the workspace directory is present and the build directory is correctly created by the jenkins master. But nothing in this directory.

        Attachments

          Issue Links

            Activity

            ycollet yann collette created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Environment Master: Windows server 2007 SP1
            Slave: Linux Mint 64 bits
            Core versions: Jenkins-1.509.2, Jenkins-1.509.3
            Master: Windows server 2007 SP1; RHEL6
            Slave: Linux Mint 64 bits; Windows 7 (JNLP)
            Description I am able to start slave.jar via ssh or via jnlp.
            The log of the connection shows that the node is correctly started.
            In a project, I have 2 main parts:
            - a svn checkout
            - a shell command to start cmake + compilation.

            If I launch my build, it hangs. Then, I disabled the svn checkout and leave only the shell command with a "echo hello".
            If I start the build, it hangs with the following error message:


            Started by user anonymous
            [EnvInject] - Loading node environment variables.
            Building remotely on slave_linux_64 in workspace /home/crystal/jenkins/workspace/TESTLinux
            FATAL: command execution failed
            java.io.IOException: Remote call on slave_linux_64 failed
            at hudson.remoting.Channel.call(Channel.java:723)
            at hudson.Launcher$RemoteLauncher.launch(Launcher.java:862)
            at hudson.Launcher$ProcStarter.start(Launcher.java:353)
            at hudson.Launcher$ProcStarter.join(Launcher.java:360)
            at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:91)
            at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:60)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
            at hudson.model.Build$BuildExecution.build(Build.java:199)
            at hudson.model.Build$BuildExecution.doRun(Build.java:160)
            at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
            at hudson.model.Run.execute(Run.java:1603)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:247)
            Caused by: java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins$MasterComputer
            at hudson.Launcher$LocalLauncher.<init>(Launcher.java:755)
            at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:991)
            at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965)
            at hudson.remoting.UserRequest.perform(UserRequest.java:118)
            at hudson.remoting.UserRequest.perform(UserRequest.java:48)
            at hudson.remoting.Request$2.run(Request.java:326)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
            at java.util.concurrent.FutureTask.run(FutureTask.java:166)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at hudson.remoting.Engine$1$1.run(Engine.java:63)
            at java.lang.Thread.run(Thread.java:724)
            Build step 'Execute shell' marked build as failure
            Finished: FAILURE


            When I looked at the jenkins directory I configured on the slave, all the required jar are present, the workspace directory is present and the build directory is correctly created by the jenkins master. But nothing in this directory.
            I am able to start slave.jar via ssh or via jnlp.
            The log of the connection shows that the node is correctly started.
            In a project, I have 2 main parts:
            - a svn checkout
            - a shell command to start cmake + compilation.

            If I launch my build, it hangs. Then, I disabled the svn checkout and leave only the shell command with a "echo hello".
            If I start the build, it hangs with the following error message:

            {quote}
            Started by user anonymous
            [EnvInject] - Loading node environment variables.
            Building remotely on slave_linux_64 in workspace /home/crystal/jenkins/workspace/TESTLinux
            FATAL: command execution failed
            java.io.IOException: Remote call on slave_linux_64 failed
            at hudson.remoting.Channel.call(Channel.java:723)
            at hudson.Launcher$RemoteLauncher.launch(Launcher.java:862)
            at hudson.Launcher$ProcStarter.start(Launcher.java:353)
            at hudson.Launcher$ProcStarter.join(Launcher.java:360)
            at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:91)
            at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:60)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
            at hudson.model.Build$BuildExecution.build(Build.java:199)
            at hudson.model.Build$BuildExecution.doRun(Build.java:160)
            at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
            at hudson.model.Run.execute(Run.java:1603)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:247)
            Caused by: java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins$MasterComputer
            at hudson.Launcher$LocalLauncher.<init>(Launcher.java:755)
            at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:991)
            at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965)
            at hudson.remoting.UserRequest.perform(UserRequest.java:118)
            at hudson.remoting.UserRequest.perform(UserRequest.java:48)
            at hudson.remoting.Request$2.run(Request.java:326)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
            at java.util.concurrent.FutureTask.run(FutureTask.java:166)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at hudson.remoting.Engine$1$1.run(Engine.java:63)
            at java.lang.Thread.run(Thread.java:724)
            Build step 'Execute shell' marked build as failure
            Finished: FAILURE
            {quote}

            When I looked at the jenkins directory I configured on the slave, all the required jar are present, the workspace directory is present and the build directory is correctly created by the jenkins master. But nothing in this directory.
            Component/s core [ 15593 ]
            Component/s slave-setup [ 15929 ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels remoting
            oleg_nenashev Oleg Nenashev made changes -
            Labels remoting class remoting
            Environment Core versions: Jenkins-1.509.2, Jenkins-1.509.3
            Master: Windows server 2007 SP1; RHEL6
            Slave: Linux Mint 64 bits; Windows 7 (JNLP)
            Core versions: Jenkins-1.509.2, Jenkins-1.509.3, Jenkins-1.509.4-RC
            Master: Windows server 2007 SP1; RHEL6
            Slave: Linux Mint 64 bits; Windows 7 (JNLP)
            Priority Major [ 3 ] Critical [ 2 ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels class remoting class core remoting
            oleg_nenashev Oleg Nenashev made changes -
            Priority Critical [ 2 ] Blocker [ 1 ]
            jglick Jesse Glick made changes -
            Summary Slave fails to launch commands Slave launcher fails after NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins$MasterComputer
            Labels class core remoting remoting
            Component/s slave-setup [ 15929 ]
            Component/s slave-utilization [ 17575 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            scm_issue_link SCM/JIRA link daemon made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels remoting lts-candidate remoting
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            Assignee Kohsuke Kawaguchi [ kohsuke ]
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            olivergondza Oliver Gondža made changes -
            Labels lts-candidate remoting 1.532.2-fixed remoting
            chotchki chotchki made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is duplicated by JENKINS-15796 [ JENKINS-15796 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is blocking JENKINS-15199 [ JENKINS-15199 ]
            vikulin Vadym Vikulin made changes -
            Link This issue is related to JENKINS-25316 [ JENKINS-25316 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 150902 ] JNJira + In-Review [ 193728 ]
            olivergondza Oliver Gondža made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            olivergondza Oliver Gondža made changes -
            Link This issue is related to JENKINS-36991 [ JENKINS-36991 ]

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                ycollet yann collette
              • Votes:
                5 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: