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 box add' fail on Windows #2056

Closed
yandod opened this issue Aug 15, 2013 · 10 comments
Closed

'vagrant box add' fail on Windows #2056

yandod opened this issue Aug 15, 2013 · 10 comments

Comments

@yandod
Copy link

yandod commented Aug 15, 2013

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

@yandod
Copy link
Author

yandod commented Aug 15, 2013

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

@mitchellh
Copy link
Contributor

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.

@yandod
Copy link
Author

yandod commented Aug 29, 2013

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.

@vespakoen
Copy link

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)

@thedrow
Copy link

thedrow commented Dec 17, 2013

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

@mbaev
Copy link

mbaev commented Jan 25, 2016

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

@dmasikondo
Copy link

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

@mbaev
Copy link

mbaev commented Apr 6, 2017

@dmasikondo You're welcome)

@replaysMike
Copy link

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

@ghost
Copy link

ghost commented Apr 1, 2020

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.

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

No branches or pull requests

7 participants