Looks like some form of permission issue, as it can’t seem to find access to the postgres instance. Any suggestions here are very welcome. I get this when running sudo gitlab-ctl reconfigure
, and I have done the step of setting up the
mattermost_external_url correctly,
AFAIK.
* execute[create gitlab_mattermost database user] action run
================================================================================
Error executing action `run` on resource 'execute[create gitlab_mattermost database user]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '2'
---- Begin output of /opt/gitlab/embedded/bin/psql --port 5432 -h /var/opt/gitlab/postgresql -d template1 -c "CREATE USER gitlab_mattermost" ----
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 "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
---- End output of /opt/gitlab/embedded/bin/psql --port 5432 -h /var/opt/gitlab/postgresql -d template1 -c "CREATE USER gitlab_mattermost" ----
Ran /opt/gitlab/embedded/bin/psql --port 5432 -h /var/opt/gitlab/postgresql -d template1 -c "CREATE USER gitlab_mattermost" returned 2