Your account is pending approval from your GitLab administrator and hence blocked.

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

  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值