Vagrant: 'vagrant box add' fail on Windows

Created on 15 Aug 2013  ยท  10Comments  ยท  Source: hashicorp/vagrant

When adding box with vagrant box add path_to_box is failing on WindowsXP.

Downloading or copying the box...
[0KAn error occurred while downloading the remote file. The error--:--)
message, if any, is reproduced below. Please fix this error and try
again.

Failed writing body (0 != 16383)

Is there some work around for this?
version of vagrant is 1.2.7

Most helpful comment

Just example for Windows 7/8. Write it in console:
set VAGRANT_HOME=C:Program Files (x86)Vagrant

All 10 comments

we got diagnosys.
the windows user name contains multi byte. then vagran box add always fails.

Hey @yandod! Unfortunately this looks like a problem with cURL. We use cURL under the covers, so we're just subprocessing out there. :( Not sure if I can do anything about this. If I can, let me know and I'd be happy to fix.

In this case, setting VAGRANT_HOME to outside users's home directory solved issue as well.
I will share once found more smart solution. Thanks.

I just encountered this too, I installed vagrant via a configuration manager and forgot to assign the correct user and group, causing the .vagrant.d folder to be owned by root.

sudo chown youruser:youruser -R ~/.vagrant.d

should do the trick (replace youruser with the actual username)

@vespakoen You saved my ass. This should be documented somewhere.

Just example for Windows 7/8. Write it in console:
set VAGRANT_HOME=C:Program Files (x86)Vagrant

mbaev you are a life saver thank you. Had spent sleepless nights failing todownload the Laravel Homestead box on windows 7

@dmasikondo You're welcome)

Just a note - I received this same error when I was out of drive space on the drive vagrant was installed to. Was confusing.

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cbednarski picture cbednarski  ยท  3Comments

RobertSwirsky picture RobertSwirsky  ยท  3Comments

lebogan picture lebogan  ยท  3Comments

jsirex picture jsirex  ยท  3Comments

barkingfoodog picture barkingfoodog  ยท  3Comments