Skip to content

Instantly share code, notes, and snippets.

@tybenz
Created May 25, 2012 20:04
Show Gist options
  • Save tybenz/2790283 to your computer and use it in GitHub Desktop.
Save tybenz/2790283 to your computer and use it in GitHub Desktop.
vagrant up error
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 19:58:48 +0000] INFO: *** Chef 0.10.8 ***
[Fri, 25 May 2012 19:58:49 +0000] INFO: Setting the run_list to ["recipe[rails-t
emplate]"] from JSON
[Fri, 25 May 2012 19:58:49 +0000] INFO: Run List is [recipe[rails-template]]
[Fri, 25 May 2012 19:58:49 +0000] INFO: Run List expands to [rails-template]
[Fri, 25 May 2012 19:58:49 +0000] INFO: Starting Chef Run for precise64
[Fri, 25 May 2012 19:58:49 +0000] INFO: Running start handlers
[Fri, 25 May 2012 19:58:49 +0000] INFO: Start handlers complete.
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[postgresql-client] ac
tion install (postgresql::client line 37)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[libpq-dev] action ins
tall (postgresql::client line 37)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[make] action install
(postgresql::client line 37)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing gem_package[pg] action instal
l (postgresql::client line 42)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[postgresql-client] ac
tion nothing (postgresql::client line 37)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[libpq-dev] action not
hing (postgresql::client line 37)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[make] action nothing
(postgresql::client line 37)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing gem_package[pg] action nothin
g (postgresql::client line 42)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[postgresql] action in
stall (postgresql::server_debian line 31)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing service[postgresql] action no
thing (postgresql::server_debian line 33)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/postgresql/9.1/
main/postgresql.conf] action create (postgresql::server_debian line 56)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/postgresql/9.1/
main/pg_hba.conf] action create (postgresql::server line 46)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing bash[assign-postgres-password
] action run (postgresql::server line 58)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[apache2] action insta
ll (apache2::default line 20)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing service[apache2] action enabl
e (apache2::default line 25)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing directory[/etc/apache2/ssl] a
ction create (apache2::default line 135)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing directory[/etc/apache2/conf.d
] action create (apache2::default line 142)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing directory[/var/cache/apache2]
action create (apache2::default line 149)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[apache2.conf] action
create (apache2::default line 156)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[security] action cre
ate (apache2::default line 172)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[charset] action crea
te (apache2::default line 182)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/apache2/ports.c
onf] action create (apache2::default line 192)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/apache2/sites-a
vailable/default] action create (apache2::default line 201)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/apache2/mods-av
ailable/status.conf] action create (apache2::mod_status line 21)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod status] actio
n run (apache2::mod_status line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/apache2/mods-av
ailable/alias.conf] action create (apache2::mod_alias line 21)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod alias] action
run (apache2::mod_alias line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod auth_basic] a
ction run (apache2::mod_auth_basic line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod authn_file] a
ction run (apache2::mod_authn_file line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod authz_default
] action run (apache2::mod_authz_default line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod authz_groupfi
le] action run (apache2::mod_authz_groupfile line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod authz_host] a
ction run (apache2::mod_authz_host line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod authz_user] a
ction run (apache2::mod_authz_user line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/apache2/mods-av
ailable/autoindex.conf] action create (apache2::mod_autoindex line 21)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod autoindex] ac
tion run (apache2::mod_autoindex line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/apache2/mods-av
ailable/dir.conf] action create (apache2::mod_dir line 21)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod dir] action r
un (apache2::mod_dir line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod env] action r
un (apache2::mod_env line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/apache2/mods-av
ailable/mime.conf] action create (apache2::mod_mime line 21)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod mime] action
run (apache2::mod_mime line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/apache2/mods-av
ailable/negotiation.conf] action create (apache2::mod_negotiation line 21)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod negotiation]
action run (apache2::mod_negotiation line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/apache2/mods-av
ailable/setenvif.conf] action create (apache2::mod_setenvif line 21)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod setenvif] act
ion run (apache2::mod_setenvif line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing service[apache2] action start
(apache2::default line 216)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[build-essential] acti
on install (build-essential::default line 23)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[binutils-doc] action
install (build-essential::default line 23)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[autoconf] action inst
all (build-essential::default line 35)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[flex] action install
(build-essential::default line 39)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[bison] action install
(build-essential::default line 43)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[apache2-prefork-dev]
action upgrade (passenger_apache2::default line 42)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[libapr1-dev] action u
pgrade (passenger_apache2::default line 42)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing package[libcurl4-gnutls-dev]
action upgrade (passenger_apache2::default line 42)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing gem_package[passenger] action
install (passenger_apache2::default line 48)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[passenger_module] act
ion run (passenger_apache2::default line 52)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/apache2/mods-av
ailable/passenger.load] action create (passenger_apache2::mod_rails line 28)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/etc/apache2/mods-av
ailable/passenger.conf] action create (passenger_apache2::mod_rails line 37)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[a2enmod passenger] ac
tion run (passenger_apache2::mod_rails line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[create pg admin user]
action run (rails-template::default line 4)
[Fri, 25 May 2012 19:58:49 +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 19:58:49 +0000] INFO: execute[create pg admin user] ran succes
sfully
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[create db development
] action run (rails-template::default line 17)
[Fri, 25 May 2012 19:58:49 +0000] INFO: execute[create db development] sh( if
! ( psql --host=localhost --username=admin --list | grep development ); then
createdb --host=localhost --username=admin development
fi
)
[Fri, 25 May 2012 19:58:49 +0000] INFO: execute[create db development] ran succe
ssfully
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[create db test] actio
n run (rails-template::default line 17)
[Fri, 25 May 2012 19:58:49 +0000] INFO: execute[create db test] sh( if ! ( ps
ql --host=localhost --username=admin --list | grep test ); then
createdb --host=localhost --username=admin test
fi
)
[Fri, 25 May 2012 19:58:49 +0000] INFO: execute[create db test] ran successfully
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing template[/vagrant/config/data
base.yml] action create (rails-template::default line 33)
[Fri, 25 May 2012 19:58:49 +0000] INFO: Processing execute[install js runtime] a
ction run (rails-template::default line 38)
[Fri, 25 May 2012 19:58:49 +0000] INFO: execute[install js runtime] sh(install j
s runtime)
[Fri, 25 May 2012 19:58:49 +0000] ERROR: execute[install js runtime] (rails-temp
late::default line 38) has had an error
[Fri, 25 May 2012 19:58:49 +0000] ERROR: execute[install js runtime] (/tmp/vagra
nt-chef-1/chef-solo-1/cookbooks/rails-template/recipes/default.rb:38:in `from_fi
le') had an error:
execute[install js runtime] (rails-template::default line 38) had an error: Chef
::Exceptions::ShellCommandFailed: Expected process to exit with [0], but receive
d '1'
---- Begin output of install js runtime ----
STDOUT:
STDERR: install: cannot stat `js': No such file or directory
---- End output of install js runtime ----
Ran install js runtime returned 1
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/shell_out.r
b:206:in `invalid!'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/shell_out.r
b: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/ex
ecute.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:4
5:in `run_action'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:8
1:in `converge'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:8
1:in `each'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:8
1:in `converge'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_co
llection.rb:94:in `execute_each_resource'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_co
llection/stepable_iterator.rb:116:in `call'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_co
llection/stepable_iterator.rb:116:in `call_iterator_block'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_co
llection/stepable_iterator.rb:85:in `step'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_co
llection/stepable_iterator.rb:104:in `iterate'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_co
llection/stepable_iterator.rb:55:in `each_with_index'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource_co
llection.rb:92:in `execute_each_resource'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/runner.rb:7
6:in `converge'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:3
12:in `converge'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/client.rb:1
60: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 19:58:49 +0000] ERROR: Running exception handlers
[Fri, 25 May 2012 19:58:49 +0000] ERROR: Exception handlers complete
[Fri, 25 May 2012 19:58:49 +0000] FATAL: Stacktrace dumped to /tmp/vagrant-chef-
1/chef-stacktrace.out
[Fri, 25 May 2012 19:58:49 +0000] FATAL: Chef::Exceptions::ShellCommandFailed: e
xecute[install js runtime] (rails-template::default line 38) had an error: Chef:
:Exceptions::ShellCommandFailed: Expected process to exit with [0], but received
'1'
---- Begin output of install js runtime ----
STDOUT:
STDERR: install: cannot stat `js': No such file or directory
---- End output of install js runtime ----
Ran install js runtime returned 1
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