debian_ubuntu_aws.sh - 502 error - missing databases #28

Closed
banzo opened this Issue Nov 24, 2012 · 3 comments

Comments

Projects
None yet
3 participants

banzo commented Nov 24, 2012

The debian_ubuntu_aws.sh 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 https://github.com/gitlabhq/gitlabhq/blob/master/db/schema.rb.

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

Member

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