kpdp is experiencing errors while attempting to run vagrant up to set up Discourse. The initial failure occurred during the VMDK import process, with VirtualBox reporting that the compressed image was corrupted (VERR_ZIP_CORRUPTED). Despite attempting to delete and re-download the box file, kpdp continued to face download interruptions and errors. Additionally, a manual download attempt using wget failed because the original Dropbox link resulted in a 404 Not Found error after downloading 1.34GB of the 1.5GB file. In response, claas suggested trying a workaround discussed in a separate thread regarding HTTP stream closing errors: vagrant up fails with http-2 stream was not closed cleanly.
I’m trying to setup discourse with vagrant, but fails with the below error. Please help me on this.
==> default: Importing base box 'discourse-16.04'...
Progress: 80%There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["import", "/home/kpdp/.vagrant.d/boxes/discourse-16.04/0/virtualbox/box.ovf", "--vsys", "0", "--vmname", "discourse_default_1464875804802_71522_1487047744224_21715", "--vsys", "0", "--unit", "11", "--disk", "/home/kpdp/VirtualBox VMs/discourse_default_1464875804802_71522_1487047744224_21715/box-disk1.vmdk"]
Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /home/kpdp/.vagrant.d/boxes/discourse-16.04/0/virtualbox/box.ovf...
OK.
0%...10%...20%...30%...40%...50%...60%...70%...80%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Appliance import failed
VBoxManage: error: Could not create the imported medium '/home/kpdp/VirtualBox VMs/discourse_default_1464875804802_71522_1487047744224_21715/box-disk1.vmdk'.
VBoxManage: error: VMDK: Compressed image is corrupted '/home/kpdp/.vagrant.d/boxes/discourse-16.04/0/virtualbox/box-disk1.vmdk' (VERR_ZIP_CORRUPTED)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component ApplianceWrap, interface IAppliance
VBoxManage: error: Context: "RTEXITCODE handleImportAppliance(HandlerArg*)" at line 877 of file VBoxManageAppliance.cpp