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

Jenkins Slaves Not Communicated w/ Master After restart

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Running Jenkins 2.122 on Kubernetes Cluster with Helm Chart 0.9.0

      Kubernets plugin is version is 1.9.2

      When the Jenkins master restarts and the jobs that were in the middle resume, they are timing out trying to connect to slave to master

      ```
      Resuming build at Fri Jun 29 16:23:11 UTC 2018 after Jenkins restart
      Waiting to resume part of ...
      ```

      When I look at the logs for the slaves, I see the following error.

      ```
      Jun 29, 2018 4:23:21 PM hudson.remoting.jnlp.Main$CuiListener errorJun 29, 2018 4:23:21 PM hudson.remoting.jnlp.Main$CuiListener errorSEVERE: jenkins/slaves/restarter/JnlpSlaveRestarterInstallerjava.lang.NoClassDefFoundError: jenkins/slaves/restarter/JnlpSlaveRestarterInstaller at jenkins.slaves.restarter.JnlpSlaveRestarterInstaller$FindEffectiveRestarters$1.onReconnect(JnlpSlaveRestarterInstaller.java:97) at hudson.remoting.EngineListenerSplitter.onReconnect(EngineListenerSplitter.java:49) at hudson.remoting.Engine.innerRun(Engine.java:662) at hudson.remoting.Engine.run(Engine.java:469)Caused by: java.lang.ClassNotFoundException: jenkins.slaves.restarter.JnlpSlaveRestarterInstaller at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:171) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 4 more
      ```

        Attachments

          Activity

          Hide
          asafpelegcodes Asaf Peleg added a comment -

          We were originally seeing this a lot when we had memory issues with our cluster and the node that the jenkins master was running on kept getting restarted.

          We mitigated the master restarting by increasing its memory via the helm chart and this has seemed to help with restarts.  We also changed the strategy for PERFORMANCE OPTIMIZED which has helped as well.

          Show
          asafpelegcodes Asaf Peleg added a comment - We were originally seeing this a lot when we had memory issues with our cluster and the node that the jenkins master was running on kept getting restarted. We mitigated the master restarting by increasing its memory via the helm chart and this has seemed to help with restarts.  We also changed the strategy for PERFORMANCE OPTIMIZED which has helped as well.

            People

            • Assignee:
              csanchez Carlos Sanchez
              Reporter:
              asafpelegcodes Asaf Peleg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: