Tuesday, November 29, 2016

How to Solve Vagrant box could not be found or could not be accessed Error in Mac OS

Vagrant have a litte issue this week in MacOS. Many vagrant user reporting they can’t found and access vagrant box from their Atlas Repository. A serious issue when you can’t download and run any new box.

To solve this issue:

$ vagrant up
Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Box ‘scotch/box’ could not be found. Attempting to find and install

default: Box Provider: virtualbox
default: Box Version: >= 0
The box ‘scotch/box’ could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp’s Atlas, please verify you’re logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/scotch/box"]

we have to delete embedded curl provided by Vagrant:

sudo rm /opt/vagrant/embedded/bin/curl

This issue is affecting Vagrant 1.8.7 users. The problem itself is already reported in here https://github.com/mitchellh/vagrant/issues/7970 and can’t be found in new Vagrant releases.



Post a Comment