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

Successful builds fails at the end (Could not initialize class hudson.slaves.SlaveComputer)

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • matrix-project-plugin
    • None

      When I am running a matrix job, after all the children pass the build successfully, the parent slave suddenly fails at the end of the build.

       

      This happens sometimes, and a reboot always helps to solve the problem, but after some time, it happens again, and we need to reboot the parent slave again.

       

      • it happens only on parent slave in matrix jobs.
      • Lately, we changed the JVM options Maximum Heap size to 7GB when connecting the parent as Jenkins slave, it didn't help either.

       

       

      This is the error it produces:
      FATAL: Remote call on parent_slave failed
      Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to parent_slave
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
      at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
      at hudson.remoting.Channel.call(Channel.java:955)
      at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1086)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
      at hudson.model.Run.execute(Run.java:1853)
      at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:427)
      java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
      at hudson.util.ProcessTree.get(ProcessTree.java:432)
      at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1103)
      at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1094)
      at hudson.remoting.UserRequest.perform(UserRequest.java:211)
      at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      at hudson.remoting.Request$2.run(Request.java:369)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused: java.io.IOException: Remote call on parent_slave failed
      at hudson.remoting.Channel.call(Channel.java:961)
      at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1086)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
      at hudson.model.Run.execute(Run.java:1853)
      at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:427)
       

          [JENKINS-63242] Successful builds fails at the end (Could not initialize class hudson.slaves.SlaveComputer)

          Ben Magriso created issue -
          Ben Magriso made changes -
          Environment Original: Jenkins version: 2.204.6
          Matrix Project plugin version: 1.14
          Slave machine: CentOS 7
          Slave java: 1.8.0_252 (x86_64)
          New: Jenkins version: 2.204.6
          Matrix Project plugin version: 1.14
          Slave machine: CentOS 7
          Slave java version: 1.8.0_252 (x86_64)
          Ben Magriso made changes -
          Description Original: When I am running a matrix job, after all the children pass the build successfully, the parent slave suddenly fails at the end of the build.

           

          this happens sometimes, and a reboot always helps to solve the problem, but after some time, it happens again, and we need to reboot the parent slave again.

           
           * it happens only on parent slave in matrix jobs.
           * Lately, we changed the JVM options Maximum Heap size to 7GB when connecting the parent as Jenkins slave, it didn't help either.

           

           

          This is the error it produces:
          FATAL: Remote call on parent_slave failed
          Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to parent_slave
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
          at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
          at hudson.remoting.Channel.call(Channel.java:955)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1086)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
          at hudson.model.Run.execute(Run.java:1853)
          at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:427)
          java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
          at hudson.util.ProcessTree.get(ProcessTree.java:432)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1103)
          at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1094)
          at hudson.remoting.UserRequest.perform(UserRequest.java:211)
          at hudson.remoting.UserRequest.perform(UserRequest.java:54)
          at hudson.remoting.Request$2.run(Request.java:369)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
          Caused: java.io.IOException: Remote call on parent_slave failed
          at hudson.remoting.Channel.call(Channel.java:961)
          at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1086)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
          at hudson.model.Run.execute(Run.java:1853)
          at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:427)
           
          New: When I am running a matrix job, after all the children pass the build successfully, the parent slave suddenly fails at the end of the build.

           

          This happens sometimes, and a reboot always helps to solve the problem, but after some time, it happens again, and we need to reboot the parent slave again.

           
           * it happens only on parent slave in matrix jobs.
           * Lately, we changed the JVM options Maximum Heap size to 7GB when connecting the parent as Jenkins slave, it didn't help either.

           

           

          This is the error it produces:
           FATAL: Remote call on parent_slave failed
           Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to parent_slave
           at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
           at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
           at hudson.remoting.Channel.call(Channel.java:955)
           at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1086)
           at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
           at hudson.model.Run.execute(Run.java:1853)
           at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:427)
           java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
           at hudson.util.ProcessTree.get(ProcessTree.java:432)
           at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1103)
           at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1094)
           at hudson.remoting.UserRequest.perform(UserRequest.java:211)
           at hudson.remoting.UserRequest.perform(UserRequest.java:54)
           at hudson.remoting.Request$2.run(Request.java:369)
           at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
           Caused: java.io.IOException: Remote call on parent_slave failed
           at hudson.remoting.Channel.call(Channel.java:961)
           at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1086)
           at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
           at hudson.model.Run.execute(Run.java:1853)
           at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:427)
            
          Ben Magriso made changes -
          Environment Original: Jenkins version: 2.204.6
          Matrix Project plugin version: 1.14
          Slave machine: CentOS 7
          Slave java version: 1.8.0_252 (x86_64)
          New: Jenkins version: 2.204.6
          Matrix Project plugin version: 1.17
          Slave machine: CentOS 7
          Slave java version: 1.8.0_252 (x86_64)
          Shuky Riechard made changes -
          Environment Original: Jenkins version: 2.204.6
          Matrix Project plugin version: 1.17
          Slave machine: CentOS 7
          Slave java version: 1.8.0_252 (x86_64)
          New: Jenkins version: 2.204.6
          Matrix Project plugin version: 1.17
          Jenkins master machine: CentOS 7.7.1908, Java openjdk version 1.8.0_252
          Parent Slave machine: CentOS 7.8.2003, Java openjdk version 1.8.0_252
          Child Slave machine: CentOS 7.4.1708, Java openjdk version 1.8.0_144
          Shuky Riechard made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]

            kohsuke Kohsuke Kawaguchi
            benmag Ben Magriso
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: