-
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
any up and box add gives Error: The requested URL returned error: 403 #12390
Comments
Same here, tried with different boxes and the output is the same. What I noticed:
|
This happens because there's no ubuntu/bionic64 for hyper-v provider The ubuntu/bionic64 exists only for virtualbox provider With the Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/bionic64"
config.vm.box_version = "1.0.282"
end |
"Host system: Fresh installation of Ubuntu 20.04.2 LTS". So I'm using Virtualbox as provider. |
I've updated the comment with the virtualbox thing... try to just init a new one repo with: vagrant init -m ubuntu/bionic64
vagrant up and see if works, also try with images like: centos/7
debian/buster64 and see if it works |
Also @robkorv maybe you have another provider not initialized into your pc... you can also start your machine with $ vagrant up --provider virtualbox it will enforce the provider virtualbox and will try to download the image :) |
Thanks for trying to help me @caiodelgadonew. The problem is some where in the the url or handling of the response, see my debug report in the initial post. It tried everything you suggested. Same error pops up. Do you have any other suggestions? |
Hi everybody, it's not only when doing a vagrant up or box add, it is going on when any kind of command for connecting to internet. I'm using vagrant 2.2.16 on MACOS BigSur It's not possible doing anything with vagrant without boxes already downloaded Examples: https://gist.github.com/Yohnah/5a799b0bbddbaa8d526b8ccaf0a4c154 |
@Yohnah plz don't post logs in issues. Create a gist for it and share the link. See https://github.com/hashicorp/vagrant/blob/main/.github/ISSUE_TEMPLATE/bug-report.md#debug-output |
Done |
Does not work neather |
Just checked here, same problem on latest version of vagrant.... What works for me is "wgetting" the url and manually adding it: Eg.: $ wget https://app.vagrantup.com/ubuntu/boxes/bionic64/versions/20210521.0.0/providers/virtualbox.box
$ vagrant box add ubuntu/bionic64 virtualbox.box |
I have same issue. Windows 10. I can not even download some of boxes from official site. For example: https://app.vagrantup.com/gusztavvargadr/boxes/windows-10 |
|
Same here with debian10 Doing a vagrant up shows the mentioned 403 error. Doing a manual curl to the addres gives me back a 302 from cloudfront. I also just created a vagrant cloud account, because didn't use vagrant for a long time and thought maybe it requires an account now. Did a Which returns a 403 with:
Are vagrant backend servers down? |
Hi, I think I figured out where is the issue. I think it is a DNS replication issue If I setup Google DNS in my computer: 8.8.8.8 -> vagrant does not work If I setup CloudFlare DNS in my computer: 1.1.1.1 -> vagrant does not work If I setup OpenDNS DNS in my computer: 208.67.222.222 -> vagrant works!!! So, I am using this workaround by means of the issue is being fixed. The difference DNS responses between them:
I hope it can be helpful. |
Good catch! |
@soapy1 can you take a look into that? :D |
I have encountered the same issue, both with older Vagrant from Debian/Ubuntu repos and with the latest 2.2.16 from hashicorp web site. The problem seems to be with CDN or HTTP frontend configuration. Correct redirect sequence would be:
The first redirect is broken. Instead we are getting
If I modify Upd:: Seems like a CDN misconfiguration. Basically any redirect from
|
If the solution of @Yohnah doesn't suit anyone you can download the boxes manually: Temporary Solution 1vagrant box add --name generic/ubuntu2004 https://app.vagrantup.com/generic/boxes/ubuntu2004/versions/3.2.20/providers/libvirt.box Temporary Solution 2Or add any of the noted Ip's in your /etc/hosts file:
And it just works: Remember to remove it once Hashicorp Team fixes the issue. Cheers |
I am facing similar issues on Ubuntu 18.04 |
Legend, this worked perfectly! |
The solution of @m0sh1x2 didn't work for me, I suspect this is because I am behind a corporate proxy. |
Hi. My apologies everyone. We had a configuration update that resulted in some redirect issues which caused the 403 errors that were being encountered. This has been resolved and Vagrant Cloud is now responding correctly. As a result, box interactions from the Vagrant CLI are also working as expected. Again, my apologies for the unexpected errors and thanks for the patience while we resolved the issue. Cheers! |
The login process by cli does not still work, I open a new thread #12393 |
Having the same issue with vagrant 2.2.15 behind a firewall attempting to connect to a local instance of Gitlab also behind the firewall. No vagrant sites or external CDN are any part of this transaction. A wget of the box works perfectly, but using the same URL in Vagrantfile always gets a 403. I got it working by falling back to vagrant 2.2.14. Vagrant 2.2.16 is not (currently) an option due to the SSH key handling changes that broke a configuration controlled environment. This gist contains the relevant bits that are failing when using vagrant 2.2.15. |
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. |
Vagrant version
Both Vagrant 2.2.16 from the ppa and de deb download
Host operating system
Fresh installation of Ubuntu 20.04.2 LTS
Guest operating system
ubuntu/bionic64
hashicorp/bionic64
Vagrantfile
Debug output
https://gist.github.com/robkorv/543c8d52c3292abe110ecdf19dcea768
Expected behavior
Box should be added and brought up.
Actual behavior
Got an error:
Steps to reproduce
vagrant init ubuntu/bionic64
vagrant up
vagrant box add hashicorp/bionic64
<-- similar errorThe text was updated successfully, but these errors were encountered: