{"action":"created","issue":{"url":"https://api.github.com/repos/genome/gms/issues/155","labels_url":"https://api.github.com/repos/genome/gms/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/genome/gms/issues/155/comments","events_url":"https://api.github.com/repos/genome/gms/issues/155/events","html_url":"https://github.com/genome/gms/issues/155","id":58082740,"number":155,"title":"vm vagrant install fails with rake-10.1.1 error","user":{"login":"malachig","id":856728,"avatar_url":"https://avatars.githubusercontent.com/u/856728?v=3","gravatar_id":"","url":"https://api.github.com/users/malachig","html_url":"https://github.com/malachig","followers_url":"https://api.github.com/users/malachig/followers","following_url":"https://api.github.com/users/malachig/following{/other_user}","gists_url":"https://api.github.com/users/malachig/gists{/gist_id}","starred_url":"https://api.github.com/users/malachig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malachig/subscriptions","organizations_url":"https://api.github.com/users/malachig/orgs","repos_url":"https://api.github.com/users/malachig/repos","events_url":"https://api.github.com/users/malachig/events{/privacy}","received_events_url":"https://api.github.com/users/malachig/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/genome/gms/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-18T15:32:45Z","updated_at":"2015-02-18T16:32:04Z","closed_at":null,"body":"Trying to complete installation on a Mac pro using VirtualBox and Vagrant installation option.  Getting this error:\r\n\r\n```\r\n/vagrant\r\ncd /var/www/gms-webviews &&  sudo -u www-data bundle exec bundle exec rake assets:precompile && cd -\r\nCould not find rake-10.1.1 in any of the sources\r\nRun `bundle install` to install missing gems.\r\nmake: *** [done-host/rails] Error 7\r\nmake[1]: *** [setup] Error 2\r\nmake[1]: Leaving directory `/vagrant'\r\nmake: *** [all] Error 2\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/genome/gms/issues/comments/74895886","html_url":"https://github.com/genome/gms/issues/155#issuecomment-74895886","issue_url":"https://api.github.com/repos/genome/gms/issues/155","id":74895886,"user":{"login":"malachig","id":856728,"avatar_url":"https://avatars.githubusercontent.com/u/856728?v=3","gravatar_id":"","url":"https://api.github.com/users/malachig","html_url":"https://github.com/malachig","followers_url":"https://api.github.com/users/malachig/followers","following_url":"https://api.github.com/users/malachig/following{/other_user}","gists_url":"https://api.github.com/users/malachig/gists{/gist_id}","starred_url":"https://api.github.com/users/malachig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malachig/subscriptions","organizations_url":"https://api.github.com/users/malachig/orgs","repos_url":"https://api.github.com/users/malachig/repos","events_url":"https://api.github.com/users/malachig/events{/privacy}","received_events_url":"https://api.github.com/users/malachig/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T16:32:04Z","updated_at":"2015-02-18T16:32:04Z","body":"Here is the make target that is failing:\r\n\r\n```\r\ndone-host/rails: done-host/pkgs\r\n#\r\n# $@:\r\n#\r\nsudo -v\r\nsudo gem install bundler --no-ri --no-rdoc --install-dir=/var/lib/gems/1.9.1\r\nsudo chown www-data:www-data /var/www\r\nsudo -u www-data rsync -r $(GMS_HOME)/sw/rails/ /var/www/gms-webviews\r\n# cd /var/www/gms-webviews && sudo bundle install\r\nsudo /usr/bin/gem1.9.1 install bundler --no-ri --no-rdoc\r\nsudo -u www-data mv /var/www/gms-webviews/config/database.yml.template /var/www/gms-webviews/config/database.yml\r\ncd /var/www/gms-webviews && sudo bundle install && cd -\r\ncd /var/www/gms-webviews && sudo -u www-data bundle exec bundle exec rake assets:precompile && cd -\r\n[ -e /var/www/gms-webviews/tmp ] || sudo -u www-data mkdir /var/www/gms-webviews/tmp\r\nsudo -u www-data touch /var/www/gms-webviews/tmp/restart.txt\r\ntouch $@\r\n```\r\n\r\nQuestions, I have.\r\n- Why not use rbenv to manage this ruby app?\r\n- Why are we running `/usr/bin/gem1.9.1 install bundler` and `bundle install` as root?  These commands result in warnings that installing your bundle as root will break this application for all non-root users.  The very next thing we attempt to do is run a rake task as the `www-data` user.   It seems like that may be related to the problem we are having here...  A lot of things are done as root in this install, so perhaps it we are just continuing down that road...\r\n- Why does this command `cd /var/www/gms-webviews && sudo -u www-data bundle exec bundle exec rake assets:precompile && cd -` contain `bundle exec` twice in a row?  Is this equivalent to shelling out within a shell?  If so we may be introducing an environment issue by doing so.\r\n"}}