Another deployment-related activity is in progress on this machine

Another deployment-related activity is in progress on this machine (Running script ‘# This code is for t…’); the request has been added to a queue.

My server seems to be stuck in this state for a host. How can I reset that? It seems we had to cancel some deploys and now we consistently get this message and the deploy results in a deadlock, with no further progress. This is even after restarting the service, so I’m assuming there is a value in a database that isn’t being cleared. The Diagnostics page shows there is a task running, but there is nothing running from those tasks.

Hi Rick,

Thanks for getting in touch! Very rarely we get ghost processes.
To reset them on your tentacle please do the following:

cd \Program Files\Octopus Deploy\Tentacle
tentacle.exe service --stop
tentacle.exe reset-activities
tentacle.exe service --start

Please let me know how that goes!
Vanessa

Hello, Vanessa. Before I got your response I’d already restarted the related tentacles but didn’t know about the reset-activities command. The issue cleared up several minutes later on it’s own. I’ll create a script in OD so I can run this on any host.

Thanks for the information.