Hi I am having a problem with one of our Octopus deployment jobs where by a phantom job seems to blocking the intial upload of the package to the remote server. The target server is a redhat linux machine…
The deployment hangs with the message -
Another deployment is currently uploading package [xxx-service] version 80 to [target-server]
Could anybody help me to troubleshot this issue? Where can I start looking to see why this is blocked? Is there any solution short of rebooting the octopus server (we have already rebooted the target linux box)?
Thanks for getting in touch! This message is displayed when the Octopus Server believes it is already uploading the same Package (ID and Version) to the same Deployment Target/Machine. It does this by attempting to acquire a named System.Threading.Semaphore, which is released when the running package upload has completed.
Some things to check with you:
Does the machine belong to more than one environment?
Is the machine targeted by more than one project?
Is the same package used by more than one project?
Is the same package used by more than one step in the same project?
I think I’ve found the cause of the issue. If a previous deployment is cancelled, the packages may still be downloading when the new deployment runs. This is apparent when the download takes a long time, or fails after some time and retries. See this issue for more details.
I want to be sure we are not dealing with two seperate issues, so could the above scenario have happened in your case (ie a cancelled deployment and then a hung deployment in succession)?
The situation we were in matches the below cause. We had server space issue due to Octopus retention policy (which is now changed), because of which couple of jobs failed and then we had to cancel a couple of jobs as it was waiting indefinitely. It will be good if you can fix this issue.
I can confirm that a deploy was cancelled. The machine running the tentacle was having some hardware issues (BSOD) that caused the original deploy to fail.
Restarting the Octopus server was required. Neither restarting the tentacle host nor restarting the tentacle service (multiple times) was enough.