gitlab reconfigure 卡住 ruby_block[wait for redis service socket] action run

在Ubuntu20环境下,安装GitLab过程中遇到卡在ruby_block[waitforredisservicesocket]actionrun的问题,通过额外启动命令sudo/opt/gitlab/embedded/bin/runsvdir-start或使用nohup命令后台执行,再执行sudogitlab-ctlreconfigure,成功解决了安装配置难题。

gitlab 卡在ruby_block[wait for redis service socket] action run

环境:ubuntu 20

在安装gitlab的时候,安装完毕,执行sudo gitlab-ctl reconfigure,在/etc/gitlab/gitlab.rb文件的时候,会卡在这地方

在这里插入图片描述
在这里插入图片描述
然后等了很久也没有看到这个控制台输出的日志信息发生变化。

解决方案:
在另外开启一个终端启动如下命令

sudo /opt/gitlab/embedded/bin/runsvdir-start

或者在当前的终端窗口中后台执行上述命令

nohup /opt/gitlab/embedded/bin/runsvdir-start &

然后再执行

sudo gitlab-ctl reconfigure
* service[postgres-exporter] action nothing (skipped due to action :nothing) * runit_service[postgres-exporter] action enable * ruby_block[restart_service] action nothing (skipped due to action :nothing) * ruby_block[restart_log_service] action nothing (skipped due to action :nothing) * ruby_block[reload_log_service] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/sv/postgres-exporter] action create (up to date) * template[/opt/gitlab/sv/postgres-exporter/run] action create (up to date) * directory[/opt/gitlab/sv/postgres-exporter/log] action create (up to date) * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create (up to date) * template[/opt/gitlab/sv/postgres-exporter/log/config] action create (up to date) * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing) * link[/var/log/gitlab/postgres-exporter/config] action create (up to date) * template[/opt/gitlab/sv/postgres-exporter/log/run] action create (up to date) * directory[/opt/gitlab/sv/postgres-exporter/env] action create (up to date) * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if) * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if) * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if) * directory[/opt/gitlab/sv/postgres-exporter/control] action create (up to date) * link[/opt/gitlab/init/postgres-exporter] action create (up to date) * file[/opt/gitlab/sv/postgres-exporter/down] action nothing (skipped due to action :nothing) * directory[/opt/gitlab/service] action create (up to date) * link[/opt/gitlab/service/postgres-exporter] action create (up to date) * ruby_block[wait for postgres-exporter service socket] action run (skipped due to not_if) * file[/var/log/gitlab/postgres-exporter/current] action touch (skipped due to only_if) (up to date) * template[/var/opt/gitlab/postgres-exporter/queries.yaml] action create (up to date) * consul_service[postgres-exporter] action delete * file[/var/opt/gitlab/consul/config.d/postgres-exporter-service.json] action delete (up to date) (up to date) Recipe: gitlab::database_reindexing_disable * crond_job[database-reindexing] action delete * file[/var/opt/gitlab/crond/database-reindexing] action delete (up to date) (up to date) [2025-07-14T15:35:11+08:00] INFO: Cinc Client Run complete in 67.143192279 seconds Running handlers: [2025-07-14T15:35:11+08:00] INFO: Running report handlers Running handlers complete [2025-07-14T15:35:11+08:00] INFO: Report handlers complete Infra Phase complete, 0/821 resources updated in 01 minutes 10 seconds [2025-07-14T15:35:11+08:00] WARN: This release of Cinc Client became end of life (EOL) on May 1st 2024. Please update to a supported release to receive new features, bug fixes, and security updates. gitlab Reconfigured!
最新发布
07-15
评论 21
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值