While trying to switch to Active Directory authentication I get an error (see below) while following the instructions.
The service does not stop and when I use the start command the service does not start. If I use the Octopus Manager, starting and stopping does work perfectly.
I looked in the logfile and I do not find any line showing an attempt to stop (or start). Even with the trace option enabled.
When the service stop instruction did not work I stopped trying the configure and admin commands.
Do I need to add some directories to the %path% ? Or do I miss some other environment setting ?
What to check next?
C:\Program Files\Octopus Deploy\Octopus>Octopus.Server.exe service --stop
Octopus Deploy: Server version 2.4.5.46
Stopping service...
-------------------------------------------------------------------------------
Error: Kan de service OctopusDeploy op de computer . niet openen.
-------------------------------------------------------------------------------
Full error details are available in the log files.
See: http://g.octopushq.com/LogFiles
C:\Program Files\Octopus Deploy\Octopus>
translation of the Dutch Error: Cannot open the service OctopusDeploy on computer .
Thanks for getting in touch! Are you using a custom instance name, or just the (Default) instance? You can check this by looking in the top right corner of the window in Octopus Manager.
If you are using a custom instance name, you’ll need to specify that using:
Thanks Giel, are there any errors in the Windows event viewer? And when you run the command, are you running it from an elevated (administrator) command prompt?
I am getting a similar error. Our custom instance name is “OctopusDeploy” so
C:\Program Files\Octopus Deploy\Octopus>Octopus.Server.exe service --stop --ins
tance “OctopusDeploy” works fine but as soon as I run the following command to change authentication it fails.
It’s version 3. Output is below: I am trying to change authentication mode from forms authentication to integrated mode so AD users don’t have to provide credentials based on article in:
C:\Program Files\Octopus Deploy\Octopus>Octopus.Server.exe configure --webAuthen
ticationScheme=IntegratedWindowsAuthentication
Octopus Deploy: Server version 3.0.3.2084
Error: Unrecognized command line arguments: --webAuthenticationScheme=Integrated
WindowsAuthentication
Full error details are available in the log files.
At: C:\Users\hotit\AppData\Local\Octopus\Logs
Unrecognized command line arguments: --webAuthenticationScheme=IntegratedWindows
Authentication