Seravo / wordpress

The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment
https://seravo.com
GNU General Public License v3.0
104 stars 53 forks source link

Vagrant box could not be found (migrated atlas.hashicorp.com -> vagrantcloud.com in Jan 2018) #84

Closed k1sul1 closed 3 years ago

k1sul1 commented 6 years ago

People coming in to a project are reporting that Vagrant doesn't work, it fails in initial vagrant up, with this output:

Bringing machine 'redacted-box' up with 'virtualbox' provider...
==> redacted-box: Box 'seravo/wordpress' could not be found. Attempting to find and install...
    redacted-box: Box Provider: virtualbox
    redacted-box: Box Version: >= 20160718.15.0122
The box 'seravo/wordpress' 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/seravo/wordpress"]
Error: The requested URL returned error: 404 Not Found
ottok commented 6 years ago

Yes, the image is still there: https://app.vagrantup.com/seravo/boxes/wordpress However Vagrant needs an update.

The problem is that Hashicorp Atlas has seized to exist – All of https://atlas.hashicorp.com just redirects to a new Terraform sign up page.

If you try to start Vagrant using an image that has nothing to do with Seravo, you get the same error message:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/xenial64' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'ubuntu/xenial64' 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/ubuntu/xenial64"]
Error: The requested URL returned error: 404 Not Found
ottok commented 6 years ago

In our tests a recent machine with Vagrant 1.9.1 loads the images from vagrantcloud.com.. and another installation of Vagrant 1.9.5 loads the images from atlas.hashicorp.com... Go figure.

According to the official announcement simply upgrading to a the most recent Vagrant version is the way to go: https://groups.google.com/forum/#!topic/vagrant-up/H8C68UTkosU

k1sul1 commented 6 years ago

Apparently it started working after a Vagrant update.

ottok commented 6 years ago

You also need to make sure your existing images metadata is updated. See the files you have with find ~/.vagrant.d/boxes/*/metadata_urland edit them to use vagrantcloud.com like this:

cat ~/.vagrant.d/boxes/seravo-VAGRANTSLASH-wordpress/metadata_url
https://vagrantcloud.com/seravo/wordpress
ottok commented 3 years ago

People are unlikely to bump into this anymore, so no need to keep this open for informational purposes. The issue itself is fixed and most likely all project templates that had this have been updated by their respective developers.