springload / madewithwagtail

A showcase of sites and apps made with Wagtail CMS, the easy to use, open source Django content management system
http://madewithwagtail.org
MIT License
84 stars 21 forks source link

`vagrant up` from a fresh checkout fails #8

Closed mx-moth closed 9 years ago

mx-moth commented 9 years ago

It appears no Django database configuration is set automatically by the provisioning script, so attempting to run manage.py migrate fails with:

django.db.utils.OperationalError: FATAL:  Peer authentication failed for user "postgres"

The provisioning script should automatically set up a local database user and a settings/local.py, or the README should contain instructions on how to get up and running.

jordij commented 9 years ago

Thanks for the feedback. A database is automatically set up but the issue here is different. The user postgres should be able to login into the DB without password. Will look into it.

As a workaround for now, and after your vagrant up attempt you could run:

$ vagrant ssh
$ perl -pi -e "s/^(local\s+all\s+postgres\s+)peer$/\1trust/" /etc/postgresql/9.3/main/pg_hba.conf
$ exit
$ vagrant halt
$ vagrant up --provision
$ vagrant ssh
$ djrun

Cheers

mx-moth commented 9 years ago

That worked, and the box is now up and running. Thanks!