Chef error: CREATE USER gitlab_mattermost

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

Hi @scottcorscadden, this may be an issue with GitLab 7.14.1, propose following this thread in GitLab omnibus: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/748

Thanks very much @it33 - that was very helpful. Got what I needed over there.