[openstreetmap/openstreetmap-website] vagrant up failing due to permission issue and more (#1888)

Michael Hwang notifications at github.com
Wed May 30 21:23:25 UTC 2018


I cloned latest from master and ran `vagrant up`.  Running into the following issue:

```
...
    default: Successfully installed bundler-1.16.2
    default: Parsing documentation for bundler-1.16.2
    default: Installing ri documentation for bundler-1.16.2
    default: Done installing documentation for bundler after 4 seconds
    default: 1 gem installed
    default: /srv/openstreetmap-website /home/vagrant
    default: There was an error while trying to write to
    default: `/srv/openstreetmap-website/.bundle/config`. It is likely that you need to grant
    default: write permissions for that path.
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.
```

I think the problematic line in the provision.sh script is:

```
# do bundle install as a convenience
sudo -u ubuntu -H bundle install --retry=10 --jobs=2
```

I `vagrant ssh` into the VM and ran:

```
vagrant at ubuntu-xenial:/srv$ sudo chmod -R 777 openstreetmap-website
```

I got further but not much.  Now I have the following error:

```
vagrant at ubuntu-xenial:/srv/openstreetmap-website$ sudo -u ubuntu -H bundle install --retry=10 --jobs=2
Fetching gem metadata from https://rubygems.org/...........
Fetching rake 12.3.1
Installing rake 12.3.1
Errno::EPERM: Operation not permitted @ chown_internal - /tmp/bundler20180530-22084-xy0qt9rake-12.3.1/bin
An error occurred while installing rake (12.3.1), and Bundler cannot continue.
Make sure that `gem install rake -v '12.3.1' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  annotate was resolved to 2.7.3, which depends on
    rake
```

Help.  Thank you.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1888
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180530/fb362f2a/attachment-0001.html>


More information about the rails-dev mailing list