-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vagrant box update - Fails with 404 Not Found error #9442
Comments
Same with > /usr/bin/curl -I -q --fail --location --max-redirs 10 --user-agent "Vagrant/1.9.1 \
(+https://www.vagrantup.com; ruby2.3.3)" --continue-at - \
-H "Accept: application/json" https://atlas.hashicorp.com/debian/stretch64
HTTP/1.1 200 Connection established
curl: (22) The requested URL returned error: 404 Not Found At this time "All Systems Operational" https://status.hashicorp.com ... |
Testet this with a lot of different boxes including ubuntu/xenial64, centos/7 and laravel/homestead. All gives 404. |
Same here for ubuntu/xenial64 ... At least it doesn't seem to be our firewall anymore ^^ |
I'm wondering if this is related to Vagrant Cloud now being the source for Vagrant boxes. Perhaps HashiCorp Atlas removed its redirects recently? Going to experiment with this a bit. |
Upgraded to Vagrant 2.0.2 and it started working. |
A workarround to add in your Vagrantfile: Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com') |
@mal-risma I am using Vagrant 2.0.2. |
Can't explain why it started working on my machine then. Sorry. |
@mal-risma : perhaps you don't need authentication The whole patch to read is: 5f955c3 So my workarround is not a valid solution for authenticated users... |
I had the same issue. Updated to v2.0.2 but updates were still downloaded from atlas. New installs work fine. I'm not a find/xarg/sed pro but I bet someone will come up with a one-liner to replace all occurrences automatically |
That looks like the underlying cause @HenningCash. Thank you!
After fixing this I was able to successfully download the box update. Since I had been using a version earlier than Vagrant 2.0.2 when I originally downloaded this box's metadata the |
This seems to work for me (on an Ubuntu 16.04 host). |
A better solution would be to setup a redirection on the web server of atlas.hashicorp. My 2 cents... |
This is effecting all boxes. Anyone clarify what's happening here exactly? |
@whatnickcodes : HashCorp's SysOps/DevOps/WhaterverOps removed previous Vagrant URL redirections from atlas.hashicorp.com to vagrantcloud.com too quickly. |
What's a fix for people who aren't going to be knowledgable enough to modify Vagrant meta data? Edit: I support a popular Vagrant box targeted towards absolute beginners |
@whatnickcodes Likely you will need to wait for the upstream fix. This issue is tagged with the 2.0.3 milestone, so that, presumably, will be the version that this fix lands in. |
@whatnickcodes the fix is to install the latest version of Vagrant from the website. I also had to upgrade VirtualBox because it was freezing. |
@samrocketman That won't fix box To be clear what the issue here is: 5f955c3 converted cached box If you were using a version of Vagrant <1.9.6 you were still able to download boxes, update box versions, etc., until very recently (I first encountered the 404 Not Found error on Even after I updated to Vagrant 2.0.2, the issue was still present, because Vagrant does not migrate the old box In order to be backwards compatible with box |
What's the ETA for 2.0.3? This issue broke a critical part in our test infrastructure so we are very much looking forward to a fix. |
@remd I guess I didn't face a problem because I deleted all of my virtualbox VMs and ran
to clean up the settings. I have
to remove the vagrant metadata. It was an opportunity to clean up a year of vagrant cruft for me. |
i did This seems to wor as well since it deleted everything :) |
modified: Vagrantfile
¯\(ツ)/¯ |
With Vagrant 2.0.3 and up, the DEFAULT_SERVER_URL is frozen, so it cannot be changed. But earlier versions of Vagrant need this line to work. While we could mandate a minimum Vagrant version, this change would set the correct URL if it's wrong, and leave it alone if the Vagrant version is new enough not to need it. In hashicorp/vagrant#9442 this fix was posted by @reedy, credit where credit is due.
Vagrant 2.0.4 downloaded image successfull without 'not found' error |
Not sure if this will help anyone but I just nixed the box from my system, which seemed to resolve the issue
|
it will fix your error. |
Update for anyone coming across this thread in the future - after downloading Vagrant version 2.1.2 from their website, the Specifically it located the metadata in the right place:
Maybe they fixed the issue or added a redirect. |
Hi Team, |
Hey @ramprsad1433, try adding the following to your VagrantFile: |
Fix vagrant hashicorp url More details: hashicorp/vagrant#9442 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/931) <!-- Reviewable:end -->
Fix vagrant hashicorp url More details: hashicorp/vagrant#9442 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/931) <!-- Reviewable:end -->
Fix vagrant hashicorp url More details: hashicorp/vagrant#9442 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/931) <!-- Reviewable:end -->
Fix vagrant hashicorp url More details: hashicorp/vagrant#9442 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/931) <!-- Reviewable:end -->
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Vagrant version
Host operating system
Ubuntu 16.04.3 LTS
Guest operating system
Ubuntu 16.04.3 LTS (ubuntu/xenial64)
Vagrantfile
Debug output
$ vagrant --debug box update > debug.output 2>&1
https://gist.github.com/remd/8cc26e356fbb8b04c5f25df82ce077d1
Expected behavior
Should have downloaded and installed the new box version.
20170713.0.0
->20180126.0.0
Actual behavior
404 Not Found Error.
Steps to reproduce
ubuntu/xenial64
vagrant box update
Also, directly navigating to the URL listed in the debug output (https://atlas.hashicorp.com/ubuntu/xenial64) shows a 404 Not Found error in my browser. Is Atlas not working properly at the moment?
References
I could not find any associated with the latest version of
vagrant
.EDIT
See #9442 (comment) for a clearer summary of the root cause of this issue.
The text was updated successfully, but these errors were encountered: