admin管理员组文章数量:1648378
GitLab登录时报错,错误如下:
Your account is pending approval from your GitLab administrator and hence blocked. Please contact your GitLab administrator if you think this is an error.
解决办法:
[root@gitlab ~]# docker exec -it 89bc35417d8b bash
root@89bc35417d8b:/# cd /opt/gitlab/bin/
root@89bc35417d8b:/opt/gitlab/bin#
root@89bc35417d8b:/opt/gitlab/bin# ls
gitlab-backup gitlab-healthcheck gitlab-rails gitlab-redis-cli
gitlab-ctl gitlab-psql gitlab-rake gitlab-ruby
root@89bc35417d8b:/opt/gitlab/bin# gitlab-rails console
--------------------------------------------------------------------------------
Ruby: ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-linux]
GitLab: 14.6.1 (661d663ab2b) FOSS
GitLab Shell: 13.22.1
PostgreSQL: 12.7
--------------------------------------------------------------------------------
Loading production environment (Rails 6.1.4.1)
irb(main):009:0> u=User.where(id:1).first
=> #<User id:1 @root>
irb(main):010:0> u.password='12345678'
=> "12345678"
irb(main):011:0> u.password_confirmation='12345678'
=> "12345678"
irb(main):012:0> u.save
=> true
irb(main):013:0>
进入容器
执行命令
再次登录
用户名是root
密码是12345678
本文标签: approvalpendingAccountblockedadministrator
版权声明:本文标题:Your account is pending approval from your GitLab administrator and hence blocked. 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1729498399a1203186.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论