NameError: uninitialized constant Gitlab
I added the following settings to gitlab.rb:
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = '...'
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_domain'] = '...'
gitlab_rails['smtp_authentication'] = 'none'
gitlab_rails['gitlab_email_from'] = '...'
gitlab_ci['smtp_enable'] = true
gitlab_ci['smtp_address'] = '...'
gitlab_ci['gitlab_ci_email_from'] = '...'
And when I ran gitlab-ctl reconfigure I got the following error:
Recipe: gitlab::gitlab-ci
* execute[clear the gitlab-ci cache] action run
================================================================================
Error executing action `run` on resource 'execute[clear the gitlab-ci cache]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/gitlab/bin/gitlab-ci-rake cache:clear ----
STDOUT:
STDERR: rake aborted!
NameError: uninitialized constant Gitlab
Tasks: TOP => cache:clear => environment
(See full trace by running task with --trace)
---- End output of /opt/gitlab/bin/gitlab-ci-rake cache:clear ----
Ran /opt/gitlab/bin/gitlab-ci-rake cache:clear returned 1
▽
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/gitlab/recipes/gitlab-ci.rb
194: execute "clear the gitlab-ci cache" do
195: command "/opt/gitlab/bin/gitlab-ci-rake cache:clear"
196: action :nothing
197: end
Compiled Resource:
▽
------------------
# Declared in /opt/gitlab/embedded/cookbooks/gitlab/recipes/gitlab-ci.rb:194:in `from_file'
execute("clear the gitlab-ci cache") do
action [:nothing]
▽
retries 0
retry_delay 2
guard_interpreter :default
command "/opt/gitlab/bin/gitlab-ci-rake cache:clear"
backup 5
returns 0
cookbook_name :gitlab
recipe_name "gitlab-ci"
end
Running handlers:
[2014-12-11T09:55:30-05:00] ERROR: Running exception handlers
Running handlers complete
[2014-12-11T09:55:30-05:00] ERROR: Exception handlers complete
[2014-12-11T09:55:30-05:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 13 resources updated in 28.460937994 seconds
[2014-12-11T09:55:31-05:00] ERROR: execute[clear the gitlab-ci cache] (gitlab::gitlab-ci line 194) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/gitlab/bin/gitlab-ci-rake cache:clear ----
STDOUT:
STDERR: rake aborted!
NameError: uninitialized constant Gitlab
Tasks: TOP => cache:clear => environment
(See full trace by running task with --trace)
---- End output of /opt/gitlab/bin/gitlab-ci-rake cache:clear ----
Ran /opt/gitlab/bin/gitlab-ci-rake cache:clear returned 1
[2014-12-11T09:55:31-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)