Goal
Use the octopus.server admin command to reset administrator user passwords, re-enable them, and ensure they are in the Octopus administrators group. This article is for Octopus Administrators who find they are having issues logging into Octopus and need a working, local, Octopus Administrator account to get them back up and logging into the UI after an issue.
Prerequisites
The user performing this task needs to be able to logon to the server Octopus is hosted on or have permissions to docker exec into the docker container running Octopus. The user needs to have permissions to run a command prompt or terminal and be able to access the folder where Octopus was installed so they can run the octopusserver.exe command line.
Steps
If you find you are locked out of logging into the Octopus UI for any reason (for example, if your Client Secret in EntraID for the Octopus application has expired and you need to renew it) you may need to logon to the Octopus UI as an administrator so you can access configuration menus and change authentication settings. If this happens to you, you will need to follow the steps below:
- If it is not enabled already, ensure you have enabled username and password authentication in Octopus. Our documentation here goes into detail on how to do that.
- Once username and password authentication is enabled in Octopus, you can then follow our documentation here on how to reset and re-enable the local Administrator account in Octopus. The
octopus.server.exefile can be found in the folder where you installed Octopus (by default, on Windows that isC:\Program Files\Octopus Deploy\Octopus) so you will need to ensure your command line or terminal points to that folder when you execute the commands. - Once you have reset and re-enabled the Local Octopus Administrator account, you should then be able to navigate to your Octopus UI and type in the administrator's username and password that you used in step 2 when you ran the command. This should then let you logon with administrator access to edit any configuration you need to get your usual authentication processes working.
Verify
If you are able to log on to your Octopus instance via the username and password box with the administrator account you reset, the process has worked.