GitLab failing on reconfigure
This issue is happening on my test-kitchen/vagrant Centos 6.6 box. I created a simple wrapper cookbook that calls the omnibus-gitlab::default
recipe. This only happens when I specify a package version, but if I leave it out and let it install the latest version it works.
My recipes/default.rb:
include_recipe 'omnibus-gitlab::default'
My attributes/default.rb:
default['omnibus-gitlab']['package']['repo'] = 'gitlab/gitlab-ee'
default['omnibus-gitlab']['package']['name'] = 'gitlab-ee'
default['omnibus-gitlab']['package']['version'] = '7.11.4~ee.omnibus-1'
The reconfigure error:
================================================================================
Error executing action `run` on resource 'execute[gitlab-ctl reconfigure]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of gitlab-ctl reconfigure ----
STDOUT: [2015-10-07T22:12:50+00:00] INFO: Starting chef-zero on host localhost, port 8889 with repository at repository at /opt/gitlab/embedded
One version per cookbook
[2015-10-07T22:12:50+00:00] FATAL: Errno::EADDRINUSE: Address already in use - bind(2) for 127.0.0.1:8889
STDERR:
---- End output of gitlab-ctl reconfigure ----
Ran gitlab-ctl reconfigure returned 1
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/omnibus-gitlab/recipes/default.rb
115: execute "gitlab-ctl reconfigure" do
116: action :nothing
117: end
118:
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/omnibus-gitlab/recipes/default.rb:115:in `from_file'
execute("gitlab-ctl reconfigure") do
action [:nothing]
retries 0
retry_delay 2
default_guard_interpreter :execute
command "gitlab-ctl reconfigure"
backup 5
returns 0
declared_type :execute
cookbook_name "omnibus-gitlab"
recipe_name "default"
end
Running handlers:
[2015-10-07T22:12:50+00:00] ERROR: Running exception handlers
Running handlers complete
[2015-10-07T22:12:50+00:00] ERROR: Exception handlers complete
Chef Client failed. 5 resources updated in 143.945310927 seconds
[2015-10-07T22:12:51+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2015-10-07T22:12:51+00:00] ERROR: execute[gitlab-ctl reconfigure] (omnibus-gitlab::default line 115) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of gitlab-ctl reconfigure ----
STDOUT: [2015-10-07T22:12:50+00:00] INFO: Starting chef-zero on host localhost, port 8889 with repository at repository at /opt/gitlab/embedded
One version per cookbook
[2015-10-07T22:12:50+00:00] FATAL: Errno::EADDRINUSE: Address already in use - bind(2) for 127.0.0.1:8889
STDERR:
---- End output of gitlab-ctl reconfigure ----
Ran gitlab-ctl reconfigure returned 1
[2015-10-07T22:12:51+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)