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

unable to restart jenkins and load testng-plugin

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • testng-plugin
    • None

      I installed testng-plugin and restarted the tomcat but testng-plugin is still on showing up in "Add build step" drop down list.

      When I upload testng-plugin.hpi, it says I need to start restart jenkins, which its is not allowing

      A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened.

      Stack trace

      javax.servlet.ServletException: hudson.lifecycle.RestartNotSupportedException: Default Windows lifecycle does not support restart.
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:123)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:114)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)

          [JENKINS-27414] unable to restart jenkins and load testng-plugin

          Version is 1.602 the latest one

          Prateek Bagrecha added a comment - Version is 1.602 the latest one

          Daniel Beck added a comment -

          How are you attempting to restart Jenkins?

          To explain, you are running Jenkins on Windows not as a service, so restart is not supported. However, you shouldn't be shown any link or button to restart. If that's the case, that's a bug. However if you manually navigate to /restart, /safeRestart, then this isn't actually an issue. You just need to stop Jenkins and start it again.

          Daniel Beck added a comment - How are you attempting to restart Jenkins? To explain, you are running Jenkins on Windows not as a service, so restart is not supported. However, you shouldn't be shown any link or button to restart. If that's the case, that's a bug. However if you manually navigate to /restart, /safeRestart, then this isn't actually an issue. You just need to stop Jenkins and start it again.

          how do I stop Jenkins & start it again ?

          1. I tried using tomcat manage apps, it did not work.
          2. I tried restarting tomcat itself, it did not work.

          Any other option ?

          Prateek Bagrecha added a comment - how do I stop Jenkins & start it again ? 1. I tried using tomcat manage apps, it did not work. 2. I tried restarting tomcat itself, it did not work. Any other option ?

          Daniel Beck added a comment - - edited

          I tried restarting tomcat itself, it did not work.

          If Jenkins is hosted in Tomcat, that should work. Make sure it's not running standalone.

          Also, please answer the above question. What did you do to get the RestartNotSupportedException?

          Daniel Beck added a comment - - edited I tried restarting tomcat itself, it did not work. If Jenkins is hosted in Tomcat, that should work. Make sure it's not running standalone. Also, please answer the above question. What did you do to get the RestartNotSupportedException?

          I used /restart and /safeRestart with in the URL, thats when I got notsupported exception.

          Prateek Bagrecha added a comment - I used /restart and /safeRestart with in the URL, thats when I got notsupported exception.

          Daniel Beck added a comment -

          There is no bug here. Figure out how Jenkins needs to be restarted on your system and do it that way. Jenkins cannot restart itself, as the error message indicates.

          Daniel Beck added a comment - There is no bug here. Figure out how Jenkins needs to be restarted on your system and do it that way. Jenkins cannot restart itself, as the error message indicates.

          Code changed in jenkins
          User: Daniel Beck
          Path:
          core/src/main/resources/jenkins/model/Jenkins/_restart.jelly
          core/src/main/resources/jenkins/model/Jenkins/_safeRestart.jelly
          http://jenkins-ci.org/commit/jenkins/12e55e4645ee9703cbaba115694c3ea79b762669
          Log:
          JENKINS-27414 Don't offer to restart if unsupported

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/resources/jenkins/model/Jenkins/_restart.jelly core/src/main/resources/jenkins/model/Jenkins/_safeRestart.jelly http://jenkins-ci.org/commit/jenkins/12e55e4645ee9703cbaba115694c3ea79b762669 Log: JENKINS-27414 Don't offer to restart if unsupported

          Code changed in jenkins
          User: Daniel Beck
          Path:
          core/src/main/resources/jenkins/model/Jenkins/_restart.jelly
          core/src/main/resources/jenkins/model/Jenkins/_safeRestart.jelly
          http://jenkins-ci.org/commit/jenkins/c294ed8e93eda32cd3676dbb9bcff891adbcccdb
          Log:
          Merge pull request #1604 from daniel-beck/JENKINS-27414

          JENKINS-27414 Don't offer to restart if unsupported

          Compare: https://github.com/jenkinsci/jenkins/compare/8907bb8a3443...c294ed8e93ed

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/resources/jenkins/model/Jenkins/_restart.jelly core/src/main/resources/jenkins/model/Jenkins/_safeRestart.jelly http://jenkins-ci.org/commit/jenkins/c294ed8e93eda32cd3676dbb9bcff891adbcccdb Log: Merge pull request #1604 from daniel-beck/ JENKINS-27414 JENKINS-27414 Don't offer to restart if unsupported Compare: https://github.com/jenkinsci/jenkins/compare/8907bb8a3443...c294ed8e93ed

          Daniel Beck added a comment -

          Cosmetic change in Jenkins 1.608 so it tells you that it cannot restart itself.

          Daniel Beck added a comment - Cosmetic change in Jenkins 1.608 so it tells you that it cannot restart itself.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #4065

          Result = SUCCESS

          dogfood added a comment - Integrated in jenkins_main_trunk #4065 Result = SUCCESS

            nullin Nalin Makar
            prateek_bagrecha Prateek Bagrecha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: