hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.

Home Page:https://www.vagrantup.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incompatible character encodings: CP850 and ASCII-8BIT (Encoding::CompatibilityError)

rubone opened this issue · comments

In WIndows 8.1

Bringing machine 'default' up with 'virtualbox' provider...
[default] Box 'precise32' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading box from URL: http://files.vagrantup.com/precise32.box
C:/HashiCorp/Vagrant/embedded/gems/gems/childprocess-0.3.9/lib/childprocess/wind
ows/process_builder.rb:63:in `join': incompatible character encodings: CP850 and
 ASCII-8BIT (Encoding::CompatibilityError)
        from C:/HashiCorp/Vagrant/embedded/gems/gems/childprocess-0.3.9/lib/chil
dprocess/windows/process_builder.rb:63:in `create_environment_pointer'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/childprocess-0.3.9/lib/chil
dprocess/windows/process_builder.rb:28:in `start'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/childprocess-0.3.9/lib/chil
dprocess/windows/process.rb:63:in `launch_process'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/childprocess-0.3.9/lib/chil
dprocess/abstract_process.rb:72:in `start'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/u
til/subprocess.rb:105:in `block in execute'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/u
til/safe_chdir.rb:26:in `block (2 levels) in safe_chdir'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/u
til/safe_chdir.rb:25:in `chdir'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/u
til/safe_chdir.rb:25:in `block in safe_chdir'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/u
til/safe_chdir.rb:24:in `synchronize'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/u
til/safe_chdir.rb:24:in `safe_chdir'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.1/lib/vagrant/u
til/subprocess.rb:104:in `execute'

Same here !

Downloading box from URL: http://files.vagrantup.com/precise32.box
C:/HashiCorp/Vagrant/embedded/gems/gems/childprocess-0.3.9/lib/childprocess/wind
ows/process_builder.rb:63:in `join': incompatible character encodings: CP850 and
 ASCII-8BIT (Encoding::CompatibilityError)

+1.

It worked well just after the installation. Then I decided to vagrant destroy``the VM I was testing to try another one. When I wanted tovagrant up again with another box I ran into this issue. Trying the URL of the first one ended in the same error message.

First URL : https://dl.dropboxusercontent.com/u/9213047/arch64_2013-07-28.box
Second URL : https://dl.dropboxusercontent.com/u/6750592/Arch_Linux_2013.11_x64.box

Any news on this ?

EDIT:
Uninstalling and reinstalling Vagrant fixed the issue.

We had the same problem on a Windows 8 machine. The user had a non ASCII character in his username. Switching to an ASCII username fixed the problem..

This is the same as #2113 Closing this one for that.