Thanks for getting in touch! After you created your new administrator user, what error are you getting when you try to login? Or are you able to login, but you don’t have any permissions to do anything?
Did you run the below command from the second documentation page you linked? This will make the user into an administrator (replacing with your user’s details):
Octopus.Server.exe service --stop
Octopus.Server.exe admin --username=YOURUSERNAME --password=YOURPASSWORD
Octopus.Server.exe service --start
Yes I did this exactly, changed webAuthenticationMode to UsernamePassword and specified a username and password for admin. I even tried a few different usernames and passwords. I just get unable to login as if the credentials are bad. Being as I’m doing this on the server with plaintext I’m positive they are correct.
Thanks for following up. As you said you were migrating your Server, is the login failing on the old server, or the new one?
Is the Sign in with a domain account option present on your login page? Changing the authentication-type to Username/Password will disable integrated login, and would remove that option.
Could you confirm the admin user you created with that command has been added to the database by running the following SQL query?
SELECT * FROM dbo.[User] WHERE Username='YOURUSERNAME'
If the admin user exists in the database as expected, could you send us the Server Log (located in C:\Octopus\Logs in standard installations)? That should then shine some more light on what could be the issue
I did this on the server pre-migration, so the existing server. I first changed the authentication method to UsernamePassword and then added the administrator.
I did verify the user I created was added to the databases (see screenshot).
So I did the following: Octopus.Server.exe service --stop
I’ll have to wait a couple hours to verify what it says again when I try to login, but what I remember it doing was just bringing up the yellow warning box saying username and password were invalid. During this time I also tried to login with my domain credentials and that did not work (as expected).
Once It was not working to revert back I stopped and did : Octopus.Server.exe configure --webAuthenticationMode=Domain
Everything worked as it always had. OctoAdmin still does not work.
Thanks for that additional information. Your process looks completely correct, and the user exists in the database, so I don’t see any obvious reason why it wouldn’t be working. The only thing I’ve seen previously that has caused this error is the password having a special character that isn’t supported (ie #). However, there have been some updates and enhancements to the authentication system since Octopus 3.5, including being able to have both Username/Password and integrated AD simultaneously turned on. Would you be willing to try upgrading to a newer version, as that may help?
Let me know how you go or if you have any questions!