> ## Content Index
> Fetch the complete content index at: https://lucent.blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# Gitlab Admin管理页面提示500内部错误(500 Internal error)的解决办法
- URL: https://lucent.blog/1730178365355/
- Published: 2024-10-29T05:13:07.000Z
- Updated: 2026-08-21T00:49:56.000Z
- Author: Lucent

Gitlab迁移后，Admins管理区域大部分设置项无法保存，报500错误

![](https://lucent.blog/upload/image.png)

排查后问题是：

数据无法通过gitlab-secrets.json解密

排查命令:

```
sudo gitlab-rake gitlab:doctor:secrets
```

![](https://lucent.blog/upload/image-dwcr.png)

修复方式如下:

1.进入db控制台

```
sudo gitlab-rails dbconsole
```

2.使用以下指令修复

```
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;

exit;
```

按顺序执行

![](https://lucent.blog/upload/image-qdet.png)

执行完成后再次验证：

```
sudo gitlab-rake gitlab:doctor:secrets
```

![](https://lucent.blog/upload/image-fzit.png)

测试修改设置不再报500错误，修复完毕