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

Jenkins cannot restart Windows service

    Details

    • Similar Issues:

      Description

      I want to restart my Jenkins through one of the following Options:

      If i do so, my Jenkins won't restart. I see endlessly the following message: Jenkins is beeing restarted. Please wait (in German Jenkins wird neu gestartet. Bitte warten).

      I checked all three logs, but only thing I see is:

      2017-02-13 10:33:42 - Starting D:\Tools\Jenkins\jre\bin\java -Xrs -Xmx2048m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "D:\Tools\Jenkins\jenkins.war" --httpPort=8080 --webroot="D:\Tools\Jenkins\war"
      2017-02-13 10:33:42 - Started 4908
      
      
      Running from: D:\Tools\Jenkins\jenkins.war
      Jenkins home directory: D:\Tools\Jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
      
      SCHWERWIEGEND: Restarting VM as requested by <username>
      • We run on a Windows 2012 R2. Jenkins is installed as a service
      • I saw already JENKINS-25208 and JENKINS-22685
      • We use latest available stable release.
      • We have some plugins (latest Versions)
      • I tried to restart without any Plugin, but got same error (no error ).
      • Our Plugins:
        • ace-editor
        • active-directory
        • ant
        • antisamy-markup-formatter
        • bouncycastle-api
        • branch-api
        • build-monitor-plugin
        • build-timeout
        • cloudbees-folder
        • credentials
        • credentials-binding
        • cvs
        • display-url-api
        • durable-task
        • email-ext
        • extended-choice-parameter
        • external-monitor-job
        • git
        • git-client
        • github
        • github-api
        • github-branch-source
        • github-organization-folder
        • git-server
        • gradle
        • handlebars
        • icon-shim
        • javadoc
        • jobConfigHistory
        • jquery
        • jquery-detached
        • junit
        • ldap
        • ldapemail
        • mailer
        • mapdb-api
        • matrix-auth
        • matrix-project
        • maven-plugin
        • momentjs
        • monitoring
        • pam-auth
        • pipeline-build-step
        • pipeline-graph-analysis
        • pipeline-input-step
        • pipeline-milestone-step
        • pipeline-rest-api
        • pipeline-stage-step
        • pipeline-stage-view
        • plain-credentials
        • publish-over-ssh
        • resource-disposer
        • role-strategy
        • scm-api
        • script-security
        • ssh-credentials
        • ssh-slaves
        • structs
        • subversion
        • svnpublisher
        • timestamper
        • token-macro
        • windows-slaves
        • workflow-aggregator
        • workflow-api
        • workflow-basic-steps
        • workflow-cps
        • workflow-cps-global-lib
        • workflow-durable-task-step
        • workflow-job
        • workflow-multibranch
        • workflow-scm-step
        • workflow-step-api
        • workflow-support
        • ws-cleanup\

      Workaround:
      I always can restart Jenkins using Windows Service Manager without Problem.

        Attachments

          Activity

          Hide
          claus Claus Wittmann added a comment -

          In Installing Jenkins as a Windows service there is a hint:

          For W2K8 R2 users you may need to add C:\Windows\SysWOW64 to the PATH env var.

          We use W2K12 R2 and I got no error like this...

          Show
          claus Claus Wittmann added a comment - In Installing Jenkins as a Windows service there is a hint: For W2K8 R2 users you may need to add C:\Windows\SysWOW64 to the PATH env var. We use W2K12 R2 and I got no error like this...
          Hide
          danielbeck Daniel Beck added a comment -

          Oleg Nenashev Does this look familiar? Outdated winsw perhaps?

          Claus Wittmann What's the modification date / MD5 checksum of jenkins.exe in JENKINS_HOME?

          Show
          danielbeck Daniel Beck added a comment - Oleg Nenashev Does this look familiar? Outdated winsw perhaps? Claus Wittmann What's the modification date / MD5 checksum of jenkins.exe in JENKINS_HOME?
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          WinSW update to 2.0.2 is the first step. WinSW is jenkins-slave.exe in this case

          Show
          oleg_nenashev Oleg Nenashev added a comment - WinSW update to 2.0.2 is the first step. WinSW is jenkins-slave.exe in this case
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Claus Wittmann any updates? The issue needs to be reproduced in Jenkins 2.50+, which embeds the new Windows Service Wrapper

          Show
          oleg_nenashev Oleg Nenashev added a comment - Claus Wittmann any updates? The issue needs to be reproduced in Jenkins 2.50+, which embeds the new Windows Service Wrapper
          Hide
          danielbeck Daniel Beck added a comment -

          No response from reporter in three weeks.

          Show
          danielbeck Daniel Beck added a comment - No response from reporter in three weeks.

            People

            • Assignee:
              Unassigned
              Reporter:
              claus Claus Wittmann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: