Our deployments periodically stall on a random server (not the same one ever), with the Powershell script spawned for the step running on that server never finishing. We did a memory dump of one of the Powershell scripts and found that it was erroring with an “Unable to load amsi.dll: the specified module could not be found. (Exception from HRESULT: 0x8007007E)” error. Stopping and restarting the Tentacle and re-running the step allows it to continue, so the DLL isn’t actually missing. This isn’t ideal of course. Has anyone at Octopus Deploy seen this issue before?
We’re on version 2019.3.3 LTS. The Tentacles are running on Windows 2012 R2, and the Powershell is 5.1.14409.1018 (it’s mixed, however, but always 5.1 as our deployment process requires it).