gitlab迁移

注意:

迁移时需要将服务器/etc/ssh中的秘钥文件迁移走

镜像的秘钥路径在/etc/gitlab/

项目无法删除报500

https://blog.csdn.net/qq_37837432/article/details/121642542

1
2
3
4
su - gitlab-psql
psql -h /var/opt/gitlab/postgresql -d gitlabhq_production
UPDATE projects SET runners_token = null, runners_token_encrypted = null where name='xxxxx';

如果是ldap用户的个人项目无法删除,就将他的账户标识删除后登录再删除项目

迁移后异常500问题修复

OpenSSL::Cipher::CipherError ():

lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `block in write_using_load_balancer’

1
2
3
4
5
6
sudo gitlab-rails runner "Project.where.not(import_url: nil).each { |p| p.import_data.destroy if p.import_data }"
sudo gitlab-rails c
settings = ApplicationSetting.last
settings.update_column(:runners_registration_token_encrypted, nil)
settings.update_column(:encrypted_ci_jwt_signing_key, nil)
settings.save!