I had an error when running vagrant as documented on the frontpage. I think it's related to my account name that has unicode:
/home/anarcat/vagrant/projects/1.x-test/.config/config.rb:10: invalid multibyte char (US-ASCII)
/home/anarcat/vagrant/projects/1.x-test/.config/config.rb:10: syntax error, unexpected $end, expecting '}'
"git_name" => "Antoine Beaupré",
I am not sure how to fix this. Here is the full log.
anarcat@marcos:~$ drush vagrant-build --blueprint=aegir
This appears to be your first time running Drush Vagrant or your user settings (~/.drushrc.php) have been deleted.
Drush Vagrant Integration requires those settings in order to function properly.
Proceed? (y/n): y
The following settings will be added to your ~/.drushrc.php:
username .............. anarcat
user id ............... 1000
group id .............. 1000
Git username .......... Antoine Beaupré
Git email ............. anarcat@koumbit.org
User's home directory . /home/anarcat
Projects directory .... /home/anarcat/vagrant/projects
.profile(dotfiles) .... /home/anarcat/.profile
.bashrc(dotfiles) ..... /home/anarcat/.bashrc
.vimrc(dotfiles) ...... /home/anarcat/.vimrc
public(ssh_keys) ...... /home/anarcat/.ssh/id_rsa.pub
private(ssh_keys) ..... /home/anarcat/.ssh/id_rsa
Are these settings correct? (y/n): y
The directory you specified for your projects (/home/anarcat/vagrant/projects) does not appear to exist. Create it now?:
The directory you specified for your projects (/home/anarcat/vagrant/projects) does not appear to exist. Create it now?: y
The name of your project may be used in URLs, and so should only contain lower-case letters and numbers.
It may also contain hyphens (-) and dots (.), so long as they do not come at the beginning or end of the name.
What would you like to call your project?: 1.x-test
Would you like to generate entries in /etc/hosts for the VMs in your project? (y/n): n
Would you like to generate Drush aliases for your project? (y/n): y
You are about to:
* Create a new project called "1.x-test" at "/home/anarcat/vagrant/projects/1.x-test".
* Generate Drush aliases for the project and VMs.
* Launch the project VMs immediately.
* Build the project using the "aegir" blueprint from the "aegirup" extension.
Do you want to proceed with initializing the project? (y/n): y
Copied the "aegir" blueprint directory to /home/anarcat/vagrant/projects/1.x-test. [ok]
Created symlink to Vagrantfile. [ok]
Created symlink to .gitignore. [ok]
Created the ".config" directory in /home/anarcat/vagrant/projects/1.x-test. [ok]
Wrote "blueprint.inc" to /home/anarcat/vagrant/projects/1.x-test/.config. [ok]
Successfully wrote config.rb [ok]
Copied your .profile into the project [ok]
Copied your .bashrc into the project [ok]
Copied your .vimrc into the project [ok]
Initialized empty Git repository in /home/anarcat/vagrant/projects/1.x-test/.git/
[master (root-commit) 79de802] Initial commit.
3 files changed, 19 insertions(+)
create mode 100644 manifests/nodes.pp
create mode 100644 manifests/site.pp
create mode 100644 settings.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/anarcat/vagrant/projects/1.x-test/.config/config.rb:10: invalid multibyte char (US-ASCII) (SyntaxError)
/home/anarcat/vagrant/projects/1.x-test/.config/config.rb:10: invalid multibyte char (US-ASCII)
/home/anarcat/vagrant/projects/1.x-test/.config/config.rb:10: syntax error, unexpected $end, expecting '}'
"git_name" => "Antoine Beaupré",
^
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/anarcat/vagrant/projects/1.x-test/Vagrantfile:2:in `block in <top (required)>'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:83:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:83:in `block (2 levels) in load'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:79:in `each'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:79:in `block in load'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:76:in `each'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:76:in `load'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:387:in `block in load_config!'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:392:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:392:in `load_config!'
from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:327:in `load!'
from /usr/bin/vagrant:40:in `<main>'
Invalid argument supplied for foreach() project_alias.tpl.php:19 [warning]
Invalid argument supplied for foreach() project_alias.tpl.php:19 [warning]
Wrote project aliases file to /home/anarcat/.drush/1.x-test.aliases.drushrc.php. [ok]
Your project was successfully initialized.
The root for your project is "/home/anarcat/vagrant/projects/1.x-test"
The subnet for your project has been set to 192.168.10.0, and an initial entry in your /etc/hosts file written.
You can now: * Alter the behaviour of your project by editing /home/anarcat/vagrant/projects/1.x-test/settings.rb.
* Redefine the VM(s) by editing the Puppet manifest(s) in /home/anarcat/vagrant/projects/1.x-test/manifests.
* Add additional Puppet modules by copying them to /home/anarcat/vagrant/projects/1.x-test/modules.
Comments
Comment #1
helmo commentedThe quoting of "git_name" seems ok, so is ruby not handling unicode by default???
Maybe this magic comment would help:
http://stackoverflow.com/questions/1739836/invalid-multibyte-char-us-asc...