LoginSignup
35
34

More than 5 years have passed since last update.

boxファイルのダウンロードに失敗し、「HTTP server doesn't seem to support byte ranges.」が表示され、やってみたこと

Last updated at Posted at 2015-08-11

vagrant box addする際に、インターネットからのダウンロードが途中で中断され…

==> default: Box download is resuming from prior download progress
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

HTTP server doesn't seem to support byte ranges. Cannot resume.

というような表示になり、インストールできない状態に。
時間を空けてvagrant box addしたり、boxファイルを追加せずにvagrant upしたりしたが、特に結果は変わらず。

でも、調べたら有用そうな情報が。

vagran up should not assume box URL supports resume | mitchellh / vagrant | GitHub

環境

OS: OSX Yosemite(10.10.4)
Vagrant 1.7.4

一時的なファイルを削除する

「この挙動は、一時的なフォルダが悪さをしているのでは?」と推測されたので、Vagrantのboxファイルなどが格納されるディレクトリからtmp的なディレクトリの中身を削除するのを試してみる。

ディレクトリの格納場所は~/.vagrant.d/tmp

cd ~/.vagrant.d/tmp
ls
    boxd27c916164364b2346afad1b2db78b8047723be2
rm boxd27c916164364b2346afad1b2db78b8047723be2

削除したら、もう一度。

vagrant box add <name, url>

やってみたら、できた。

気がかりな点

squiddle commented on 27 Feb

especially since binstore.hashicorp.com (where the atlas boxes come from) is not supporting Range requests.

えっ?

35
34
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
35
34