We cannot log into our Octopus server since this morning. When we tried to restart the Octopus service, we received this error:
Any advice on why this happens?
Thanks,
Ge
Error: Cannot start service OctopusDeploy on computer ‘.’.
Full error details are available in the log files.
At: C:\Users\bai\AppData\Local\Octopus\Logs
Cannot start service OctopusDeploy on computer ‘.’.
System.InvalidOperationException: Cannot start service OctopusDeploy on computer ‘.’. —> System.ComponentModel.Win32Exception: The service did not start due to a logon failure
— End of inner exception stack trace —
at System.ServiceProcess.ServiceController.Start(String[] args)
at Octopus.Shared.Startup.ConfigureServiceHelper.ConfigureService() in Y:\Work\refs\tags\3.3.20\source\Octopus.Shared\Startup\ConfigureServiceHelper.cs:line 163
at Octopus.Shared.Startup.ServiceCommand.Start() in Y:\Work\refs\tags\3.3.20\source\Octopus.Shared\Startup\ServiceCommand.cs:line 46
at Octopus.Shared.Startup.AbstractCommand.Octopus.Shared.Startup.ICommand.Start(String[] commandLineArguments, ICommandRuntime commandRuntime, OptionSet commonOptions) in Y:\Work\refs\tags\3.3.20\source\Octopus.Shared\Startup\AbstractCommand.cs:line 57
at Octopus.Shared.Startup.ConsoleHost.Run(Action`1 start, Action shutdown) in Y:\Work\refs\tags\3.3.20\source\Octopus.Shared\Startup\ConsoleHost.cs:line 72
at Octopus.Shared.Startup.OctopusProgram.Run() in Y:\Work\refs\tags\3.3.20\source\Octopus.Shared\Startup\OctopusProgram.cs:line 87
Error: The previous command returned a non-zero exit code of: 100
Error: The command that failed was: “C:\Program Files\Octopus Deploy\Octopus\Octopus.Server.exe” service --instance “OctopusServer” --start
The error says The service did not start due to a logon failure. Did the account that was running the Octopus Server service change by any chance? Best way to test this would be to quickly change the account its running under (maybe use yours just to test) and try to start it again.
The error says The service did not start due to a logon failure. Did the account that was running the Octopus Server service change by any chance? Best way to test this would be to quickly change the account its running under (maybe use yours just to test) and try to start it again.
Let me know if that works.
Thanks,
Dalmiro
On Mon, Aug 01 at 07:29 AM PDT, Ge wrote:
Hello,
We cannot log into our Octopus server since this morning. When we tried to restart the Octopus service, we received this error:
Any advice on why this happens?
Thanks,
Ge
Error: Cannot start service OctopusDeploy on computer ‘.’.
Full error details are available in the log files.
At: C:\Users\bai\AppData\Local\Octopus\Logs
Domain accounts are always recommended, yeah. I recommend you to try to use one and see if that allows the service to start. That way you’ll now you are facing a permissions issue, and you can start working out a solution towards that area (like using a dedicated domain account)
All that error said was that the service could not start because it was having a problem longging in. The first question to ask in those cases is “Does the account running the service have enough permissions in the box?”. In those scenarios things usually go 2 ways:
A) You are setting up the service for the first time and it just doesn’t start. In that case you need to either use an account that has higher privileges, or add more privileges to the one you are already using
B) The account suddenly lost its permissions. In this case you need to figure out why (usually Group Policy is behind this).
The best way to test this really quick is to change the account running the service to another one (admin preferably) and see if that fixes it. In that case you can say “ok, there’s an account that actually works” which is a good troubleshooting start point.
There’s no specific area in our documenatation that recommends running Octopus with a dedicated domain account. Its kind of a good overall practice for all services.
This issue has been closed due to inactivity. If you encounter the same or a similar issue and require help, please open a new discussion (if we asked for logs or extra details in this thread, consider including them in the new thread). If you are the creator of this thread and believe it should not be closed let us know via our support email.