Issue
Pipeline appears as running. One or more stages have started and completed but the pipeline gets stuck at another stage which shows Not run yet.... Tried restarting the exit gate task of the completed stage but the problem persists.
Additional evidence
In the commander.log, you can see the error Invalid session in message similar to the one below:
2019-11-07T10:15:06.168 | coreserver-1 | WARN | messageTrigger | 16288713 | | messageTrigger new message#c2ddd555-0179-11ea-aabb-0050569cf667 | MessageServiceImpl | Invalid session in message[id=c2ddd555-0179-11ea-aabb-0050569cf667,method=runFlowStateTask,sessionId=c2cce564-0179-11ea-aabb-0050569cf667,entityReference=flowRuntime[id=f3fbf364-e90e-11e9-b3b7-0050569cd556],nodeAddress=349273bf-da35-212d-0abc-e0a169446d79,autoComplete,processed]
Solution
If you are running CloudBees Flow 9.2 or older, there is a bug which has been addressed in CloudBees CD 10.0.1. Please upgrade CD to a newer version to resolve the issue.
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.