You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

RHEL7环境GitLab CE升级至16.2.7后部分项目报500错误

问题描述

在RHEL 7系统上将GitLab CE从16.1.3版本升级至16.2.7版本后,出现以下异常:

  • 部分项目在Web界面访问时显示500错误
  • 所有项目均可通过Git命令行正常执行拉取、推送操作
已尝试的排查操作

数据库迁移与服务重启类操作

gitlab-rake db:migrate status
gitlab-rake db:migrate 
gitlab-ctl stop
gitlab-ctl start
gitlab-ctl reconfigure

数据库数据清理类操作

UPDATE projects SET runners_token = null, runners_token_encrypted = null;
UPDATE namespaces SET runners_token = null, runners_token_encrypted = null;
UPDATE application_settings SET runners_registration_token_encrypted = null;
UPDATE application_settings SET encrypted_ci_jwt_signing_key = null;
UPDATE ci_runners SET token = null, token_encrypted = null;
TRUNCATE web_hooks CASCADE;
UPDATE integrations SET active = false WHERE project_id = xx;

执行完上述SQL后执行:

gitlab-ctl reconfigure
当前状态与临时方案
  • 上述所有操作均无法解决Web界面500错误问题
  • 恢复gitlab-secrets备份后,所有项目可正常通过Web界面访问,但无法上传文件
  • 临时解决办法:
    • 用户重新创建SSL密钥并修改对应项目
    • 将现有项目文件迁移至新项目
      以上两种方式可解决当前500错误,但再次升级GitLab后问题会复现

内容的提问来源于stack exchange,提问作者Detonator120

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.07 17:04:51