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

之前在公司环境部署了一套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次问大模型如果解决不了的,百度大神一定有答案。故有了此篇文章。问题也是需要积累了。希望不要再遇到。最后感谢那位大哥
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值