无法下载框 - '下载远程文件时发生错误。'

无法下载框 - '下载远程文件时发生错误。'

问题描述:

我试图下载一个框,碰到以下错误:无法下载框 - '下载远程文件时发生错误。'

snowch:~/Demo$ vagrant box add zyga/ubuntu-precise-desktop-i386 
==> box: Loading metadata for box 'zyga/ubuntu-precise-desktop-i386' 
    box: URL: https://atlas.hashicorp.com/zyga/ubuntu-precise-desktop-i386 
==> box: Adding box 'zyga/ubuntu-precise-desktop-i386' (v1.0) for provider: virtualbox 
    box: Downloading: https://vagrantcloud.com/zyga/boxes/ubuntu-precise-desktop-i386/versions/1.0/providers/virtualbox.box 
An error occurred while downloading the remote file. The error 
message, if any, is reproduced below. Please fix this error and try 
again. 

transfer closed with 1403398904 bytes remaining to read 

如果我试着用卷曲下载,我得到:

snowch:~/Demo$ curl --insecure -L -v https://vagrantcloud.com/zyga/boxes/ubuntu-precise-desktop-i386/versions/1.0/providers/virtualbox.box 
... 
* SSLv3, TLS alert, Client hello (1): 
* transfer closed with 1403398904 bytes remaining to read 
* Closing connection 1 
* SSLv3, TLS alert, Client hello (1): 
curl: (18) transfer closed with 1403398904 bytes remaining to read 

我的无业游民的版本是:

snowch:~/Demo$ vagrant --version 
Vagrant 1.7.3 

任何想法?

+1

我可以用同一个盒子和流浪汉1.7.2重现此。但我仍然可以从Atlas下载其他盒子。我认为盒子后面有一个破碎的二进制文件。 – blacklabelops

+0

感谢您尝试此操作并反馈您的结果。 –

您可以检查什么放浪与做:

export VAGRANT_LOG=debug 

我认为这可能是在图谱中的错误。我会ping hashicorp。

用来下载盒完整的命令看起来是这样的:

curl -q \ 
--fail \ 
--location \ 
--max-redirs 10 \ 
--user-agent Vagrant/1.7.2 \ 
--continue-at - \ 
--output test.box \ 
https://atlas.hashicorp.com/zyga/boxes/ubuntu-precise-desktop-i386/versions/1.0/providers/virtualbox.box