xuanxi 发表于 2018-1-11 12:13:44

centos 6.4/redhat 6.4 安装gitlab

# sudo gitlab-ctl reconfigure  Starting Chef Client, version 11.12.2
  Compiling Cookbooks...
  Recipe: gitlab::default
  * directory action create (up to date)
  ================================================================================
  Recipe Compile Error in /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb
  ================================================================================
  RuntimeError
  ------------
  External URL must include a FQDN
  Cookbook Trace:
  ---------------
  /opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb:109:in `parse_external_url'
  /opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb:260:in `generate_config'
  /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb:34:in `from_file'
  Relevant File Content:
  ----------------------
  /opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb:
  102:
  103:      def parse_external_url
  104:      return unless external_url
  105:
  106:      uri = URI(external_url.to_s)
  107:
  108:      unless uri.host
  109>>         raise "External URL must include a FQDN"
  110:      end
  111:      Gitlab['user']['git_user_email'] ||= "gitlab@#{uri.host}"
  112:      Gitlab['gitlab_rails']['gitlab_host'] = uri.host
  113:      Gitlab['gitlab_rails']['gitlab_email_from'] ||= "gitlab@#{uri.host}"
  114:
  115:      case uri.scheme
  116:      when "http"
  117:          Gitlab['gitlab_rails']['gitlab_https'] = false
  118:      when "https"
  Running handlers:
ERROR: Running exception handlers
  Running handlers complete
ERROR: Exception handlers complete
FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
  Chef Client failed. 0 resources updated in 7.716937465 seconds
ERROR: External URL must include a FQDN
FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
页: [1]
查看完整版本: centos 6.4/redhat 6.4 安装gitlab