Hello,
When deploying a service that does not already exist on the target host, I get this error -
============================
[SC] CreateService SUCCESS
Error 12:13:59
Start-Service : Service ‘SPIN.AMS (SPIN.AMS)’ cannot be started due to the
Error 12:13:59
following error: Cannot start service SPIN.AMS on computer ‘.’.
Error 12:13:59
At C:\Program Files\Octopus Deploy\Tentacle\Scripts\Octopus.Features.WindowsSer
Error 12:13:59
vice_BeforePostDeploy.ps1:138 char:2
Error 12:13:59
- Start-Service $ServiceName
Error 12:13:59 -
Error 12:13:59
- CategoryInfo : OpenError: (System.ServiceProcess.ServiceControl
Error 12:13:59
ler:ServiceController) [Start-Service], ServiceCommandException
Error 12:13:59 - FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Comman
Error 12:13:59
ds.StartServiceCommand
===========================
If I logon to the host and try to manualy start the service, I get an “Access is denied” error and the service wont start.
If I manually delete and re-create the service with SC at the command line, the service then starts up ok.
Ive tried this on two different serves witht the same result.
So, this appears to be an issue with the permission granted to octopus when running the SC util?
Any ideas on how to resolve this?
Details:
Octopus Deploy - 2.5.11.614
Target host - Windows Server 2012
Thanks