Redhat

RHEL 7 上的 GitLab 安裝失敗

  • July 7, 2014

我正在嘗試在 RHEL 7 上安裝 GitLab 7.0(使用 CentOS 綜合包),但在下面的步驟中安裝一直失敗。關於如何成功完成安裝的任何建議?

 * execute[initctl status gitlab-runsvdir] action run
================================================================================
Error executing action `run` on resource 'execute[initctl status gitlab-runsvdir]'
================================================================================


Errno::ENOENT
-------------
No such file or directory - initctl


Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/runit/recipes/upstart.rb

29: execute "initctl status gitlab-runsvdir" do
30:   retries 30
31: end
32:



Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/runit/recipes/upstart.rb:29:in `from_file'

execute("initctl status gitlab-runsvdir") do
 action "run"
 retries 0
 retry_delay 2
 guard_interpreter :default
 command "initctl status gitlab-runsvdir"
 backup 5
 returns 0
 cookbook_name :runit
 recipe_name "upstart"
end




Running handlers:
[2014-07-07T12:23:16-04:00] ERROR: Running exception handlers
Running handlers complete

[2014-07-07T12:23:16-04:00] ERROR: Exception handlers complete
[2014-07-07T12:23:16-04:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 2 resources updated in 62.2579311 seconds
[2014-07-07T12:23:16-04:00] ERROR: execute[initctl status gitlab-runsvdir] (runit::upstart line 29) had an error: Errno::ENOENT: No such file or directory - initctl
[2014-07-07T12:23:16-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

您需要聯繫 gitlab 開發人員並獲取與 EL7 兼容的更新包。這是失敗的,因為它找不到僅存在於 EL6 中的各種新貴。

引用自:https://serverfault.com/questions/610686