When deploying a service that does not already exist on the target host, I get this error -
[SC] CreateService SUCCESS
Start-Service : Service ‘SPIN.AMS (SPIN.AMS)’ cannot be started due to the
following error: Cannot start service SPIN.AMS on computer ‘.’.
At C:\Program Files\Octopus Deploy\Tentacle\Scripts\Octopus.Features.WindowsSer
- Start-Service $ServiceName
- CategoryInfo : OpenError: (System.ServiceProcess.ServiceControl
ler:ServiceController) [Start-Service], ServiceCommandException
- FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Comman
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?
Octopus Deploy - 184.108.40.2064
Target host - Windows Server 2012