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

Add restart support for OS X - RestartNotSupportedException

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • OS X

      Currently it is not possible to restart Hudson on OS X.
      In my case hudson is running using `java -jar` but I suspect that the message does not indicate to use other methods for running.

      Also, as long the restart is working on Linux, I don't see many reasons for not supporting it on OS X.

      Status Code: 500

      Exception:
      Stacktrace:
      hudson.lifecycle.RestartNotSupportedException: Restart is not supported on Mac OS X
      at hudson.lifecycle.UnixLifecycle.verifyRestartable(UnixLifecycle.java:90)
      at hudson.model.Hudson.safeRestart(Hudson.java:2975)
      at hudson.model.Hudson.doSafeRestart(Hudson.java:2935)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:259)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:450)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:132)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Thread.java:637)

      Generated by Winstone Servlet Engine v0.9.10 at Wed Sep 22 08:19:57 UTC 2010

          [JENKINS-7537] Add restart support for OS X - RestartNotSupportedException

          evernat added a comment -

          As said in Jenkins-4012, Jenkins can't restart itself on MacOS X.
          Since Hudson 1.318, the "restart" button is not supposed to be displayed with MacOS X.
          Do you use a Hudson version > 1.318 and is the button displayed? or have you called an URL directly?

          evernat added a comment - As said in Jenkins-4012, Jenkins can't restart itself on MacOS X. Since Hudson 1.318, the "restart" button is not supposed to be displayed with MacOS X. Do you use a Hudson version > 1.318 and is the button displayed? or have you called an URL directly?

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/Platform.java
          core/src/main/java/hudson/lifecycle/UnixLifecycle.java
          core/src/main/java/hudson/model/Hudson.java
          http://jenkins-ci.org/commit/jenkins/6065a957bce84773cc113f710156e36de4c12e31
          Log:
          [FIXED JENKINS-7537] reports indicate that exec(2) from multi-threaded app now works on Snow Leopard. Also see JENKINS-4012

          Compare: https://github.com/jenkinsci/jenkins/compare/a6cb95d...6065a95

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/Platform.java core/src/main/java/hudson/lifecycle/UnixLifecycle.java core/src/main/java/hudson/model/Hudson.java http://jenkins-ci.org/commit/jenkins/6065a957bce84773cc113f710156e36de4c12e31 Log: [FIXED JENKINS-7537] reports indicate that exec(2) from multi-threaded app now works on Snow Leopard. Also see JENKINS-4012 Compare: https://github.com/jenkinsci/jenkins/compare/a6cb95d...6065a95

          dogfood added a comment -

          Integrated in jenkins_main_trunk #687
          [FIXED JENKINS-7537] reports indicate that exec(2) from multi-threaded app now works on Snow Leopard. Also see JENKINS-4012

          Kohsuke Kawaguchi : 6065a957bce84773cc113f710156e36de4c12e31
          Files :

          • core/src/main/java/hudson/Platform.java
          • changelog.html
          • core/src/main/java/hudson/model/Hudson.java
          • core/src/main/java/hudson/lifecycle/UnixLifecycle.java

          dogfood added a comment - Integrated in jenkins_main_trunk #687 [FIXED JENKINS-7537] reports indicate that exec(2) from multi-threaded app now works on Snow Leopard. Also see JENKINS-4012 Kohsuke Kawaguchi : 6065a957bce84773cc113f710156e36de4c12e31 Files : core/src/main/java/hudson/Platform.java changelog.html core/src/main/java/hudson/model/Hudson.java core/src/main/java/hudson/lifecycle/UnixLifecycle.java

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/Platform.java
          core/src/main/java/hudson/lifecycle/UnixLifecycle.java
          core/src/main/java/hudson/model/Hudson.java
          http://jenkins-ci.org/commit/jenkins/6065a957bce84773cc113f710156e36de4c12e31
          Log:
          [FIXED JENKINS-7537] reports indicate that exec(2) from multi-threaded app now works on Snow Leopard. Also see JENKINS-4012

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/Platform.java core/src/main/java/hudson/lifecycle/UnixLifecycle.java core/src/main/java/hudson/model/Hudson.java http://jenkins-ci.org/commit/jenkins/6065a957bce84773cc113f710156e36de4c12e31 Log: [FIXED JENKINS-7537] reports indicate that exec(2) from multi-threaded app now works on Snow Leopard. Also see JENKINS-4012

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/Platform.java
          core/src/main/java/hudson/lifecycle/UnixLifecycle.java
          core/src/main/java/hudson/model/Hudson.java
          http://jenkins-ci.org/commit/jenkins/6065a957bce84773cc113f710156e36de4c12e31
          Log:
          [FIXED JENKINS-7537] reports indicate that exec(2) from multi-threaded app now works on Snow Leopard. Also see JENKINS-4012

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/Platform.java core/src/main/java/hudson/lifecycle/UnixLifecycle.java core/src/main/java/hudson/model/Hudson.java http://jenkins-ci.org/commit/jenkins/6065a957bce84773cc113f710156e36de4c12e31 Log: [FIXED JENKINS-7537] reports indicate that exec(2) from multi-threaded app now works on Snow Leopard. Also see JENKINS-4012

            kohsuke Kohsuke Kawaguchi
            ssbarnea Sorin Sbarnea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: