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

Restart Safely option not working on windows install after update to 2.479.2

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • safe-restart
    • None

      After updating Jenkins from 2.479.1 to 2.479.2, I can no longer use the Restart Safely option.  Clicking the button throws the following line repeatedly:

      WARNING    h.s.HttpSessionContextIntegrationFilter2#hasInvalidSessionSeed: Encountered IllegalStateException trying to get a user. System init may not have completed yet. Invalidating user session.

      One is installed on Windows server 2016 and another on Windows server 2019.  The only way to get Jenkins back running is to log onto the windows server and restart the service.

          [JENKINS-74943] Restart Safely option not working on windows install after update to 2.479.2

          Basil Crow added a comment -

          Do you have the whole stack trace?

          Basil Crow added a comment - Do you have the whole stack trace?

          TR added a comment -

          2024-12-03 14:18:10.302+0000 [id=72]    INFO    hudson.lifecycle.Lifecycle#onStatusUpdate: Restart in 10 seconds
          2024-12-03 14:18:20.308+0000 [id=72]    INFO    hudson.lifecycle.Lifecycle#onStop: Stopping Jenkins as requested by <myuser@mydomain>
          2024-12-03 14:18:20.338+0000 [id=72]    INFO    hudson.lifecycle.Lifecycle#onStatusUpdate: Stopping Jenkins
          2024-12-03 14:18:20.353+0000 [id=72]    INFO    jenkins.model.Jenkins$16#onAttained: Started termination
          2024-12-03 14:18:20.383+0000 [id=72]    INFO    jenkins.model.Jenkins$16#onAttained: Completed termination
          2024-12-03 14:18:20.388+0000 [id=72]    INFO    jenkins.model.Jenkins#_cleanUpDisconnectComputers: Starting node disconnection
          2024-12-03 14:18:20.473+0000 [id=72]    INFO    jenkins.model.Jenkins#_cleanUpShutdownPluginManager: Stopping plugin manager
          2024-12-03 14:18:20.498+0000 [id=72]    INFO    jenkins.model.Jenkins#_cleanUpPersistQueue: Persisting build queue
          2024-12-03 14:18:20.578+0000 [id=72]    INFO    jenkins.model.Jenkins#_cleanUpAwaitDisconnects: Waiting for node disconnection completion
          2024-12-03 14:18:20.578+0000 [id=72]    INFO    hudson.lifecycle.Lifecycle#onStatusUpdate: Jenkins stopped
          2024-12-03 14:18:21.618+0000 [id=20]    WARNING    h.s.HttpSessionContextIntegrationFilter2#hasInvalidSessionSeed: Encountered IllegalStateException trying to get a user. System init may not have completed yet. Invalidating user session.
          2024-12-03 14:18:26.812+0000 [id=20]    WARNING    h.s.HttpSessionContextIntegrationFilter2#hasInvalidSessionSeed: Encountered IllegalStateException trying to get a user. System init may not have completed yet. Invalidating user session.
          2024-12-03 14:18:31.946+0000 [id=70]    WARNING    h.s.HttpSessionContextIntegrationFilter2#hasInvalidSessionSeed: Encountered IllegalStateException trying to get a user. System init may not have completed yet. Invalidating user session.

          TR added a comment - 2024-12-03 14:18:10.302+0000 [id=72]    INFO    hudson.lifecycle.Lifecycle#onStatusUpdate: Restart in 10 seconds 2024-12-03 14:18:20.308+0000 [id=72]    INFO    hudson.lifecycle.Lifecycle#onStop: Stopping Jenkins as requested by <myuser@mydomain> 2024-12-03 14:18:20.338+0000 [id=72]    INFO    hudson.lifecycle.Lifecycle#onStatusUpdate: Stopping Jenkins 2024-12-03 14:18:20.353+0000 [id=72]    INFO    jenkins.model.Jenkins$16#onAttained: Started termination 2024-12-03 14:18:20.383+0000 [id=72]    INFO    jenkins.model.Jenkins$16#onAttained: Completed termination 2024-12-03 14:18:20.388+0000 [id=72]    INFO    jenkins.model.Jenkins#_cleanUpDisconnectComputers: Starting node disconnection 2024-12-03 14:18:20.473+0000 [id=72]    INFO    jenkins.model.Jenkins#_cleanUpShutdownPluginManager: Stopping plugin manager 2024-12-03 14:18:20.498+0000 [id=72]    INFO    jenkins.model.Jenkins#_cleanUpPersistQueue: Persisting build queue 2024-12-03 14:18:20.578+0000 [id=72]    INFO    jenkins.model.Jenkins#_cleanUpAwaitDisconnects: Waiting for node disconnection completion 2024-12-03 14:18:20.578+0000 [id=72]    INFO    hudson.lifecycle.Lifecycle#onStatusUpdate: Jenkins stopped 2024-12-03 14:18:21.618+0000 [id=20]    WARNING    h.s.HttpSessionContextIntegrationFilter2#hasInvalidSessionSeed: Encountered IllegalStateException trying to get a user. System init may not have completed yet. Invalidating user session. 2024-12-03 14:18:26.812+0000 [id=20]    WARNING    h.s.HttpSessionContextIntegrationFilter2#hasInvalidSessionSeed: Encountered IllegalStateException trying to get a user. System init may not have completed yet. Invalidating user session. 2024-12-03 14:18:31.946+0000 [id=70]    WARNING    h.s.HttpSessionContextIntegrationFilter2#hasInvalidSessionSeed: Encountered IllegalStateException trying to get a user. System init may not have completed yet. Invalidating user session.

            Unassigned Unassigned
            TRjenkins TR
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: