PG::ConnectionBad after fresh install
Fresh OmniBus gitlab-ce 7.13.0-rc2.ce.0.el6 from RPM produces error after install resulting in a user facing HTTP 500.
Log shows:
PG::ConnectionBad (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"?
):
/opt/gitlab/embedded/service/gitlab-rails/config/database.yml
:
production:
adapter: postgresql
encoding: unicode
database: gitlabhq_production
pool: 10
username: 'gitlab'
password:
host: '/var/opt/gitlab/postgresql'
port: 5432
socket:
sslmode:
sslrootcert:
Setting host: '/var/opt/gitlab/postgresql'
to host:
fixes.