Vagrant <2.x can no longer fetch box metadata from Hashicorp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Fix Released
|
High
|
Canonical Foundations Team | ||
vagrant (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
As of February 2nd, the legacy Vagrant Cloud URLs were disabled by Hashicorp[0], meaning that the versions of vagrant in xenial and artful can no longer fetch Vagrant boxes from the global index (which is a fundamental part of Vagrant use).
[0] https:/
[Test Case]
Before fix:
$ vagrant box add 'ubuntu/trusty64'
[...]
URL: ["https:/
Error: The requested URL returned error: 404 Not Found
After fix:
$ vagrant box add 'ubuntu/trusty64'
==> box: Loading metadata for box 'ubuntu/trusty64'
box: URL: https:/
[...]
[Regression Potential]
These changes were cherry-picked directly from upstream (where they have been for several upstream releases), and they only affect the parts of the code concerned with the fetching of boxes (which doesn't work at all currently). I believe the potential for regression outside this functionality is low.
[Original Report]
When trying to update my ubuntu/trusty64 vagrant box, I get the following failure:
$ vagrant box update --box 'ubuntu/trusty64'
Checking for updates to 'ubuntu/trusty64'
Latest installed version: 20180124.0.0
Version constraints: > 20180124.0.0
Provider: virtualbox
There was an error while downloading the metadata for this box.
The error message is shown below:
The requested URL returned error: 404 Not Found
I have the following Vagrant version:
$ vagrant --version
Vagrant 2.0.2
and am able to access the resources where I assume they are hosted:
$ curl -O http://
% Total % Received % Xferd Average Speed Time Time Time Current
4 425M 4 17.1M 0 0 1062k 0 0:06:50 0:00:16 0:06:34 972k
summary: |
- Error downloading box trusty64 metadata + Vagrant <2.x can no longer fetch box metadata from Hashicorp |
description: | updated |
tags: | added: id-5a79b75fa2ffa06d010508ae |
Changed in cloud-images: | |
status: | New → In Progress |
importance: | Undecided → High |
Changed in cloud-images: | |
status: | In Progress → Fix Released |
Thanks for reporting. We're looking into the issue.