Gitlab webui ask password after settings password via gitlab-rails

梦想的初衷 提交于 2021-01-29 10:40:45

问题


After the installation of gitlab i use gitlab-rails to change root password but the webinterface still asks to set a password. If i change the password on the WebUI i can use gitlab-rails to change password. So i used

user = User.find_by(email: 'admin@local.host')
user.password = 'secret_pass'
user.password_confirmation = 'secret_pass'
user.save

or

gitlab_rails['initial_root_password'] = 'nonstandardpassword'in gitlab.rb
gitlab-rake gitlab:setup 

Do you have an idea that how i can initalize first root password without the gui ?

Thanks


回答1:


Please use sudo gitlab-rake gitlab:setup RAILS_ENV=production GITLAB_ROOT_PASSWORD=<your_pass> GITLAB_ROOT_EMAIL=<your_mail>

Hope this helpful for you :)



来源:https://stackoverflow.com/questions/50839956/gitlab-webui-ask-password-after-settings-password-via-gitlab-rails

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!