Gitlab reset Password for root is not coming directly it is giving login option can you help to how to reset password of administration
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Heya,
I’ll also point you in direction to use the rails console to reset your password. You can follow the steps Bobby listed and also check this article in Gitlab’s docs:
https://docs.gitlab.com/ee/security/reset_user_password.html
Hope that this helps!
Hi there,
Is it a GitLab Enterprise Edition that you are running on your Droplet? If so what you could do is to use the Rails console to reset your GitLab user password as described in the docs here:
Basically, you will need to do the following:
SSH into your Droplet where GitLab is installed.
Open the GitLab Rails console. If you installed GitLab via the Omnibus package, you can open the Rails console with:
Locate the
root
user and change the password. Once in the console, enter the following commands:Exit the Rails console by simply typing:
Now, go to your GitLab login page and use
root
as the username and the new password you just set to log in.If you have two-factor authentication (2FA) enabled, and you also lost access to it, you can disable it from the Rails console:
Let me know how it goes!
Best,
Bobby