mrdavidlaing/wordpress-in-a-box — Issue #1: Initial install fails during install of Nginx
Author: mrdavidlaing
Created: 2011-11-22 00:14:19+00:00
State: open

[Tue, 22 Nov 2011 00:09:45 +0000] ERROR: execute[nxensite core.conf] (/tmp/chef-solo/cookbooks/nginx/definitions/nginx_site.rb:23:in `from_file') had an error:
service[nginx] (nginx::setup_server line 106) had an error: /etc/init.d/nginx restart returned 1, expected 0
/usr/lib/ruby/vendor_ruby/chef/mixin/command.rb:185:in `handle_command_failures'
/usr/lib/ruby/vendor_ruby/chef/mixin/command.rb:132:in `run_command'
/usr/lib/ruby/vendor_ruby/chef/provider/service/init.rb:53:in `restart_service'
/usr/lib/ruby/vendor_ruby/chef/provider/service.rb:78:in `action_restart'
/usr/lib/ruby/vendor_ruby/chef/resource.rb:437:in `send'
/usr/lib/ruby/vendor_ruby/chef/resource.rb:437:in `run_action'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:45:in `run_action'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:53:in `run_action'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:51:in `each'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:51:in `run_action'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:81:in `converge'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:81:in `each'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:81:in `converge'
/usr/lib/ruby/vendor_ruby/chef/resource_collection.rb:94
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:116:in `call'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:85:in `step'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/usr/lib/ruby/vendor_ruby/chef/resource_collection.rb:92:in `execute_each_resource'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:76:in `converge'
/usr/lib/ruby/vendor_ruby/chef/client.rb:312:in `converge'
/usr/lib/ruby/vendor_ruby/chef/client.rb:160:in `run'
/usr/lib/ruby/vendor_ruby/chef/application/solo.rb:192:in `run_application'
/usr/lib/ruby/vendor_ruby/chef/application/solo.rb:183:in `loop'
/usr/lib/ruby/vendor_ruby/chef/application/solo.rb:183:in `run_application'
/usr/lib/ruby/vendor_ruby/chef/application.rb:67:in `run'
/usr/bin/chef-solo:24
[Tue, 22 Nov 2011 00:09:45 +0000] ERROR: Running exception handlers
[Tue, 22 Nov 2011 00:09:45 +0000] ERROR: Exception handlers complete
[Tue, 22 Nov 2011 00:09:45 +0000] FATAL: Stacktrace dumped to /tmp/chef-solo/cache/chef-stacktrace.out
[Tue, 22 Nov 2011 00:09:45 +0000] FATAL: Chef::Exceptions::Exec: service[nginx] (nginx::setup_server line 106) had an error: /etc/init.d/nginx restart returned 1, expected 0

FAILED: chef-solo could not finish configuring the node

to fix, comment out

/etc/nginx/fastcgi_params:fastcgi_param	HTTPS	$server_https;