gitlab Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

欢迎访问我的个人博客网站: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.rbexternal_url的值

    把external_url 'hostname'修改成为
    external_url='10.121.215.48'

    注意:默认是没有=,要记得加上

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值