Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vagrant up fails after aborted download #4479

Closed
shaicoleman opened this issue Sep 8, 2014 · 64 comments
Closed

vagrant up fails after aborted download #4479

shaicoleman opened this issue Sep 8, 2014 · 64 comments
Assignees
Milestone

Comments

@shaicoleman
Copy link

If a download is interrupted during "vagrant up", and the server doesn't support HTTP byte ranges, subsequent invocations of vagrant up will return the curl error "HTTP server doesn't seem to support byte ranges. Cannot resume.", exception: Vagrant::Errors::DownloaderError

Expected behavior:
If the server does not support byte ranges, the incomplete file should be deleted and retried.

Vagrant 1.6.5
Ubuntu 14.04 LTS
curl 7.35.0

@jschiessl
Copy link

I'm having the exact same issue with the exact same version of Vagrant under Windows 8.1. Had to go to .vagrant.d\tmp and delete the partial download.

@rayburgemeestre
Copy link

+1

@mcranwill
Copy link

+1, that solved my issue also

@temujin9
Copy link

temujin9 commented Oct 7, 2014

+1, same issue and resolution.

@VincentVToscano
Copy link

+1

1 similar comment
@gremdev
Copy link

gremdev commented Oct 12, 2014

+1

@mitchellh
Copy link
Contributor

This is pretty bad. Thanks for the catch.

@VincentVToscano
Copy link

No problem. Thanks for a great product.

@mitchellh
Copy link
Contributor

Fixed

@aidanmorgan
Copy link

I seem to be having this issue with the latest, it only seems to happen with HTTPS connections, HTTP works fine.

@davidkazuhiro
Copy link

This is still happening for me when using https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.1_x86_64.deb

david@david-VirtualBox:~/vagrant/centos6$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'relativkreativ/centos-6-minimal' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'relativkreativ/centos-6-minimal'
    default: URL: https://atlas.hashicorp.com/relativkreativ/centos-6-minimal
==> default: Adding box 'relativkreativ/centos-6-minimal' (v1.0.0) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/relativkreativ/boxes/centos-6-minimal/versions/1.0.0/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.
david@david-VirtualBox:~/vagrant/centos6$ vagrant -v
Vagrant 1.7.1

@cgood92
Copy link

cgood92 commented Jan 14, 2015

All you need to do is simply delete the temporary download file, which is located (in the Windows world) at: C:\Users<username>.vagrant.d\tmp*
After you delete it, you can re-run vagrant up and everything should work fine.

@anandjainjk
Copy link

That worked for me. Thanks

@sergiotapia
Copy link

Still an issue for me.

  • Vagrant 1.7.2
  • Mac OSX Yosemite

The download timed out, and then when I ran the vagrant up command again to download it says:

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

I think Vagrant should be smart enough to toss the tmp data for that image, if the response server does not support byte ranges. Thanks!

@atommyb
Copy link

atommyb commented Mar 18, 2015

For any Mac users:
Remove ~/.vagrant.d/tmp/ directory.
Then try 'vagrant up' again.

@brunodles
Copy link

This keeps ocurring.
On linux we must remove files using that command
rm ~/.vagrant.d/tmp/*
Then vagrant up again

@levlaz
Copy link

levlaz commented Jun 16, 2015

This is still an issue for me on Debian Testing (Stretch) with the latest Vagrant package installed 1.7.2+dfsg-4, removing from .vagrant.d/tmp resolves the issue for me.

@BrendanTWhite
Copy link

Same problem, same fix, when Updating 'laravel/homestead' with provider 'virtualbox' from version '0.2.6' to '0.2.7' under Yosemite 10.10.3.

@mitulgolakiya
Copy link

getting same problem with 'laravel/homestead' virtualbox for version 0.2.7 with Yosemite 10.10.4.

@BrendanTWhite
Copy link

@mitulgolakiya did you try rm ~/.vagrant.d/tmp/* and then vagrant up again? That fixed it for me when I had this issue.

@kazemisoroush
Copy link

+1 👍

@cesarcruzc
Copy link

Thanks!

@timozattol
Copy link

Happened to me after "ctrl+c"ing the process during a vagrant box update, since it was taking too long for my connection. Removing all temp files in vagrant.d resolved the problem though 👍
Thanks!

@ghost
Copy link

ghost commented Jul 23, 2015

+1 on deleting tmp files on mac

@danieljimenez
Copy link

+1 👍

@ascsoftware
Copy link

On Ubuntu 12.04 check for tmp files with: ls -al ~/.vagrant.d/tmp/
Then delete the image rm ~/.vagrant.d/tmp/boxf6d5788a461c7fff8e60ab85ed9732f64a77fa0f
And restart download process with vagrant up.
Worked on vagrant 1.7.3 and Virtualbox 5.0

@tedstein
Copy link

+1

@RossBarnie
Copy link

+1 Vagrant 1.7.4, OS X 10.10, deleting the tmp box "fixed" the issue but given the number of plusses above since the issue was closed it should perhaps be re-opened.

@robmarano
Copy link

+1 on deleting tmp files on mac. Find it in /Users/$USER/.vagrant.d/tmp. Thanks!

@ericrini
Copy link

ericrini commented Nov 2, 2015

This doesn't seem to be fixed.

@kentaguilar
Copy link

Still occurs on my end on OSX. Ran the following code.

rm ~/.vagrant.d/tmp/*
Then run the vagrant command again.

@livemixlove
Copy link

+1

1 similar comment
@bijanvakili
Copy link

+1

@anthonygreen
Copy link

"Still occurs on my end on OSX."
+1

@Gandem
Copy link

Gandem commented Nov 7, 2015

Delete .vangran.d/tmp/* worked for me. The error still occurs on Windows 10

@JBusch
Copy link

JBusch commented Nov 9, 2015

+1 on Windows 10

@chrisgame
Copy link

Have you guys tried vagrant box add <box name> --clean. The fix would be better but at least this way you don't have to go digging around for files.

@nprokopic
Copy link

+1 for removing a partial download from ~/.vagrant.d/tmp.

Vagrant 1.7.4, OS X 10.10.4

@davidyell
Copy link

I just found this issue by googling for the error. I can see I'm not alone. I'm using 1.7.4 on OSX.

@sethvargo sethvargo reopened this Nov 12, 2015
@sethvargo sethvargo added this to the 1.8 milestone Nov 12, 2015
@ludo237
Copy link

ludo237 commented Nov 16, 2015

+1 the patch works for OSX 10.11.2 Beta (15C40a) with Vagrant 1.7.4

@pfuhrmann
Copy link

Same issue with the 1.7.4 on Linux Mint 17.2

@mitchellh mitchellh self-assigned this Nov 20, 2015
@mitchellh
Copy link
Contributor

Reproduced, taking a look.

@mitchellh
Copy link
Contributor

Fixed

@davidrichied
Copy link

Same issue on Mac OSX 10.9. Deleting the files in .vagrant.d/tmp/ fixed the issue.

@pfuhrmann
Copy link

@davidrichied @gonciarz do you have latest gem built from git? Fix is scheduled for 1.8 release I believe.

@davidrichied
Copy link

@pfuhrmann I do not believe I do. I downloaded Vagrant, version 1.7.4, from https://www.vagrantup.com/downloads.html

@omurphy27
Copy link

+1

This just happened to me and I solved it by doing rm ~/.vagrant.d/tmp/*

On Mac OS X El Capitan 10.11.2 (15C50) and Vagrant 1.7.4

@RossBarnie
Copy link

@nirajbothra This has been fixed in Vagrant 1.8.1, you should upgrade to resolve the problem.

@ghost
Copy link

ghost commented Mar 7, 2016

This just happened for me on Windows using 1.7.4. cgood92's comment worked for me.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 7, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests