{"action":"created","issue":{"url":"https://api.github.com/repos/getredash/redash/issues/848","repository_url":"https://api.github.com/repos/getredash/redash","labels_url":"https://api.github.com/repos/getredash/redash/issues/848/labels{/name}","comments_url":"https://api.github.com/repos/getredash/redash/issues/848/comments","events_url":"https://api.github.com/repos/getredash/redash/issues/848/events","html_url":"https://github.com/getredash/redash/issues/848","id":135896905,"number":848,"title":"Vagrant dev setup instructions don't work","user":{"login":"cldellow","id":193185,"avatar_url":"https://avatars.githubusercontent.com/u/193185?v=3","gravatar_id":"","url":"https://api.github.com/users/cldellow","html_url":"https://github.com/cldellow","followers_url":"https://api.github.com/users/cldellow/followers","following_url":"https://api.github.com/users/cldellow/following{/other_user}","gists_url":"https://api.github.com/users/cldellow/gists{/gist_id}","starred_url":"https://api.github.com/users/cldellow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cldellow/subscriptions","organizations_url":"https://api.github.com/users/cldellow/orgs","repos_url":"https://api.github.com/users/cldellow/repos","events_url":"https://api.github.com/users/cldellow/events{/privacy}","received_events_url":"https://api.github.com/users/cldellow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-23T23:17:14Z","updated_at":"2016-02-24T19:59:06Z","closed_at":null,"body":"I followed the instructions at http://docs.redash.io/en/latest/dev/vagrant.html\r\n\r\nIt did not result in a functioning environment. The server started, but upon trying to login with admin/admin, you get a stacktrace - see the full stacktrace at https://gist.github.com/cldellow/34cf5c2088f366f25d97\r\n\r\nStep 8 (Apply migrations) is clearly broken:\r\n\r\n`export PYTHONPATH=. && find migrations/ -type f  | grep 00 --null | xargs -I file bin/run python file`\r\n\r\nIt doesn't sort the migrations, so they are applied in whatever order find finds them. I tried again from fresh, but ran:\r\n\r\n`export PYTHONPATH=. && find migrations/ -type f  | sort | grep 00 --null | xargs -I file bin/run python file`\r\n\r\nto get ordered migrations. This failed with the same stack trace.\r\n\r\nI ultimately ended up dropping the DB, recreating it, then populating it via:\r\n\r\n```\r\nbin/run ./manage.py database create_tables\r\nbin/run ./manage.py users create --admin --password admin \"Admin\" \"admin\"\r\n```\r\n\r\nAt this point, redash worked as expected. I'm hesitant to submit a PR as I'm not sure what the \"right\" fix is here."},"comment":{"url":"https://api.github.com/repos/getredash/redash/issues/comments/188431177","html_url":"https://github.com/getredash/redash/issues/848#issuecomment-188431177","issue_url":"https://api.github.com/repos/getredash/redash/issues/848","id":188431177,"user":{"login":"arikfr","id":71468,"avatar_url":"https://avatars.githubusercontent.com/u/71468?v=3","gravatar_id":"","url":"https://api.github.com/users/arikfr","html_url":"https://github.com/arikfr","followers_url":"https://api.github.com/users/arikfr/followers","following_url":"https://api.github.com/users/arikfr/following{/other_user}","gists_url":"https://api.github.com/users/arikfr/gists{/gist_id}","starred_url":"https://api.github.com/users/arikfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arikfr/subscriptions","organizations_url":"https://api.github.com/users/arikfr/orgs","repos_url":"https://api.github.com/users/arikfr/repos","events_url":"https://api.github.com/users/arikfr/events{/privacy}","received_events_url":"https://api.github.com/users/arikfr/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T19:59:06Z","updated_at":"2016-02-24T19:59:06Z","body":"I think I will update the instructions to drop the tables and recreate them as you did. It's a simpler process and less error prone than running all the migrations.\r\n\r\nThank you for the suggestion."}}