A deployment is hanging on a particular step, but when the CANCEL button is hit, the deployment continues in a CANCELLING… state for many hours afterwards.
As you can see from the log excerpt, the cancellation was requested 2 hours 40 minutes after the deployment task was started, but the overall duration was 17 hours.
Task ID: ServerTasks-941045 Related IDs: Deployments-151720, Channels-1730, Releases-21388, Tenants-2322, Projects-1703, Spaces-182, Environments-461 Task status: Canceled Task queued: Wednesday, 31 March 2021 3:46:32 PM +00:00 Task started: Wednesday, 31 March 2021 3:46:32 PM +00:00 Task duration: 17 hours Server version: 2020.6.4722+Branch.release-2020.6.Sha.49d1a1050c9bb43cce9b9e9741314b2bb3df3691 Server node: octopus-i009472-54c49b949b-nqjzl | == Canceled: Deploy Certificate Manager release 1.2.0 to PreProd for DG Test == 15:46:32 Verbose | Guided failure is not enabled for this task 18:26:39 Info | Requesting cancellation...
This doesn’t seem to be an Octopus issue, as it only started happening after a recent change (which will be reversed). There is nothing in the logs to indicate what issue may be.
Currently a deployment is hanging is on DynamicWorker 21-04-01-0701-242in, and work is unable to continue during this hang. Is it possible for you to stop the deployment or even kill the DynamicWorker?
Happy to share the full raw logs privately if they would be helpful.