- 502 error - missing databases #28

banzo opened this Issue Nov 24, 2012 · 3 comments


None yet
3 participants

banzo commented Nov 24, 2012

The script runs fine on a fresh ubuntu EC2 instance using the AMI referenced, but when I try to access the web url I get a 502 error.

The troubleshooting command sudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production returns this error :

Could not find pg-0.14.1 in any of the sources
Run bundle install to install missing gems.

After installing postgres and the missing gem:

sudo apt-get install postgresql
sudo gem install pg -v '0.14.1'
sudo bundle install

The error is now :

rake aborted!
Unknown database 'gitlabhq_production'

Indeed there are no tables in the mysql database, unicorn complains about this also.

Can someone help or point me in the right direction?

Having the same issue. Any ideas?

Update: I just found this file

Use bundle exec rake db:schema:load RAILS_ENV=production to build the database.


Razer6 commented Jun 30, 2013

Hopefully it's fixd. Script was removed due to outdate.

Razer6 closed this Jun 30, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment