【发布时间】:2017-06-13 02:59:52
【问题描述】:
小问题
我目前正在尝试安装 Homestead。以下网址让我窒息而死
https://atlas.hashicorp.com/laravel/boxes/homestead/versions/2.1.0/providers/virtualbox.box
有没有其他方法可以下载上面的文件?
详情:
上面的文件下载被重定向到签名的 S3 url。出于大智慧,有 60 的超时 [也许在秒内] .. 所以在下载 10% 或 后,下载失败。
请看以下内容:
vagrant init laravel/homestead; vagrant up --provider virtualbox
...
==> default: Adding box 'laravel/homestead' (v2.1.0) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/2.1.0/providers/virtualbox.box
==> default: Box download is resuming from prior download progress
default:
An error occurred while downloading the remote file.
The error message, if any, is reproduced below.
Please fix this error and try again.
我尝试使用其他方式下载文件,例如通过浏览器或通过 curl。对上述 url 的调用会生成一个签名的 S3 链接,正如您在 I get the following url :: 中看到的那样,它的所有荣耀都有一个超时。
https://hc-prod-storagelocker.s3.amazonaws.com/boxes/5b64bd3b-eb87-4af4-9b2d-1c1560efca67?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJBKZ6DNPERBCPYKQ%2F20170613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170613T022000Z&X-Amz-Expires=60&X-Amz-SignedHeaders=host&X-Amz-Signature=0d13db989138a93b4ab82d18c4768b141e837d0c834654f73f5394e1cd04ce0e
即使我不是坐在一块石头下,但他们显然认为我应该有更快的速度,因此签名网址的有效期很短。
【问题讨论】:
-
您与提供链接的人交谈过吗?这比每次使用新的起始位置编写代码以 60 秒的块下载要容易得多。
-
我想过和他们谈谈 .. 我不知道该怎么做。这是我可以访问atlas.hashicorp.com/laravel/boxes/homestead 的链接,仅此而已。
-
你重试了吗?我可以毫无问题地下载盒子
-
哦,是的 - 我昨天重试了多次,今天早上又重试了两次。下载正常开始。平均而言,我确实从 880MB 中获得了多达 100MB 的文件,这取决于我的连接有多好......然后它就死了。
-
我最近的尝试是使用块 .. curl atlas.hashicorp.com/laravel/boxes/homestead/versions/2.1.0/… -r 0-1000000 -L -o ./homestead-1000000.box
标签: amazon-s3 vagrant homestead