Prevent Vagrant from resuming a download
December 6, 2014 10 Comments
Have you come across this nagging error when you attempt to resume a failed download ?
==> default: Box ‘udacity/ud381’ could not be found. Attempting to find and install…
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box ‘udacity/ud381’
default: URL: https://vagrantcloud.com/udacity/ud381
==> default: Adding box ‘udacity/ud381’ (v0.0.5) for provider: virtualbox
default: Downloading: https://vagrantcloud.com/udacity/boxes/ud381/versions/0.0.5/providers/virtualbox.box
==> 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.
One has to delete the partially downloaded box file.
Mohans-MacBook-Pro:ud381 radhakrishnan$ rm ~/.vagrant.d/tmp/*
thanks
but what to do if I am having a same problem in ubuntu 12.04
Why don’t you delete the partial file ? Your problem may be different though.
where is the partial file location in ubuntu ?
This is a month late, but to anyone coming across this site wondering the same thing:
The partial file location in Ubuntu is exactly where it says above.
~/.vagrant.d/tmp/(some long hash)
what about instalation in windows 8, how can I remove this the partially downloaded box file ?
You can find your downloaded boxes here…C:\Users\YourUsername\.vagrant.d\boxes
The temporary folder is…C:\Users\YourUsername\.vagrant.d\boxes\tmp
For windows, you can run this command
> rmdir %vagrant_home%\tmp /S
Pingback: Vagrant error “HTTP server doesn’t seem to support byte ranges” on Windows | Deltacode Blog
to fix in windows go to
The temporary folder which is at…C:\Users\YourUsername\.vagrant.d\boxes\tmp and delete the file named as box9d3745126fd73b8ec0695fd8a5de37502173c07a(something like this) but next time download will start from begining.