Skip to main content

Linux 安装 GitLab

配置

WebHook

Url is blocked: Requests to the local network are not allowed

需要勾选Allow requests to the local network from web hooks and services 进入 http://${host}:${port}/admin/application_settings/network#js-outbound-settings0

检查故障

gitlab-rake gitlab:doctor:secrets
I, [2022-12-27T05:56:02.920969 #24467]  INFO -- : Checking encrypted values in the database
...
I, [2022-12-27T05:56:16.076539 #24467] INFO -- : - Ci::JobVariable failures: 0
I, [2022-12-27T05:56:16.492378 #24467] INFO -- : - ApplicationSetting failures: 1
...
I, [2022-12-27T05:56:16.905476 #24467] INFO -- : - Integration failures: 1
...
I, [2022-12-27T05:56:17.252288 #24467] INFO -- : - Integrations::BaseMonitoring failures: 1
I, [2022-12-27T05:56:17.257227 #24467] INFO -- : - Integrations::Prometheus failures: 1
...
I, [2022-12-27T05:56:18.438372 #24467] INFO -- : Total: 5 row(s) affected
I, [2022-12-27T05:56:18.438445 #24467] INFO -- : Done!

发现有五个故障

ApplicationSetting failures 问题解决方案

解决admin配置500的问题
# 官方说明,在操作后可能会将配置文件恢复为默认配置,建议操作前备份
~ gitlab-rails console
> ApplicationSetting.first.delete
> ApplicationSetting.first
=> nill
# 执行后重载配置文件发现问题解决
~ gitlab-ctl reconfigure
info

此方法只是解决ApplicationSetting failures其中的一种