之前在公司环境部署了一套gitlab环境,存一些项目源码,最近发现页面突然登陆不上了,一直报错

不知道为啥,之前一直好好的啊,从来没有问题,昨晚登陆了一下就报错了,
我的是docker部署了,查看了一下登陆报错
docker exec gitlab tail -f /var/log/gitlab/gitlab-rails/production.log
OpenSSL::Cipher::CipherError ():
encryptor (3.0.0) lib/encryptor.rb:98:in `final'
encryptor (3.0.0) lib/encryptor.rb:98:in `crypt'
encryptor (3.0.0) lib/encryptor.rb:49:in `decrypt'
vendor/gems/attr_encrypted/lib/attr_encrypted.rb:247:in `block in attr_decrypt'
vendor/gems/attr_encrypted/lib/attr_encrypted.rb:245:in `each'
vendor/gems/attr_encrypted/lib/attr_encrypted.rb:245:in `with_index'
vendor/gems/attr_encrypted/lib/attr_encrypted.rb:245:in `attr_decrypt'
vendor/gems/attr_encrypted/lib/attr_encrypted.rb:340:in `attr_decrypt'
vendor/gems/attr_encrypted/lib/attr_encrypted.rb:163:in `block (2 levels) in attr_encrypted'
activemodel (7.0.8.7) lib/active_model/validator.rb:150:in `block in validate'
activemodel (7.0.8.7) lib/active_model/validator.rb:149:in `each'
activemodel (7.0.8.7) lib/active_model/validator.rb:149:in `validate'
activesupport (7.0.8.7) lib/active_support/callbacks.rb:423:in `block in make_lambda'
activesupport (7.0.8.7) lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
activesupport (7.0.8.7) lib/active_support/callbacks.rb:687:in `block (2 levels) in default_terminator'
activesupport (7.0.8.7) lib/active_support/callbacks.rb:686:in `catch'
就这么个问题,从昨晚开始问元宝和千问,两大可爱的大模型,一直给我兜圈,各种重置密码啊,修改这这那那的配置,最后还让我重新部署一套,幸好提前备份了文件,不然这套环境就毁了,最后还是百度了OpenSSL::Cipher::CipherError ():,从腾讯云里找到了解决方案就是
~] gitlab-rails console
> ApplicationSetting.first.delete
> ApplicationSetting.first
=> nill
重新登陆问题解决。哎,吃一堑长一智,以后有问题还是得多百度,最多3次问大模型如果解决不了的,百度大神一定有答案。故有了此篇文章。问题也是需要积累了。希望不要再遇到。最后感谢那位大哥


3823

被折叠的 条评论
为什么被折叠?



