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 not working on Japanese Windows OS - Encoding problem #10801

Closed
JordanJapan opened this issue Apr 20, 2019 · 8 comments
Closed

Vagrant not working on Japanese Windows OS - Encoding problem #10801

JordanJapan opened this issue Apr 20, 2019 · 8 comments
Assignees
Milestone

Comments

@JordanJapan
Copy link

Vagrant version

2.2.4

Host operating system

Windows 8.1 (Japanese)

Debug output 1

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/trusty64'...
C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/childprocess-0.6.3/lib/childprocess/windows/process_builder.rb:43:in `join': incompatible character encodings: Windows-31J and UTF-8 (Encoding::CompatibilityError)

Debug output 2

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/trusty64'...
C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/providers/virtualbox/driver/base.rb:408:in `block in execute': invalid byte sequence in UTF-8 (ArgumentError)

Description

I'm new to using this and I was following a video online. However, when I got the step of using vagrant up, I got an encoding error (debug 1). After looking around, I tried changing command prompt's code page to 65001 from 932. Unfortunately, a new error occurred (debug 2)

Is there a clean and simple solution to just make it work or even better automatically set the encoding as needed? Thanks.

@briancain
Copy link
Member

Hey there @JordanJapan - could you please provide the full output of running vagrant up --debug in a gist? Thanks!

@JordanJapan
Copy link
Author

Hello. Thanks for the reply.

When I tried that command a lot of output appeared and I couldn't copy it all. I was looking for a way to try outputting the entire log to a file, but with command prompt it refuses to do so even with the redirect command.

vagrant up --debug > c:\file.txt

It only copies the first 2 lines of the debug output. Is there another way to output to a log file in Windows? Thanks in advance.

@briancain
Copy link
Member

@JordanJapan - you should be able to do something like....

vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant.log"

Hopefully that works!

@JordanJapan
Copy link
Author

Alright. The above command wasn't working in command prompt, but I installed Power Shell after reading about it and I got a file this time. Same errors still occur, however.

I attached the .txt file with the complete output.

Thanks for taking the time to help.

log.txt

@briancain briancain added this to the 2.2.5 milestone May 2, 2019
@briancain
Copy link
Member

Thanks for the information! I will put this issue in our next milestone so that we can try to fix it in the next release. ❤️

@voxik
Copy link
Contributor

voxik commented Jun 5, 2019

Isn't childprocess 1.x the solution?

enkessler/childprocess#134

@briancain briancain modified the milestones: 2.2.5, 2.2.6 Jul 10, 2019
@chrisroberts chrisroberts modified the milestones: 2.2.7, 2.2.8 Jan 30, 2020
@chrisroberts chrisroberts modified the milestones: 2.2.8, 2.2.9 Mar 25, 2020
@soapy1 soapy1 self-assigned this Mar 31, 2020
@soapy1
Copy link
Contributor

soapy1 commented Apr 2, 2020

Hey there,
thanks for submitting this issue. I've tried to recreate this on a windows 10 machine with no success. It seems like there is some extra support for language encodings that aren't available on windows 8. Closing this issue but if this is still a problem or updating to windows 10 does not resolve this please open a new issue.

@soapy1 soapy1 closed this as completed Apr 2, 2020
@ghost
Copy link

ghost commented May 3, 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 May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants