Created
July 17, 2014 16:11
-
-
Save jjdevbiz/a8ddc42c73dba9dbf88a to your computer and use it in GitHub Desktop.
gitlab-ctl reconfigure pgsql error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* execute[create gitlab database user] action run | |
================================================================================ | |
Error executing action `run` on resource 'execute[create gitlab database user]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '2' | |
---- Begin output of /opt/gitlab/embedded/bin/psql --port 2345 -d template1 -c "CREATE USER gitlab" ---- | |
STDOUT: | |
STDERR: psql: could not connect to server: No such file or directory | |
Is the server running locally and accepting | |
connections on Unix domain socket "/tmp/.s.PGSQL.2345"? | |
---- End output of /opt/gitlab/embedded/bin/psql --port 2345 -d template1 -c "CREATE USER gitlab" ---- | |
Ran /opt/gitlab/embedded/bin/psql --port 2345 -d template1 -c "CREATE USER gitlab" returned 2 | |
Resource Declaration: | |
--------------------- | |
# In /opt/gitlab/embedded/cookbooks/gitlab/recipes/postgresql.rb | |
154: execute "create #{sql_user} database user" do | |
155: command "#{bin_dir}/psql --port #{pg_port} -d template1 -c \"CREATE USER #{sql_user}\"" | |
156: user pg_user | |
157: not_if { !pg_helper.is_running? || pg_helper.sql_user_exists? } | |
158: end | |
159: | |
Compiled Resource: | |
------------------ | |
# Declared in /opt/gitlab/embedded/cookbooks/gitlab/recipes/postgresql.rb:154:in `from_file' | |
execute("create gitlab database user") do | |
action "run" | |
retries 0 | |
retry_delay 2 | |
guard_interpreter :default | |
command "/opt/gitlab/embedded/bin/psql --port 2345 -d template1 -c \"CREATE USER gitlab\"" | |
backup 5 | |
returns 0 | |
user "gitlab-psql" | |
cookbook_name :gitlab | |
recipe_name "postgresql" | |
not_if { #code block } | |
end | |
Running handlers: | |
[2014-07-17T11:10:00-05:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2014-07-17T11:10:00-05:00] ERROR: Exception handlers complete | |
[2014-07-17T11:10:00-05:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out | |
Chef Client failed. 2 resources updated in 4.400629548 seconds | |
[2014-07-17T11:10:00-05:00] ERROR: execute[create gitlab database user] (gitlab::postgresql line 154) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2' | |
---- Begin output of /opt/gitlab/embedded/bin/psql --port 2345 -d template1 -c "CREATE USER gitlab" ---- | |
STDOUT: | |
STDERR: psql: could not connect to server: No such file or directory | |
Is the server running locally and accepting | |
connections on Unix domain socket "/tmp/.s.PGSQL.2345"? | |
---- End output of /opt/gitlab/embedded/bin/psql --port 2345 -d template1 -c "CREATE USER gitlab" ---- | |
Ran /opt/gitlab/embedded/bin/psql --port 2345 -d template1 -c "CREATE USER gitlab" returned 2 | |
[2014-07-17T11:10:00-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment