It’s hard to say, but Tentacle does queue tasks on the machine so that only one deployment is run at once. Perhaps there were other deployments or tasks being run on the remote machine at the time?
I have a similar problem, although that big delays only happened when there was another deployment running on the same machine.
In my case, when I test the deployment by running Tentacle.exe locally from command line, it executes all the steps quickly. We have several packages, and each package does include pre-deploy, deploy and post-deploy scripts. Every time a new script is being started, Octopus visibly pauses for some time - like 30-60 seconds. (I did not measure this exactly). In the beginning I did not care much, as it eventually did do the work, but it is now killing the impact of my demoes: people simply get bored when they have to wait that long for the result. I have been requested by my manager to find out what is causing these delays, and how to correct the situation.
Can you suggest what could I do to find out why the tentacle is pausing? Can I produce some kind of trace that will reveal what it is doing during these delay times? It’s most likely some environment/configuration issue, but I need to find out what needs to be corrected.
Tentacle in Octopus 1.x uses the Windows Event Log - running eventvwr.exe may help. The Windows system logs from the same time period might reveal some more info.
I am experiencing same issue with this version of Octopus.
The event viewer does not show any issues. The traces from PowerShell event log only show normal powershell engine startup, but the actual script starts executing 30 to 60 seconds later.
Does powershell attempt to access internet (eg. to lookup CRLs published by Microsoft? just guessing…) when run by Octopus?
Interesting observation about PS startup, thanks for sharing that.
I don’t think CRLs get involved at this point, but user profile loading does - is it possible the Tentacle user’s profile is taking an extended time for PS to load? Probably a few other items in this category - thanks again for the data point.
I understand it isn’t always possible, but the logging improvements in Octopus 2 are huge - if you’re able to consider upgrading I’d recommend it.