Gitlab - Postgres - InvalidSchemaName

Hi,

I’m trying to install Gitlab from source. When I run bundle exec rake gitlab:setup RAILS_ENV=production

I get the following error.

ActiveRecord::StatementInvalid: PG::InvalidSchemaName: ERROR:  no schema has been selected to create in
LINE 1: CREATE TABLE "abuse_reports" ("id" serial primary key, "repo...

my database.yml has schema_search_path set. The database has the default schema and search path set.

Fixed this issue. I needed to create a schema with the default gitlab user in the database