doorkeeper causing 'bundle exec rake assets:precompile' to fail with Postgres error
Omnibus fails with the following error when it runs '/opt/gitlab/embedded/bin/bundle exec rake assets:precompile' for the 'gitlab-rails' component.
Log:
---- Begin output of /opt/gitlab/embedded/bin/bundle exec rake assets:precompile ----
STDOUT:
STDERR: rake aborted!
PG::Error: 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.5432"?
/var/cache/omnibus/src/gitlab-rails/config/initializers/doorkeeper.rb:1:in `<top (required)>'
/var/cache/omnibus/src/gitlab-rails/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
---- End output of /opt/gitlab/embedded/bin/bundle exec rake assets:precompile ----
Whilst investigating this with @twk3, we found that it's a problem with 'doorkeeper', which was recently added to 'master'. During the rake task, 'doorkeeper' expects the Postgres server to be up, specifically it seems to be failing in config.rb. The following issue has been logged against 'doorkeeper'.