{"action":"closed","issue":{"url":"https://api.github.com/repos/linuxfoundation/cii-best-practices-badge/issues/346","repository_url":"https://api.github.com/repos/linuxfoundation/cii-best-practices-badge","labels_url":"https://api.github.com/repos/linuxfoundation/cii-best-practices-badge/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/linuxfoundation/cii-best-practices-badge/issues/346/comments","events_url":"https://api.github.com/repos/linuxfoundation/cii-best-practices-badge/issues/346/events","html_url":"https://github.com/linuxfoundation/cii-best-practices-badge/issues/346","id":154125250,"number":346,"title":"Problems with install-badge-dev-env","user":{"login":"ejratl","id":1165700,"avatar_url":"https://avatars.githubusercontent.com/u/1165700?v=3","gravatar_id":"","url":"https://api.github.com/users/ejratl","html_url":"https://github.com/ejratl","followers_url":"https://api.github.com/users/ejratl/followers","following_url":"https://api.github.com/users/ejratl/following{/other_user}","gists_url":"https://api.github.com/users/ejratl/gists{/gist_id}","starred_url":"https://api.github.com/users/ejratl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejratl/subscriptions","organizations_url":"https://api.github.com/users/ejratl/orgs","repos_url":"https://api.github.com/users/ejratl/repos","events_url":"https://api.github.com/users/ejratl/events{/privacy}","received_events_url":"https://api.github.com/users/ejratl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/linuxfoundation/cii-best-practices-badge/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-10T22:59:26Z","updated_at":"2016-05-16T21:11:01Z","closed_at":"2016-05-16T21:11:01Z","body":"I know that a pull request would be more useful, but I wanted to document what I am seeing while it is still fresh.\r\n\r\nWhen I try to install the badge app on a fresh system (Ubuntu 15.10) using install-badge-dev-env, I get several failures as follows:\r\n\r\n1. install-badge-dev-env does not attempt to install postgresql. postgresql and postgresql-client are both needed to successful completion of the install. It is possible that postgresql-contrib is also needed, but I haven't confirmed this yet.\r\n\r\n2. Since I didn't have postgresql installed, I didn't have a role for my username. install-badge-dev-env stopped with the error \"FATAL: role \"username\" does not exist\". I had to create the role as the postgres user to get past this step.\r\n\r\n3. Although phantomjs is added as a requirement for MacOS systems, it was not one of the packages installed by install-badge-dev-env so during one of the latter steps, the install process errorred out because it could not find the phantomjs executable.\r\n\r\n4. rake db:drop-database does not clean up the install enough for install-badge-dev-env to be re-run. Perhaps there is a command that cleans the system up enough, but I missed it. I couldn't find a way to re-run install-badge-dev-env successfully after encountering an error. \r\n\r\nAfter working through these errors, I do now have a running local installation of the badge app, but it took some doing. I do plan to submit a pull request which fixes these issues, but that will come later."}}