invalid byte sequence in UTF-8; CentOS6.7; Vagrant1.8.1;

55 views
Skip to first unread message

Haowen Zhang

unread,
Mar 23, 2016, 12:06:36 PM3/23/16
to Vagrant
I've installed Vagrant 1.8.1 without any problem. When I run vagrant up, I get "invalid byte sequence in UTF-8" . I searched online and it says the error is due to locale issue. But my locale setting is en_us.UTF-8. See below locale output.

I also attached my Vagrantfile and also 'vagrant up --debug' output. 

The strangest thing is that I have another exact same setting machine. Same hardware, same OS. Yet the other one has no problem at all. 

Any help is appreciated.



[root@localhost]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
debug
Vagrantfile

Alvaro Miranda Aguilera

unread,
Mar 24, 2016, 1:15:14 AM3/24/16
to vagra...@googlegroups.com

On Thu, Mar 24, 2016 at 5:06 AM, Haowen Zhang <zhang...@gmail.com> wrote:
locale

Hello,

Whats the output of:

vagrant ssh -c "locale"
vagrant ssh -c "sh -l -c locale"
vagrant ssh -c "sudo locale"
vagrant ssh -c "sudo sh -l -c locale"

And can you try to share a zip file where one can try to reproduce this?

if Centos/7 is all good, perhaps is something on the scripts you are trying to run?

Thanks
alvaro.

Haowen Zhang

unread,
Mar 24, 2016, 2:06:48 AM3/24/16
to Vagrant
Thanks for your post. The output of vagrant ssh -c "locale" is at below. There's nothing else to zip in the folder except Vagrantfile. No Provision script. 

I had also tried hashicorp/precise64, ubuntu/trusty64. All have same error. So it's definitely not box problem.



LANG=en_US.UTF-8

LANGUAGE=

LC_CTYPE="en_US"

LC_NUMERIC="en_US"

LC_TIME="en_US"

LC_COLLATE="en_US"

LC_MONETARY="en_US"

LC_MESSAGES="en_US"

LC_PAPER="en_US"

LC_NAME="en_US"

LC_ADDRESS="en_US"

LC_TELEPHONE="en_US"

LC_MEASUREMENT="en_US"

LC_IDENTIFICATION="en_US"

LC_ALL=en_US

Reply all
Reply to author
Forward
0 new messages