Goal
This article explains how to collect context-sensitive and time-sensitive diagnostic information when Deployments are stuck in the Executing state.
Prerequisites
When Deployments get stuck, the best time to gather logs about it is while it's stuck in this state; once the host is restarted, the opportunity to perform a process dump will pass. To lessen the impact of this event, make sure to go through the following:
- You'll need access to the host Tentacle is installed on and the Octopus Server instance in order to generate a Diagnostic Package.
- Make sure you have the ability to collect logs on the host impacted, as you'll need copies of various logs, and will need to perform to collect other logs
Steps
- Make sure you've collected the System Diagnostic Package. If the Tentacle logs aren't showing up in the diagnostic log, please gather them as well while the issue occurs.
- Gathering a Process Dump on the host that's experiencing the issue is also helpful; this should be done while the issue is occurring, otherwise it will not have the relevant information included.
- A Process JSON of the Deployment that's getting stuck, if it's the same one each time.
- Once that data collection is completed, you should be able to clear the issue by doing the following; if the first step doesn't clear it, proceed with the next:
- Restart the Tentacle Service on the Host.
- Restart the Host.
- Restart the Octopus Server if you're running Octopus Server self-hosted.
Verify
While the steps above will gather the proper information, if you followed the instructions fully, you should have the following:
- A Process Dump with the relevant context, in this case, while the Deployments are stuck.
- A System Diagnostic Package with the Tentacle logs.
- The Process JSON of the Deployment Process getting stuck in a Stuck state.