Closed ken-colvin closed 9 years ago
This is a weidr error that looks like it is coming from curl
(which ships with Vagrant):
"Error: error:0307A071:bignum routines:BN_rand_range:too many iterations"
I tried it myself and I'm not getting this error. Without a reproduction case we're not going to be able to fix this? I hope someone can come in and provide more input.
This also might be related to #5001. We'll change the certs for 1.7.2 and see what happens. Otherwise, I don't think this can be fixed... we need more info.
Thanks for the quick reply. That customer satisfaction is what makes you rise above the rest :)
As a work around I can do a "vagrant box add name URL". What is the URL to download the box? For example, what is the full URL for the boxes in https://atlas.hashicorp.com/boxes/search, if I want to use https://atlas.hashicorp.com/ubuntu/boxes/trusty64 then what is the full domain so I can add the box?
vagrant box add trusty64 http://{URL}/ubuntu/trusty64.box
Likewise, vagrant box add name http://{URL.com}/hashicorp/precise32.box
The url to add is
vagrant box add precise32 https://vagrantcloud.com/hashicorp/boxes/precise32/versions/1.0.0/providers/virtualbox.box
all that in one line.
however, curl will be the same, so you should hit the same issue.
Thanks. Can you please post url for ubuntu/trusty64. Also, is there a list of URL's for these vagrant boxes so one can do a vagrant box add "name" URL
Hello, try to troubleshoot first, useful to get a clear idea what is wrong..you need adjust the path to the Windows .. find the curl binary somewhere in c:\hashicorp\vagrant
Command will be something like this:
c:\hashicorp\vagrant\embedded\bin\curl -o virtualbox.box -L https://vagrantcloud.com/hashicorp/boxes/precise32/versions/1.0.0/prov iders/virtualbox.box
if you get an error by certificate.. try add -k but paste all the output..
url for precise 64 are these:
{"name":"hyperv","url":"https://vagrantcloud.com/hashicorp/boxes/precise64/versions/1.1.0/providers/hyperv.box"},
{"name":"vmware_fusion","url":"https://vagrantcloud.com/hashicorp/boxes/precise64/versions/1.1.0/providers/vmware_fusion.box"},
{"name":"virtualbox","url":"https://vagrantcloud.com/hashicorp/boxes/precise64/versions/1.1.0/providers/virtualbox.box"}
I appreciate you trying to help here. Do you have the URL's for ubuntu/trusty64 box
@devalphabeta the box URLs are predictable - they are just:
https://vagrantcloud.com/USERNAME/boxes/BOXNAME/versions/VERSION/providers/PROVIDER.box
Did anyone find a solution for error:0307A071?
Are you running on an AMD processor?
Yes, I'm running AMD A8-6410 APU processor
@kmseverin it's actually a Kernel bug: https://bugzilla.kernel.org/show_bug.cgi?id=85911
@devalphabeta can you confirm you are running AMD as well?
Yes it is AMD
@devalphabeta okay. This is a kernel bug, and unfortunately there is nothing we can do to fix it /cc @mitchellh
I'm getting similar error on Linux Mint 17 Qiana! Providing explicit URL works but just name doesn't:
$ vagrant init hashicorp/precise32
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The box 'hashicorp/precise32' could not be found.
The CPU is Intel Core i7! I suspected some network errors but ngrep did not catch any request!
Getting a similar error on Windows 10 (tech preview), Intel i7 cpu
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'ubuntu/trusty64' could not be found or
could not be accessed in the remote catalog. If this is a private
box on Vagrant Cloud, 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://vagrantcloud.com/ubuntu/trusty64"]
Error: SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html
@azzazzel the error you are getting is different than the one in this issue. The key phrase is Error: error:0307A071:bignum routines:BN_rand_range:too many iterations
and I do not see that in your output. Could you please open a new issue and include the Vagrant debug output
@benjick your issue seems related to CA certificates. Please make sure you are running the latest version of Vagrant for Windows. You may also be encountering an installer bug.
Thanks @sethvargo! As per your request I created #5231
Has a solution been found? I am getting this error : error:0307A071:bignum routines:BN_rand_range:too many iterations
On a machine running win 7 I have no problems but on another one that is running windows 8 with vagrant 1.7.2 I can't get any boxes. Even if I try do add the box it doesn't work.
The box url is: https://vagrantcloud.com/janschumann/boxes/debian-7/versions/7.8.0.0/providers/virtualbox.box
This is perfectly accessible and valid url but I still get the error
So I tried to get hashicorp/precise64 with --debug. This is what I got (just pasting what I assume are the more important parts):
INFO downloader: HEAD: https://vagrantcloud.com/hashicorp/precise64
INFO subprocess: Starting process: ["C:\\HashiCorp\\Vagrant\\embedded\\bin/curl
.EXE", "-I", "-q", "--fail", "--location", "--max-redirs", "10", "--user-agent",
"Vagrant/1.6.5", "--continue-at", "-", "-H", "Accept: application/json", "https
://vagrantcloud.com/hashicorp/precise64"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr: % Total % Received % Xferd Average Speed Time
Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) error:0307A071:bignum routines:BN_rand_range:too many iterations
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999
DEBUG subprocess: Exit status: 35
WARN downloader: Downloader exit code: 35
ERROR warden: Error occurred: The box 'hashicorp/precise64' could not be found o
r
There seems to be an issue with curl but I am not using the latest version. I have downgraded to 1.6.5. So I assume there is something wrong with curl on win 8.
Is there a way to bypass this problem?? I am unable to use vagrant.
Help????
I fixed this issue by replacing the curl.exe in the folder C:\HashiCorp\Vagrant\embedded\bin. I got curl (for win64 with ssl) from: http://curl.haxx.se/latest.cgi?curl=win64-ssl-sspi
I'm also seeing this error. I just installed vagrant on OS X for the first time today and copy/pasted the command out of the docs:
$ vagrant box add hashicorp/precise64
The box 'hashicorp/precise64' 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/hashicorp/precise64"]
Error:
This should do it (all in one line)
vagrant box add precise64 https://vagrantcloud.com/hashicorp/boxes/precise64/versions/1.1.0/providers/virtualbox.box
Does someone have a solution or workaround for the "Error: error:0307A071:bignum routines:BN_rand_range:too many iterations" problem?
I purchased a new laptop and getting this same damn error.
Does anyone know how to manually download the box https://atlas.hashicorp.com/laravel/boxes/homestead (using ftp, curl, wget, ...) and setup the Vagrantfile to use the local copy?
Thanks AntonioCS I also fixed this issue by replacing the curl.exe in the folder C:\HashiCorp\Vagrant\embedded\bin. I got curl (for win64 with ssl) from: http://curl.haxx.se/latest.cgi?curl=win64-ssl-sspi
I am on AMD64 processor
Thanks ashishbatra that totally worked. Wish Vagrant would write down this solution so everyone who has an AMD will not got through this time consuming process.
The way conikeec works for me on a Mac OS: vagrant box add precise64 https://vagrantcloud.com/hashicorp/boxes/precise64/versions/1.1.0/providers/virtualbox.box
The machine with the name 'hashicorp/precise32' was not found configured for this Vagrant environment.
:neckbeard: I solved this by: vagrant up vagrant global-status vagrant up bc7940e
Thank you AntonioCS and ashishbatra, replacing the curl executable worked for me too.
Thanks Antonio and ashishbatra! You saved me a lot of headache!
The curl from msys Git-1.9.5-preview20150319 also works.
$ /C/HashiCorp/Vagrant/embedded/bin/badcurl.exe -V
curl 7.29.0 (i386-pc-win32) libcurl/7.29.0 OpenSSL/1.0.1c zlib/1.2.7
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM SSL libz
$ curl -V
curl 7.41.0 (i386-pc-win32) libcurl/7.41.0 OpenSSL/0.9.8zf zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz
On OSX Yosemite do a brew install curl
. Then vagrant up
should work again.
If not, then make sure to clear or set these environment variables as well: http_proxy, https_proxy, ALL_PROXY, HTTP_PROXY, HTTPS_PROXY, VAGRANT_HTTP_PROXY
.
If still no progress you could fiddle around with the vagrant-proxyconf
plugin. All three issues I did experience.
Following commands fixed the problem with vagrant 1.7.2
brew install curl
export DYLD_INSERT_LIBRARIES=
I've placed the curl
file in the embedded/bin folder and it didn't work for me. I've also reset all the env vars that @nottinhill has recommended.
Currently on Windows 8.1. PC is a 64 bit machine running on Intel i3.
Thank you AntonioCS and ashishbatra. The curl replace fixed the issue
I'm on Windows 10 and ran into the same error. I had to update the curl.exe like AntonioCS said. Also, I had to get msvcs100.dll from http://www.microsoft.com/en-us/download/details.aspx?id=13523 (for 64 bit).Then I was able to verify that the curl.exe works by trying
curl.exe -I -s http://www.google.com
after which vagrant up also worked.
Same error on Ubuntu, I did
--> and this is what I have...
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The box 'hashicorp/precise32' could not be found.
@AntonioCS Thank you, your solution work for me!
I fixed this issue by replacing the curl.exe in the folder C:\HashiCorp\Vagrant\embedded\bin. I got curl (for win64 with ssl) from: http://curl.haxx.se/latest.cgi?curl=win64-ssl-sspi
@AntonioCS Thank you, your solution was awesome. It worked great!!!
@AntonioCS Thank you, your solution work for me!
I fixed this issue by replacing the curl.exe in the folder C:\HashiCorp\Vagrant\embedded\bin. I got curl (for win64 with ssl) from: http://curl.haxx.se/latest.cgi?curl=win64-ssl-sspi
For anyone else having an issue adding a box. It's possible that there's nothing wrong with the curl.exe provided by Vagrant, but rather, you do not have the Visual C++ 2010 Redistributable installed on your system.
I had this same issue after installing Vagrant on a fresh Windows 10 x64 machine.
You can download the Visual C++ 2010 Redistributable (x86 version) directly from MS here: https://www.microsoft.com/en-us/download/details.aspx?id=26999
After installing that, I was successfully able to add vagrant boxes.
For Ubuntu people : fixed using last version (1.8.1) Download the Debian package (64 bits in my case) and use 'dpkg'
cgons, you are right. Thank you!
Same here, replacing curl.exe works fine ( running on Windows 10, Proc I7)
@cgons, Thank you! You helped me solve the problem. I am running on Windows 7.
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/trusty32' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'ubuntu/trusty32' 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/trusty32"] Error:
(Getting this error while running vagrant on a windows 10 machine.)
if you are using windows 10 , go to embeded/bin and type curl in my case the error shown was: MSvcr100.dll is missing . in order to fix it I downloaded curl with SSL support from the official website and copied the binary to the folder embeded/bin. It worked like a charm Regards
I solved this problem by downloading Curl here http://www.paehl.com/open_source/?download=curl_747_1_ssl.zip (Win 7 x86)
extract in C:\HashiCorp\Vagrant\embedded\bin
I can confirm that @cgons's solution works.
I had this same issue after installing Vagrant on a fresh Windows 10 x64 machine.
You can download the Visual C++ 2010 Redistributable (x86 version) directly from MS here: https://www.microsoft.com/en-us/download/details.aspx?id=26999
I followed the instructions on vagrantup.com but a box is not being downloaded.
On Windows 8.1
This is driving me nuts, please help.
see https://docs.vagrantup.com/v2/getting-started/index.html
I run the commands: $ vagrant init hashicorp/precise32 $ vagrant up I then get the following error:
Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'hashicorp/precise32' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 The box 'hashicorp/precise32' 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/hashicorp/precise32"] Error: error:0307A071:bignum routines:BN_rand_range:too many iterations