在 Admin area 中修改任何配置都弹出提示拒绝修改。
异常现象
页面报错类似:
/opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/activerecord-7.0.6/lib/active_record/validations.rb:80:in `raise_validation_error': Validation failed: Deactivate dormant users period '7' days of inactivity must be greater than or equal to 90 (ActiveRecord::RecordInvalid)这是因为通过命令私自篡改了账户冻结时间导致的。
异常处理
通过 rails console 执行命令:
Gitlab::CurrentSettings.update!(deactivate_dormant_users_period: 90)其他配置
也可以临时开启用户登录(比如 LDAP 异常时):
Gitlab::CurrentSettings.update!(password_authentication_enabled_for_web: true)附录
参考链接
本文由 柒 创作,采用 知识共享署名4.0
国际许可协议进行许可。
转载本站文章前请注明出处,文章作者保留所有权限。
最后编辑时间: 2026-08-31 03:55 AM