ruby - Gitlab reconfigure失败

 清春无悔396 发布于 2022-10-25 03:31

把gitlab.rb里gitlab_rails['gitlab_email_enabled']改成了false
以前刚装上的时候无端爆栈
现在改了这个以后reconfigure就过不去了……

日志如下:

Starting Chef Client, version 12.5.1
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
  - gitlab (0.0.1)
  - package (0.0.0)
  - runit (0.14.2)
Compiling Cookbooks...
Recipe: gitlab::default
  * directory[/etc/gitlab] action create (up to date)
/sbin/init: unrecognized option '--version'
-.mount                                          loaded active mounted   /
  
  ================================================================================
  Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb
  ================================================================================
  
  Errno::ENOMEM
  -------------
  Cannot allocate memory - fork(2)
  
  Cookbook Trace:
  ---------------
    /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:26:in `do_shell_out'
    /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:37:in `success?'
    /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:107:in `service_up?'
    /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:99:in `should_notify?'
    /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:202:in `block (2 levels) in from_file'
    /opt/gitlab/embedded/cookbooks/cache/cookbooks/runit/definitions/runit_service.rb:191:in `block in from_file'
    /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/definitions/sidekiq_service.rb:31:in `block in from_file'
    /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/sidekiq.rb:20:in `from_file'
    /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:110:in `block in from_file'
    /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:108:in `each'
    /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:108:in `from_file'
  
  Relevant File Content:
  ----------------------
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helper.rb:
  
   19:  require 'mixlib/shellout'
   20:  require 'uri'
   21:  
   22:  module ShellOutHelper
   23:  
   24:    def do_shell_out(cmd)
   25:      o = Mixlib::ShellOut.new(cmd)
   26>>     o.run_command
   27:      o
   28:    rescue Errno::EACCES
   29:      Chef::Log.info("Cannot execute #{cmd}.")
   30:      o
   31:    rescue Errno::ENOENT
   32:      Chef::Log.info("#{cmd} does not exist.")
   33:      o
   34:    end
   35:  
  
  
  Running handlers:
  Running handlers complete
  Chef Client failed. 0 resources updated in 05 seconds
2 个回答
  • GitLab官方推荐的配置是2GB内存

    2022-10-26 14:10 回答
  • Cannot allocate memory

    应该是内存不够

    2022-10-26 14:10 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有