Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debian_ubuntu_aws.sh - 502 error - missing databases #28

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

debian_ubuntu_aws.sh - 502 error - missing databases #28

banzo opened this issue Nov 24, 2012 · 3 comments

Comments

@banzo
Copy link

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?

@tschoffelen
Copy link

Having the same issue. Any ideas?

@tschoffelen
Copy link

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.

@Razer6
Copy link
Member

Razer6 commented Jun 30, 2013

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

@Razer6 Razer6 closed this as completed Jun 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants