how to reset password?
in rake console, when i try find user with id = 1 - i get 'nil'.
Could you provide more information of your docker setup ?
@ilyadavydyuk is this still an active topic ? If not could you close the case.
@ilyadavydyuk plz try this method, perform
- docker exec -it GITLAB_CONTAINER_ID /bin/bash 2.su - git 3.cd gitlab 4.bundle exec rails c production user = User.find_by_email("ROOT_EMAIL") user.password = 'NEW_PASS' user.password_confirmation = 'NEW_PASS' user.save exit more details, plz refer to https://docs.gitlab.com/ee/security/reset_root_password.html
I only had one user so I got it and made me admin.
user = User.first
user.admin = true
user.save!
in case anyone else finds this and is having trouble like I was, the other method of finding the root user worked for me. user = User.where(id: 1).first (found this in the same page @waterdrops linked to above)
This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.