解决Gitlab升级后,项目的 CI/ CD页面报500错误,且

2021-05-25  本文已影响0人  超级普普罗特
Completed 500 Internal Server Error in 414ms (ActiveRecord: 38.5ms | Elasticsearch: 0.0ms | Allocations: 177793)

ActionView::Template::Error ():
     6:            locals: { type: 'specific',
     7:                      clusters_path: project_clusters_path(@project) }
     8:   %hr
     9:   = render partial: 'ci/runner/how_to_setup_runner',
    10:            locals: { registration_token: @project.runners_token,
    11:                      type: 'specific',
    12:                      reset_token_url: reset_registration_token_namespace_project_settings_ci_cd_path }

lib/gitlab/crypto_helper.rb:27:in `aes256_gcm_decrypt'

解决方法

gitlabhq_production=> SELECT name, runners_token_encrypted FROM Projects WHERE Name = '你的项目名';
   name    |             runners_token_encrypted
-----------+--------------------------------------------------
 你的项目名 | x1it3fYVm1w9pL6tL3utv9ncnekZ1Js/Sj3Kgl9V0h2Z55IA
 你的项目名 | 8Fiq7/4HvVl67Zqvd1mo59LF6I9DqPxO6a3BPEHd1ZdRXx+3
(2 rows)
gitlabhq_production=> update Projects set runners_token_encrypted = null where Name = '你的项目名';
UPDATE 2
gitlabhq_production=> SELECT name, runners_token_encrypted FROM Projects WHERE Name = '你的项目名';
   name    | runners_token_encrypted
-----------+-------------------------
 你的项目名 |
 你的项目名 |
(2 rows)
上一篇下一篇

猜你喜欢

热点阅读