欢迎访问我的个人博客网站:http://www.yanmin99.com/
Gitlab Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
异常描述
Recipe: gitlab::gitlab-ci_disable * template[/var/opt/gitlab/nginx/conf/gitlab-ci-http.conf] action create (up to date) * directory[/var/opt/gitlab/ci-backups] action create (up to date) * service[ci-unicorn] action stop ================================================================================ Error executing action `stop` on resource 'service[ci-unicorn]' ================================================================================ Errno::ENOENT ------------- No such file or directory - /etc/init.d/ci-unicorn Resource Declaration: --------------------- # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-ci_disable.rb 73: service ci_service do 74: action :stop 75: end 76: Compiled Resource: ------------------ # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-ci_disable.rb:73:in `block in from_file' service("ci-unicorn") do action [:stop] supports {:restart=>false, :reload=>false, :status=>false} retries 0 retry_delay 2 default_guard_interpreter :default service_name "ci-unicorn" pattern "ci-unicorn" declared_type :service cookbook_name "gitlab" recipe_name "gitlab-ci_disable" end Running handlers: [2015-09-30T09:26:55+00:00] ERROR: Running exception handlers Running handlers complete [2015-09-30T09:26:55+00:00] ERROR: Exception handlers complete Chef Client failed. 1 resources updated in 3.469290519 seconds [2015-09-30T09:26:55+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out [2015-09-30T09:26:55+00:00] ERROR: service[ci-unicorn] (gitlab::gitlab-ci_disable line 73) had an error: Errno::ENOENT: No such file or directory - /etc/init.d/ci-unicorn [2015-09-30T09:26:55+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
解决方案:修改
/etc/gitlab/gitlab.rb
中external_url
的值把external_url 'hostname'修改成为 external_url='10.121.215.48'
注意:默认是没有=,要记得加上