Hi! Thanks for creating Octopus - it’s a big help to us here.
We recently upgraded our Octopus server to 2.6.0 from 2.5.12 and now our Windows Service deployments are failing with the error:
sc.exe config failed with exit code: 1639
At C:\Octopus\Applications.SQ-AUDEVEL2VM12-5A9F83CB\Octopus.Tentacle\2.6.0.751\Scripts\Octopus.Features.WindowsService_BeforePostDeploy.ps1:112 char:3
We’ve tracked the problem down to line 83 of Octopus.Features.WindowsService_BeforePostDeploy.ps1. It is:
$fullArguments = @(“password=”, $customAccountPassword)
but should be:
$fullArguments += @(“password=”, $customAccountPassword)
This line only triggers when I have a custom account password defined for my windows services (which I do!). I’ve manually changed the file and now the windows service deployments are again working.
Thanks in advance!
Jason.