RefugeRestrooms / refugerestrooms

REFUGE restrooms indexes and maps safe restroom locations for trans, intersex, and gender nonconforming individuals.
http://www.refugerestrooms.org
GNU Affero General Public License v3.0
894 stars 261 forks source link

rbenv issue on vagrant up #309

Closed kurtcarpenter closed 7 years ago

kurtcarpenter commented 7 years ago

On first-time start of the vagrant box, rbenv fails to install ruby 2.3.1:

==> default: installing rbenv...
==> default: Cloning into '.rbenv'...
==> default: Cloning into '/home/vagrant/.rbenv/plugins/ruby-build'...
==> default: install ruby 2.3.1
==> default: ruby-build: definition not found: 2.3.1
==> default: See all available versions with `rbenv install --list'.
==> default: If the version you need is missing, try upgrading ruby-build
==> default: :
==> default:   cd /home/vagrant/.rbenv/plugins/ruby-build && git pull && cd -
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
dannypaz commented 7 years ago

@kurtcarpenter I took a look at this issue this morning and was able to find more information on this issue here.

It looks like the ruby-build that is being used in vagrant could/maybe/notsure is a local copy (from your local machine).

Could you post the following commands: ruby-build --version and brew update && brew upgrade ruby-build

I will try to help you troubleshoot to get you started. Also, if you are interested, there is a slack channel for refuge that we can use, too.

kurtcarpenter commented 7 years ago

I don't have ruby installed on the host machine- I believe this is an issue with ruby-build's version cache not being up-to-date on setup. Turns out this was really an issue with newlines on .ruby-version not being stripped by the setup script

On the guest machine:

vagrant@refugerestrooms:~$ ruby-build --version
ruby-build 20170201-12-g4e80d99

vagrant@refugerestrooms:~$ rbenv versions | grep 2.3.1
* 2.3.1 (set by /home/vagrant/.ruby-version)