Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Installing a Ruby Development Environment Installing a Ruby Development Environment Installing the Treehouse VM on Mac

Douglas Marriott
Douglas Marriott
3,555 Points

Error with vagrant up command

I am getting an error after I install vagrant and input the code vagrant up. It says, "There was an error while executing 'VBoxManage', a CLI used by Vagrant for controlling VirtualBox. The command and stderr is show below....

Any ideas on why this is happening and how to get it installed??

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Interpreting /Users/Marriott/.vagrant.d/boxes/treehouse-rails4/0/virtualbox/box.ovf... OK. 0%...10%... Progress state: VBOX_E_FILE_ERROR VBoxManage: error: Appliance import failed VBoxManage: error: Could not create the clone medium '/Users/Marriott/VirtualBox VMs/Treehouse_1396320930267_88917/box-disk2.vmdk'. VBoxManage: error: VMDK: Compressed image is corrupted '/Users/Marriott/.vagrant.d/boxes/treehouse-rails4/0/virtualbox/box-disk2.vmdk' (VERR_ZIP_CORRUPTED) VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Appliance, interface IAppliance VBoxManage: error: Context: "int handleImportAppliance(HandlerArg*)" at line 779 of file VBoxManageAppliance.cpp

Douglas Marriott
Douglas Marriott
3,555 Points

The stderr error code is above

2 Answers

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Is there enough free space on the hard drive you're trying to run it on? And do you have permission to write to it?

James Barnett
James Barnett
39,199 Points

According to the log output you posted, it looks to me that the virtual disk file box-disk2.vmdk is corrupted, try re-downloading the files and trying again.