petewarden / dstk

A collection of the best open data sets and open-source tools for data science
http://www.datasciencetoolkit.org/
1.12k stars 186 forks source link

Vagrant VM download failure #36

Open seanknox opened 10 years ago

seanknox commented 10 years ago

Hi, I tried to download the Vagrant VM but received this error:

$ vagrant box add dstk http://where.jetpac.com.s3.amazonaws.com/dstk_0.51.box                                                   
Downloading or copying the box...
Extracting box...te: 2512k/s, Estimated time remaining: 0:00:01)
The box failed to unpackage properly. Please verify that the box
file you're trying to add is not corrupted and try again. The
output from attempting to unpackage (if any):

x box-disk1.vmdk: Write failed
x box.ovf: Write to restore size failed
x include: Write to restore size failed
x include/_Vagrantfile: Write to restore size failed
x Vagrantfile: Write to restore size failed
bsdtar: Error exit delayed from previous errors.
petewarden commented 10 years ago

Sorry about that Sean! Let me dig out the location that the box should be downloaded to, and we can compare file sizes, etc, to see if the download got messed up. Are you on OS X?

petewarden commented 10 years ago

If you are on OS X, this command should open up the hidden Vagrant cache folder:

open ~/.vagrant.d/

Could you have a look at the size of the contents of the dstk folder using a command like this?

ls -la ~/.vagrant.d/boxes/dstk

The expected values are these:

drwxr-xr-x  6 petewarden  staff          204 Oct  2 23:31 .
drwxr-xr-x  8 petewarden  staff          272 Nov 13 14:54 ..
-rw-r--r--  1 petewarden  staff          505 Oct  2 23:31 Vagrantfile
-rw-------  1 petewarden  staff  21309656576 Oct  2 23:31 box-disk1.vmdk
-rw-------  1 petewarden  staff        14171 Oct  2 23:31 box.ovf
drwxr-xr-x  3 petewarden  staff          102 Oct  2 23:31 include
seanknox commented 10 years ago

Hey Pete, I'm on OS X (Mavericks if it matters). Looks like something went awry during the download/unpacking phase(s), as my ~/.vagrant.d/boxes/ folder is empty. Perhaps Vagrant cleaned up after itself? I'm now manually downloading box-disk1.vmdk (using curl) and will try to bring the box up post download.

seanknox commented 10 years ago

Figured out the issue. I ran out of disk space. When you run vagrant box add dstk [box image] Vagrant copies the box image to your .vagrant.d folder; this is true whether you download the image via HTTP or point vagrant to a local copy. So even though I have a local copy of DSTK image, Vagrant is still copying it over to .vagrant.d/tmp.

Not sure if there's a way to tell Vagrant to not copy the image file over again, and instead just use it. In the meantime, I'm going to throw the image on an external HD I have and give it another shot as then I'll actually have space on my computer.

BTW, Eric Theise pitched the DSTK at the Stamen Maptime event. :)

teone commented 9 years ago

You can also change the vagrant home with this env variable:

export VAGRANT_HOME=/your/path

as stated here

Thanks @seanknox your post put me in the right direction