Gitlab 无法启动 runsv 不是 运行
Gitlab Cannot start runsv is not running
我刚刚使用这个命令将我的 gitlab-ce 版本升级到最新版本
sudo yum install gitlab-ce-12.1.3-ce.0.el7.x86_64
升级正常,但是重启后gitlab服务启动不了,
当我 运行 这个命令
sudo gitlab-ctl start
fail: alertmanager: runsv not running
fail: gitaly: runsv not running
fail: gitlab-monitor: runsv not running
fail: gitlab-workhorse: runsv not running
fail: grafana: runsv not running
fail: logrotate: runsv not running
fail: nginx: runsv not running
fail: node-exporter: runsv not running
fail: postgres-exporter: runsv not running
fail: postgresql: runsv not running
fail: prometheus: runsv not running
fail: redis: runsv not running
fail: redis-exporter: runsv not running
fail: sidekiq: runsv not running
fail: unicorn: runsv not running
然后我尝试使用此命令
启动 gitlab-运行sv
systemctl start gitlab-runsvdir.service
但是它死机了,什么也没做!!,我必须使用 CTRL+C 退出
当我 运行 journal-ctl 时,它没有显示任何内容。
journalctl -u gitlab-runsvdir.service
-- No entries --
我的环境是Centos 7.
我做了 yum 更新并重新启动,然后我做了 gitlab-ctl 重新配置,现在 gitlab 服务又开始工作了。
我在类似问题上留下了这个答案:
我 运行 遇到了类似的 runsv 错误,但只看到一次服务,而不是您拥有的整个列表。这些步骤是我尝试让它工作的日志 - 可能不是直线,但我的本地 Gitlab 现在可以工作了:
在 CentOS 虚拟机中:
vi /etc/gitlab/gitlab.rb
-
- 从 http://example.gitlab.com to http://192.168.1.131
更改 external_url
sudo gitlab-ctl 重新配置
-
- 首先观察到错误运行不是运行
yum 更新-y
sudo gitlab-ctl status
sudo gitlab-ctl restart
sudo gitlab-ctl 重新配置
systemctl 启动gitlab-runsvdir.service
systemctl状态gitlab-runsvdir.service
sudo gitlab-ctl 重新配置
-
- 仍然多次看到有关 runsv not 运行 的错误,但它从来都不是阻塞,重新配置成功
在主机上
导航到 192.168.1.131
查看root密码提示
至于 Postgres 的问题,我不确定
我在 ubuntu-20 上遇到了这个问题。以前我禁用了我的 gitlab-runsvdir.service。这就是我的问题的原因。所以我做了什么
sudo systemctl enable gitlab-runsvdir.service
sudo systemctl start gitlab-runsvdir.service
我刚刚使用这个命令将我的 gitlab-ce 版本升级到最新版本
sudo yum install gitlab-ce-12.1.3-ce.0.el7.x86_64
升级正常,但是重启后gitlab服务启动不了, 当我 运行 这个命令
sudo gitlab-ctl start
fail: alertmanager: runsv not running
fail: gitaly: runsv not running
fail: gitlab-monitor: runsv not running
fail: gitlab-workhorse: runsv not running
fail: grafana: runsv not running
fail: logrotate: runsv not running
fail: nginx: runsv not running
fail: node-exporter: runsv not running
fail: postgres-exporter: runsv not running
fail: postgresql: runsv not running
fail: prometheus: runsv not running
fail: redis: runsv not running
fail: redis-exporter: runsv not running
fail: sidekiq: runsv not running
fail: unicorn: runsv not running
然后我尝试使用此命令
启动 gitlab-运行svsystemctl start gitlab-runsvdir.service
但是它死机了,什么也没做!!,我必须使用 CTRL+C 退出 当我 运行 journal-ctl 时,它没有显示任何内容。
journalctl -u gitlab-runsvdir.service
-- No entries --
我的环境是Centos 7.
我做了 yum 更新并重新启动,然后我做了 gitlab-ctl 重新配置,现在 gitlab 服务又开始工作了。
我在类似问题上留下了这个答案:
我 运行 遇到了类似的 runsv 错误,但只看到一次服务,而不是您拥有的整个列表。这些步骤是我尝试让它工作的日志 - 可能不是直线,但我的本地 Gitlab 现在可以工作了:
在 CentOS 虚拟机中:
vi /etc/gitlab/gitlab.rb
-
- 从 http://example.gitlab.com to http://192.168.1.131 更改 external_url
sudo gitlab-ctl 重新配置
-
- 首先观察到错误运行不是运行
yum 更新-y
sudo gitlab-ctl status
sudo gitlab-ctl restart
sudo gitlab-ctl 重新配置
systemctl 启动gitlab-runsvdir.service
systemctl状态gitlab-runsvdir.service
sudo gitlab-ctl 重新配置
-
- 仍然多次看到有关 runsv not 运行 的错误,但它从来都不是阻塞,重新配置成功
在主机上
导航到 192.168.1.131
查看root密码提示
至于 Postgres 的问题,我不确定
我在 ubuntu-20 上遇到了这个问题。以前我禁用了我的 gitlab-runsvdir.service。这就是我的问题的原因。所以我做了什么
sudo systemctl enable gitlab-runsvdir.service
sudo systemctl start gitlab-runsvdir.service