gitlab登陆提示500问题处理,日志提示 OpenSSL::Cipher::CipherError ():

张开发
2026/4/13 13:14:21 15 分钟阅读

分享文章

gitlab登陆提示500问题处理,日志提示 OpenSSL::Cipher::CipherError ():
之前在公司环境部署了一套gitlab环境存一些项目源码最近发现页面突然登陆不上了一直报错不知道为啥之前一直好好的啊从来没有问题昨晚登陆了一下就报错了我的是docker部署了查看了一下登陆报错dockerexecgitlabtail-f/var/log/gitlab/gitlab-rails/production.logOpenSSL::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次问大模型如果解决不了的百度大神一定有答案。故有了此篇文章。问题也是需要积累了。希望不要再遇到。最后感谢那位大哥

更多文章