-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
1.365
I agreed to update to 1.366, and when the download was finished, selected Restart When No Jobs Are Running. Then Hudson hanged loading the next page, and would not respond again. A thread dump from the server shows that every HTTP request is blocked:
"Handling GET /hudson/api/json : RequestHandlerThread[#32]" daemon prio=10 tid=0x8034d000 nid=0x990 waiting for monitor entry [0xfa5fe000..0xfa5ff4d4] java.lang.Thread.State: BLOCKED (on object monitor) at hudson.model.Hudson.getView(Hudson.java:1256) - waiting to lock <0x5ca22cf8> (a hudson.model.Hudson) at hudson.model.Hudson.getPrimaryView(Hudson.java:1625) at sun.reflect.GeneratedMethodAccessor336.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.export.MethodProperty.getValue(MethodProperty.java:43) at org.kohsuke.stapler.export.Property.writeTo(Property.java:83) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156) at org.kohsuke.stapler.export.Model.writeTo(Model.java:129) at org.kohsuke.stapler.export.Model.writeTo(Model.java:148) at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:161) at hudson.model.Api.doJson(Api.java:182) ....
while the Hudson singleton is locked by doQuietDown:
"safe-restart thread" daemon prio=10 tid=0x83500800 nid=0x65a waiting on condition [0xf73ff000..0xf73ff5d4] java.lang.Thread.State: TIMED_WAITING (sleeping) at java.lang.Thread.sleep(Native Method) at hudson.model.Hudson.doQuietDown(Hudson.java:2495) - locked <0x5ca22cf8> (a hudson.model.Hudson) at hudson.model.Hudson$17.run(Hudson.java:2969)
- duplicates
-
JENKINS-6649 safeRestart waits forever and does not restart Hudson
- Closed