背景:
gitlab从8.5.7版本升级到gitlab15.11.0版本参照:gitlab远古版本备份&还原&降级,gitlab-11.1.4持续降级到15.9.3。15.9.3版本又执行了一次降级到了gitlab15.11.0。过程根本都是一样的。然而注明一下:我其实降级了两个实例:一个8.5.7-15.11.0,另外一个10.8.7-15.11.0.这里区别阐明,是因为两个解决的过程略微不一样,降级实现后页面都是一样的,点了一遍左侧栏:
CI/CD页面runner 包了500的谬误:
搜寻关键词 gitlab runner 500:
根本起因都是降级or迁徙后gitlab-secrets.json清空造成的,上面具体记录一下两个集群的操作过程:
gitlab降级版本ci/cd runner页面500谬误解决方案
10.8.7降级的15.11.0实例:
尝试了好几个博客中的办法....后果都是有效,最终参考的是:gitlab从12.3.9降级为14.4.5版本后批改通用设置报错。
cd /var/log/gitlab/gitlab-rails/tail -f production.log
gitlab-ctl tail | grep error
[root@VM-5-14-rockylinux gitlab-rails]# sudo gitlab-rails dbconsole --database mainpsql (13.8)Type "help" for help.gitlabhq_production=# UPDATE application_settings SET encrypted_customers_dot_jwt_signing_key = null;UPDATE 1gitlabhq_production=# UPDATE application_settings SET encrypted_customers_dot_jwt_signing_key_iv = null;UPDATE 1gitlabhq_production=# UPDATE application_settings SET runners_registration_token = null;UPDATE 1gitlabhq_production=# UPDATE application_settings SET runners_registration_token_encrypted = null;UPDATE 1
刷新web页面能够失常关上runner:
8.5.7降级的15.11.0实例:
尝试了下面的办法还是不能够(下面的流程走过一遍了):
cat /var/log/gitlab/gitlab-rails/production.log
找到了关键词:aes256_gcm_decrypt
能够参照:DevOps ---- Gitlab-Runner 500
然而我看到复原默认备份的没有敢操作.......,参照了:https://blog.csdn.net/ZH_CS/article/details/124709638
sudo gitlab-rails consule------------------------------------------------------------------------------------- GitLab: 15.11.0 (1d9280e) GitLab Shell: 5.11.0 postgresql: 12.12-------------------------------------------------------------------------------------Loading production environment (Rails 5.1.7.2)irb(main):001:0> settings = ApplicationSetting.last......irb(main):002:0> settings.update_column(:runners_registration_token_encrypted, nil)=> trueirb(main):003:0> settings.update_column(:encrypted_ci_jwt_signing_key, nil)irb(main):004:0> settings.save!
刷新页面能够了:
这应该是降级Or备份还原常见的一个问题,每个人遇到的也可能不一样,只能长于借助搜寻工具了!