java.io.IOException: Restarting a service [Jenkins] $ "C:\Program Files (x86)\Jenkins\jenkins.exe" restart

Jenkins JIRA | JCK | 3 years ago
  1. 0

    When running as a Windows service, Jenkins is unable to restart itself after installing/upgrading plugins or running /restart. The tail of jenkins.err.log reads: """ WARNING: Failed to restart Hudson java.io.IOException: Restarting a service [Jenkins] $ "C:\Program Files (x86)\Jenkins\jenkins.exe" restart at hudson.lifecycle.WindowsServiceLifecycle.restart(WindowsServiceLifecycle.java:135) at jenkins.model.Jenkins$23.run(Jenkins.java:3288) """ Additionally, jenkins.wrapper.log shows the following error: """ 2014-04-16 16:54:57 - Starting C:\Program Files (x86)\Jenkins\jre\bin\java -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files (x86)\Jenkins\jenkins.war" --httpPort=8080 2014-04-16 16:54:57 - Started 1796 2014-04-17 18:14:19 - Stopping jenkins 2014-04-17 18:14:19 - ProcessKill 1796 2014-04-17 18:14:19 - Send SIGINT 1796 2014-04-17 18:14:19 - SIGINT to1796 successful 2014-04-17 18:14:19 - Send SIGINT 1796 2014-04-17 18:14:19 - SIGINT to 1796 failed - Killing as fallback 2014-04-17 18:14:19 - Finished jenkins """ On previous versions of Jenkins, none of the lines with "SIGINT" are present, and restart works as expected. Seeing this issue on two different Windows machines. Can be tested with a stock installation of jenkins-1.559.msi. After Jenkins is installed, go to localhost:8080/restart and restart. The Jenkins service will stop but not restart, and the above error can be seen in the err log. Went back and tested 1.549, 1.554, 1.557 and 1.558. None of these exhibited this problem. Reinstalled 1.559, and saw the problem immediately. Work-around is to run Windows Services manager and manually restart Jenkins service.

    Jenkins JIRA | 3 years ago | JCK
    java.io.IOException: Restarting a service [Jenkins] $ "C:\Program Files (x86)\Jenkins\jenkins.exe" restart
  2. 0

    When running as a Windows service, Jenkins is unable to restart itself after installing/upgrading plugins or running /restart. The tail of jenkins.err.log reads: """ WARNING: Failed to restart Hudson java.io.IOException: Restarting a service [Jenkins] $ "C:\Program Files (x86)\Jenkins\jenkins.exe" restart at hudson.lifecycle.WindowsServiceLifecycle.restart(WindowsServiceLifecycle.java:135) at jenkins.model.Jenkins$23.run(Jenkins.java:3288) """ Additionally, jenkins.wrapper.log shows the following error: """ 2014-04-16 16:54:57 - Starting C:\Program Files (x86)\Jenkins\jre\bin\java -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files (x86)\Jenkins\jenkins.war" --httpPort=8080 2014-04-16 16:54:57 - Started 1796 2014-04-17 18:14:19 - Stopping jenkins 2014-04-17 18:14:19 - ProcessKill 1796 2014-04-17 18:14:19 - Send SIGINT 1796 2014-04-17 18:14:19 - SIGINT to1796 successful 2014-04-17 18:14:19 - Send SIGINT 1796 2014-04-17 18:14:19 - SIGINT to 1796 failed - Killing as fallback 2014-04-17 18:14:19 - Finished jenkins """ On previous versions of Jenkins, none of the lines with "SIGINT" are present, and restart works as expected. Seeing this issue on two different Windows machines. Can be tested with a stock installation of jenkins-1.559.msi. After Jenkins is installed, go to localhost:8080/restart and restart. The Jenkins service will stop but not restart, and the above error can be seen in the err log. Went back and tested 1.549, 1.554, 1.557 and 1.558. None of these exhibited this problem. Reinstalled 1.559, and saw the problem immediately. Work-around is to run Windows Services manager and manually restart Jenkins service.

    Jenkins JIRA | 3 years ago | JCK
    java.io.IOException: Restarting a service [Jenkins] $ "C:\Program Files (x86)\Jenkins\jenkins.exe" restart
  3. 0

    Restart of Jenkins is broken since version 1.14

    GitHub | 2 years ago | BernhardBerbuir
    java.io.IOException: Restarting a service [Jenkins] $ "C:\Program Files\Jenkins\jenkins.exe" restart ```
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] (JENKINS-37332) java.io.IOException: Failed to rename during Plugin Update

    Google Groups | 4 months ago | jenki...@naeveke.de (JIRA)
    java.io.IOException: Failed to rename C:\Program Files (x86)\Jenkins\plugins\windows-slaves.jpi.tmp to C:\Program Files (x86)\Jenkins\plugins\windows-slaves.jpi
  6. 0

    [JIRA] (JENKINS-37332) java.io.IOException: Failed to rename during Plugin Update

    Google Groups | 4 months ago | jenki...@naeveke.de (JIRA)
    java.io.IOException: Failed to rename C:\Program Files (x86)\Jenkins\plugins\windows-slaves.jpi.tmp to C:\Program Files (x86)\Jenkins\plugins\windows-slaves.jpi

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Restarting a service [Jenkins] $ "C:\Program Files (x86)\Jenkins\jenkins.exe" restart

      at hudson.lifecycle.WindowsServiceLifecycle.restart()
    2. Hudson
      WindowsServiceLifecycle.restart
      1. hudson.lifecycle.WindowsServiceLifecycle.restart(WindowsServiceLifecycle.java:135)
      1 frame
    3. jenkins.model
      Jenkins$23.run
      1. jenkins.model.Jenkins$23.run(Jenkins.java:3288)
      1 frame