We recently upgraded to v2018.4.10. We also upgraded all tentacles during this process. When deploying to one of our servers, we are receiving the following error:
stop-webitem : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Error
At C:\Octopus\Applications\Production -
Error
Blue\GreenPath.ClientPortal.WebAPI\1.0.18253+01_3\Octopus.Action.CustomScripts.PreDeploy.ps1:6 char:5
Error
-
Stop-WebAppPool -Name $appPoolName
Error
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error
+ CategoryInfo : InvalidData: (IIS:\apppools\ClientPortalv2Api:String) [Stop-WebItem], UnauthorizedAccess
Error
Exception
Error
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.IIs.PowerShell.Provider.StopItemCommand
This is using the standard IIS deploy step. The user the tentacle is running under has full admin privileges to the machine. This user is running as the tentacle on other machines in our environment and we have been able to deploy without issue. We have also tried re-installing the tentacle.
Is there anything else we can try? Thanks in advance for any help you can provide.