Created
May 25, 2012 20:08
-
-
Save tybenz/2790305 to your computer and use it in GitHub Desktop.
vagrant error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\tbenzige\Projects\fast-five> | |
C:\Users\tbenzige\Projects\fast-five>vagrant reload | |
[default] Attempting graceful shutdown of VM... | |
[default] Clearing any previously set forwarded ports... | |
[default] Forwarding ports... | |
[default] -- 22 => 2222 (adapter 1) | |
[default] Creating shared folders metadata... | |
[default] Clearing any previously set network interfaces... | |
[default] Preparing network interfaces based on configuration... | |
[default] Booting VM... | |
[default] Waiting for VM to boot. This can take a few minutes. | |
[default] VM booted and ready for use! | |
[default] Configuring and enabling network interfaces... | |
[default] Mounting shared folders... | |
[default] -- v-root: /vagrant | |
[default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks | |
[default] Running provisioner: Vagrant::Provisioners::ChefSolo... | |
[default] Generating chef JSON and uploading... | |
[default] Running chef-solo... | |
stdin: is not a tty | |
[Fri, 25 May 2012 20:07:21 +0000] INFO: *** Chef 0.10.8 *** | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Setting the run_list to ["recipe[rails-template]"] from JSON | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Run List is [recipe[rails-template]] | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Run List expands to [rails-template] | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Starting Chef Run for precise64 | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Running start handlers | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Start handlers complete. | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[postgresql-client] action install (postgresql::client line 37 | |
) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[libpq-dev] action install (postgresql::client line 37) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[make] action install (postgresql::client line 37) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing gem_package[pg] action install (postgresql::client line 42) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[postgresql-client] action nothing (postgresql::client line 37 | |
) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[libpq-dev] action nothing (postgresql::client line 37) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[make] action nothing (postgresql::client line 37) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing gem_package[pg] action nothing (postgresql::client line 42) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[postgresql] action install (postgresql::server_debian line 31 | |
) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing service[postgresql] action nothing (postgresql::server_debian line 33 | |
) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/postgresql/9.1/main/postgresql.conf] action create (pos | |
tgresql::server_debian line 56) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/postgresql/9.1/main/pg_hba.conf] action create (postgre | |
sql::server line 46) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing bash[assign-postgres-password] action run (postgresql::server line 58 | |
) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[apache2] action install (apache2::default line 20) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing service[apache2] action enable (apache2::default line 25) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing directory[/etc/apache2/ssl] action create (apache2::default line 135) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing directory[/etc/apache2/conf.d] action create (apache2::default line 1 | |
42) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing directory[/var/cache/apache2] action create (apache2::default line 14 | |
9) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[apache2.conf] action create (apache2::default line 156) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[security] action create (apache2::default line 172) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[charset] action create (apache2::default line 182) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/apache2/ports.conf] action create (apache2::default lin | |
e 192) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/apache2/sites-available/default] action create (apache2 | |
::default line 201) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/apache2/mods-available/status.conf] action create (apac | |
he2::mod_status line 21) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod status] action run (apache2::mod_status line 38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/apache2/mods-available/alias.conf] action create (apach | |
e2::mod_alias line 21) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod alias] action run (apache2::mod_alias line 38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod auth_basic] action run (apache2::mod_auth_basic line | |
38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod authn_file] action run (apache2::mod_authn_file line | |
38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod authz_default] action run (apache2::mod_authz_default | |
line 38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod authz_groupfile] action run (apache2::mod_authz_group | |
file line 38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod authz_host] action run (apache2::mod_authz_host line | |
38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod authz_user] action run (apache2::mod_authz_user line | |
38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/apache2/mods-available/autoindex.conf] action create (a | |
pache2::mod_autoindex line 21) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod autoindex] action run (apache2::mod_autoindex line 38 | |
) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/apache2/mods-available/dir.conf] action create (apache2 | |
::mod_dir line 21) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod dir] action run (apache2::mod_dir line 38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod env] action run (apache2::mod_env line 38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/apache2/mods-available/mime.conf] action create (apache | |
2::mod_mime line 21) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod mime] action run (apache2::mod_mime line 38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/apache2/mods-available/negotiation.conf] action create | |
(apache2::mod_negotiation line 21) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod negotiation] action run (apache2::mod_negotiation lin | |
e 38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/apache2/mods-available/setenvif.conf] action create (ap | |
ache2::mod_setenvif line 21) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod setenvif] action run (apache2::mod_setenvif line 38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing service[apache2] action start (apache2::default line 216) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[build-essential] action install (build-essential::default lin | |
e 23) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[binutils-doc] action install (build-essential::default line 2 | |
3) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[autoconf] action install (build-essential::default line 35) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[flex] action install (build-essential::default line 39) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[bison] action install (build-essential::default line 43) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[apache2-prefork-dev] action upgrade (passenger_apache2::defau | |
lt line 42) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[libapr1-dev] action upgrade (passenger_apache2::default line | |
42) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing package[libcurl4-gnutls-dev] action upgrade (passenger_apache2::defau | |
lt line 42) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing gem_package[passenger] action install (passenger_apache2::default lin | |
e 48) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[passenger_module] action run (passenger_apache2::default line | |
52) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/apache2/mods-available/passenger.load] action create (p | |
assenger_apache2::mod_rails line 28) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/etc/apache2/mods-available/passenger.conf] action create (p | |
assenger_apache2::mod_rails line 37) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[a2enmod passenger] action run (passenger_apache2::mod_rails l | |
ine 38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[create pg admin user] action run (rails-template::default lin | |
e 4) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: execute[create pg admin user] sh( if ! ( psql postgres -tAc "SELECT 1 FROM pg | |
_roles WHERE rolname='admin'" | grep 1 ); then | |
createuser -s admin | |
fi | |
) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: execute[create pg admin user] ran successfully | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[create db development] action run (rails-template::default li | |
ne 17) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: execute[create db development] sh( if ! ( psql --host=localhost --username=ad | |
min --list | grep development ); then | |
createdb --host=localhost --username=admin development | |
fi | |
) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: execute[create db development] ran successfully | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[create db test] action run (rails-template::default line 17) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: execute[create db test] sh( if ! ( psql --host=localhost --username=admin --l | |
ist | grep test ); then | |
createdb --host=localhost --username=admin test | |
fi | |
) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: execute[create db test] ran successfully | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing template[/vagrant/config/database.yml] action create (rails-template: | |
:default line 33) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: Processing execute[install js runtime] action run (rails-template::default line | |
38) | |
[Fri, 25 May 2012 20:07:22 +0000] INFO: execute[install js runtime] sh(bash script/install_node.sh) | |
[Fri, 25 May 2012 20:07:22 +0000] ERROR: execute[install js runtime] (rails-template::default line 38) has had an error | |
[Fri, 25 May 2012 20:07:22 +0000] ERROR: execute[install js runtime] (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rails-te | |
mplate/recipes/default.rb:38:in `from_file') had an error: | |
execute[install js runtime] (rails-template::default line 38) had an error: Chef::Exceptions::ShellCommandFailed: Expect | |
ed process to exit with [0], but received '2' | |
---- Begin output of bash script/install_node.sh ---- | |
STDOUT: | |
: invalid optionnstall_node.sh: line 1: set: - | |
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...] | |
script/install_node.sh: line 2: $'\r': command not found | |
script/install_node.sh: line 8: syntax error near unexpected token `fi' | |
script/install_node.sh: line 8: `fi' | |
---- End output of bash script/install_node.sh ---- | |
Ran bash script/install_node.sh returned 2 | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/shell_out.rb:206:in `invalid!' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/shell_out.rb:192:in `error!' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/shell_out.rb:36:in `shell_out!' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/provider/execute.rb:58:in `action_run' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource.rb:440:in `send' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource.rb:440:in `run_action' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:45:in `run_action' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:81:in `converge' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:81:in `each' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:81:in `converge' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource | |
' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `ca | |
ll' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `ca | |
ll_iterator_block' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `ste | |
p' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `it | |
erate' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `eac | |
h_with_index' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource | |
' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:76:in `converge' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:312:in `converge' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:160:in `run' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/solo.rb:192:in `run_application' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/solo.rb:183:in `loop' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application/solo.rb:183:in `run_application' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/application.rb:67:in `run' | |
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-solo:25 | |
/opt/vagrant_ruby/bin/chef-solo:19:in `load' | |
/opt/vagrant_ruby/bin/chef-solo:19 | |
[Fri, 25 May 2012 20:07:22 +0000] ERROR: Running exception handlers | |
[Fri, 25 May 2012 20:07:22 +0000] ERROR: Exception handlers complete | |
[Fri, 25 May 2012 20:07:22 +0000] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out | |
[Fri, 25 May 2012 20:07:22 +0000] FATAL: Chef::Exceptions::ShellCommandFailed: execute[install js runtime] (rails-templa | |
te::default line 38) had an error: Chef::Exceptions::ShellCommandFailed: Expected process to exit with [0], but received | |
'2' | |
---- Begin output of bash script/install_node.sh ---- | |
STDOUT: | |
: invalid optionnstall_node.sh: line 1: set: - | |
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...] | |
script/install_node.sh: line 2: $'\r': command not found | |
script/install_node.sh: line 8: syntax error near unexpected token `fi' | |
script/install_node.sh: line 8: `fi' | |
---- End output of bash script/install_node.sh ---- | |
Ran bash script/install_node.sh returned 2 | |
Chef never successfully completed! Any errors should be visible in the | |
output above. Please fix your recipes so that they properly complete. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment