Vagrant up doesn't load chef configs and doesn't keep an error log
Posted
by
la_f0ka
on Server Fault
See other posts from Server Fault
or by la_f0ka
Published on 2012-09-16T18:47:36Z
Indexed on
2012/09/16
21:41 UTC
Read the original article
Hit count: 509
vagrant
I'm trying to set up a vagrant box and I'm running with all sort of troubles. Right now I'm getting a strange error message where it states there's a stack trace file with more info, but that file is no where to be found.
This is the error:
stdin: is not a tty
[Sun, 16 Sep 2012 18:31:47 +0000] INFO: *** Chef 0.10.0 ***
[Sun, 16 Sep 2012 18:31:48 +0000] INFO: Setting the run_list to ["recipe[apt]", "recipe[openssl]", "recipe[apache2]", "recipe[mysql]", "recipe[mysql::server]", "recipe[php]", "recipe[php::module_apc]", "recipe[php::module_curl]", "recipe[php::module_mysql]", "recipe[apache2::mod_php5]", "recipe[apache2::mod_rewrite]"] from JSON
[Sun, 16 Sep 2012 18:31:48 +0000] INFO: Run List is [recipe[apt], recipe[openssl], recipe[apache2], recipe[mysql], recipe[mysql::server], recipe[php], recipe[php::module_apc], recipe[php::module_curl], recipe[php::module_mysql], recipe[apache2::mod_php5], recipe[apache2::mod_rewrite]]
[Sun, 16 Sep 2012 18:31:48 +0000] INFO: Run List expands to [apt, openssl, apache2, mysql, mysql::server, php, php::module_apc, php::module_curl, php::module_mysql, apache2::mod_php5, apache2::mod_rewrite]
[Sun, 16 Sep 2012 18:31:48 +0000] INFO: Starting Chef Run for natty.talifun.com
[Sun, 16 Sep 2012 18:31:48 +0000] ERROR: Running exception handlers
[Sun, 16 Sep 2012 18:31:48 +0000] ERROR: Exception handlers complete
[Sun, 16 Sep 2012 18:31:48 +0000] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[Sun, 16 Sep 2012 18:31:48 +0000] FATAL: NameError: wrong constant name Chef-symfony2Console
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
And this is what my vagrantfile looks like:
Vagrant::Config.run do |config|
config.vm.box = "ubuntu-1104-server-i386"
config.vm.network :hostonly, "33.33.33.33"
config.vm.forward_port 80, 8000
config.vm.share_folder "symfony.tests", "/var/www/symfony.tests", "data", :nfs => true
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["../my-recipes/cookbooks", "site-cookbooks"]
chef.add_recipe "apt"
chef.add_recipe "openssl"
chef.add_recipe "apache2"
chef.add_recipe "mysql"
chef.add_recipe "mysql::server"
chef.add_recipe "php"
chef.add_recipe "php::module_apc"
chef.add_recipe "php::module_curl"
chef.add_recipe "php::module_mysql"
chef.add_recipe "apache2::mod_php5"
chef.add_recipe "apache2::mod_rewrite"
chef.add_recipe "Symfony"
chef.json = {
:mysql => {
:server_root_password => 'root',
:bind_address => '127.0.0.1'
}
}
end
end
© Server Fault or respective owner