我一直在尝试在 Ubuntu 15.04 的实例上安装 Gitlab。
不幸的是,当我运行时:
sudo gitlab-ctl reconfigure
我收到错误消息:
STDERR: initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
我该如何继续……?
Joe*_*l B 10
Ubuntu 15.05 不再使用 Upstart。它使用 SystemD。在撰写本文时,GitLab 尚未更新以检查这一点。
处理这个问题的规则在 /opt/gitlab/embedded/cookbooks/runit/recipes/default.rb
因此可以修改 Debian 规则:
when "debian"
case node["platform"]
when "debian"
if node["platform_version"] =~ /^8/
include_recipe "runit::systemd"
else
include_recipe "runit::sysvinit"
end
else
include_recipe "runit::upstart"
Run Code Online (Sandbox Code Playgroud)
到
when "debian"
case node["platform"]
when "debian"
if node["platform_version"] =~ /^8/
include_recipe "runit::systemd"
else
include_recipe "runit::sysvinit"
end
else
#include_recipe "runit::upstart"
include_recipe "runit::systemd"
Run Code Online (Sandbox Code Playgroud)
注意:是的,我回答了我自己的问题,因为我被困在这个问题上并想分享。
| 归档时间: |
|
| 查看次数: |
2823 次 |
| 最近记录: |