管理员区域中的gitlab 500错误 [英] gitlab 500 errors in the admin area

查看:777
本文介绍了管理员区域中的gitlab 500错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何复制:

  1. 以管理员身份登录
  2. 进入管理菜单
  3. 点击概述-跑步者
  4. 或在设置中单击保存"

结果:500错误:糟糕,我们这边出了点问题.

Result: 500 Error: Whoops, something went wrong on our end.

哪个系统正在运行?

RHEL 7,带有Nginx和乘客的出站gitlab

RHEL 7, outbound gitlab with Nginx and passengers

错误:

OpenSSL::Cipher::CipherError ():

lib/gitlab/crypto_helper.rb:27:in `aes256_gcm_decrypt'
app/models/concerns/token_authenticatable_strategies/encrypted.rb:55:in `get_token'
app/models/concerns/token_authenticatable_strategies/base.rb:27:in `ensure_token'
app/models/concerns/token_authenticatable_strategies/encrypted.rb:42:in `ensure_token'


ActionView::Template::Error ():
    37: 
    38:     .col-sm-6
    39:       .bs-callout
    40:         = render partial: 'ci/runner/how_to_setup_runner',
    41:                  locals: { registration_token: Gitlab::CurrentSettings.runners_registration_token,
    42:                            type: 'shared',
    43:                            reset_token_url: reset_registration_token_admin_application_settings_path }

推荐答案

我几乎可以确定gitlab从/etc/gitlab/gitlab-secrets.json(omnibus install)或$ GITLAB_HOME/config/中读取的解密密钥是错误的secrets.yml(基于源的安装).如果您不关心Runner_registration_token,则可以从控制台中重置它:

I am almost sure it's a wrong decryption key that gitlab reads from /etc/gitlab/gitlab-secrets.json (omnibus install) or $GITLAB_HOME/config/secrets.yml(source based install). If you don't care about your runner_registration_token you can reset it like this from the console:

root@gitlab:/# gitlab-rails console
-------------------------------------------------------------------------------------
 GitLab:       11.5.1 (c90ae59)
 GitLab Shell: 8.4.1
 postgresql:   9.6.8
-------------------------------------------------------------------------------------
Both Deployment and its :status machine have defined a different default for "status". Use only one or the other for defining defaults to avoid unexpected behaviors.
Loading production environment (Rails 4.2.10)
irb(main):001:0> ApplicationSetting.current.reset_runners_registration_token!
=> true
irb(main):002:0> 

这篇关于管理员区域中的gitlab 500错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆