Fügen Sie dies während @Audrius Meškauskas beschrieben auf Ubuntu 12.04 :
Als Administrator verbinden
sudo -u postgres psql -d template1
Rolle ändern
ALTER ROLE gitlab_ci WITH CREATEDB;
Führen Sie die Aufgabe erneut aus
sudo -u gitlab_ci -H bundle exec rake db:setup RAILS_ENV=production