timja / jenkins-gh-issues-poc-06-20

0 stars 0 forks source link

[JENKINS-5090] Hudson restarts but the windows service doesn't #375

Closed timja closed 13 years ago

timja commented 14 years ago

I have installed hudson as a windows service.
When I restart hudson either using "/safeRestart" or after installing a plugin using the button in the GUI, Hudson restarts correctly but the windows service is stopped and never restarted.
After restart

2009-12-15 09.43.40 - Starting java -Xrs -Xmx1024m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -Dhudson.scheduledRetention=true -jar "C:\DeveloperTools\Hudson\hudson.war" --httpPort=8080
2009-12-15 09.43.40 - Started 3856
2009-12-15 09.51.14 - Stopping hudson
2009-12-15 09.51.14 - ProcessKill 3856
2009-12-15 09.51.14 - Finished hudson
2009-12-15 09.51.15 - Starting java -Xrs -Xmx1024m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -Dhudson.scheduledRetention=true -jar "C:\DeveloperTools\Hudson\hudson.war" --httpPort=8080
2009-12-15 09.51.15 - Started 2772


Originally reported by mambu, imported from: Hudson restarts but the windows service doesn't
  • assignee: kohsuke
  • status: Resolved
  • priority: Minor
  • resolution: Fixed
  • resolved: 2010-12-28T13:27:34+00:00
  • imported: 2022-06-20
timja commented 14 years ago

mambu:

I have restarted again hudson (1.339 now) using the button provided in the GUI after upgrading a plugin. Now I find that problem #2 is quite blocking: hudson is running but not logging in any file (the last message is just before restarting) even if it is logging in the GUI (http://hudson:8080/log/all). In this way there is no possibility to control and monitor the hudson server.
Can anybody please have a look on this?

timja commented 14 years ago

mambu:

I have tried again after upgrade to 1.341 to use /safeRestart after a plugin installation and It seems that this problem is not more present. After restart hudson.exe process remains active, the service status is "started", only one java.exe instance is running and the log is correctly written to files.

timja commented 13 years ago

kohsuke:

Fixed toward 1.392 in 081235acff1a791126bec3d395e9f3a38a53240e

timja commented 13 years ago

scm_issue_link:

Code changed in hudson
User: Kohsuke Kawaguchi
Path:
changelog.html
core/pom.xml
http://hudson-labs.org/commit/core/081235acff1a791126bec3d395e9f3a38a53240e
Log:
[FIXED JENKINS-5090] Hudson installed as Windows service wasn't restarting properly

timja commented 2 years ago

[Duplicates: JENKINS-4969]

timja commented 2 years ago

[Duplicates: JENKINS-7110]

timja commented 2 years ago

[Originally related to: JENKINS-2989]