- From: Tim Uckun <
>
- To: chef <
>
- Subject: [chef] passenger_apache2 not running.
- Date: Tue, 3 Jan 2012 15:13:41 +1300
Just downloaded it and ran it using chef-solo.
It creates a passenger.conf file but it doesn't look like it's
creating a passenger.load file in the mod-available directory.
There is one in the
/usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.7/debian/passenger.load
directory but since it's not in mods-available the a2enmod command
fails. Here is the error.
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing execute[a2enmod
dir] action run (apache2::mod_dir line 38)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing execute[a2enmod
env] action run (apache2::mod_env line 38)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing
template[/etc/apache2/mods-available/mime.conf] action create
(apache2::mod_mime line 21)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing execute[a2enmod
mime] action run (apache2::mod_mime line 38)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing
template[/etc/apache2/mods-available/negotiation.conf] action create
(apache2::mod_negotiation line 21)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing execute[a2enmod
negotiation] action run (apache2::mod_negotiation line 38)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing
template[/etc/apache2/mods-available/setenvif.conf] action create
(apache2::mod_setenvif line 21)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing execute[a2enmod
setenvif] action run (apache2::mod_setenvif line 38)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing service[apache2]
action start (apache2::default line 215)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing
package[apache2-prefork-dev] action upgrade
(passenger_apache2::default line 39)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing
package[libapr1-dev] action upgrade (passenger_apache2::default line
39)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing
package[libcurl4-gnutls-dev] action upgrade
(passenger_apache2::default line 39)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing
gem_package[passenger] action install (passenger_apache2::default line
45)
NOTE: Gem.source_index is deprecated, use Specification. It will be
removed on or after 2011-11-01.
Gem.source_index called from
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/provider/package/rubygems.rb:203.
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It
will be removed on or after 2011-11-01.
Gem::SourceIndex#search called from
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/provider/package/rubygems.rb:77.
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing
execute[passenger_module] action run (passenger_apache2::default line
49)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing
template[/etc/apache2/mods-available/passenger.conf] action create
(passenger_apache2::mod_rails line 28)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: Processing execute[a2enmod
passenger] action run (passenger_apache2::mod_rails line 38)
[Tue, 03 Jan 2012 15:12:35 +1300] INFO: execute[a2enmod passenger]
sh(/usr/sbin/a2enmod passenger)
[Tue, 03 Jan 2012 15:12:35 +1300] ERROR: execute[a2enmod passenger]
(passenger_apache2::mod_rails line 38) has had an error
[Tue, 03 Jan 2012 15:12:35 +1300] ERROR: execute[a2enmod passenger]
(/media/sf_timuckun/source/digital_dialogue/dd-infrastructure/cookbooks/apache2/definitions/apache_module.rb:38:in
`block in from_file') had an error:
execute[a2enmod passenger] (passenger_apache2::mod_rails line 38) had
an error: Chef::Exceptions::ShellCommandFailed: Expected process to
exit with [0], but received '1'
---- Begin output of /usr/sbin/a2enmod passenger ----
STDOUT:
STDERR: ERROR: Module passenger does not exist!
---- End output of /usr/sbin/a2enmod passenger ----
Ran /usr/sbin/a2enmod passenger returned 1
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/shell_out.rb:206:in
`invalid!'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/shell_out.rb:192:in
`error!'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/mixin/shell_out.rb:36:in
`shell_out!'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/provider/execute.rb:58:in
`action_run'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/resource.rb:440:in
`run_action'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/runner.rb:45:in
`run_action'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/runner.rb:81:in
`block (2 levels) in converge'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/runner.rb:81:in
`each'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/runner.rb:81:in
`block in converge'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/resource_collection.rb:94:in
`block in execute_each_resource'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/resource_collection/stepable_iterator.rb:116:in
`call'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/resource_collection/stepable_iterator.rb:116:in
`call_iterator_block'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/resource_collection/stepable_iterator.rb:85:in
`step'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/resource_collection/stepable_iterator.rb:104:in
`iterate'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/resource_collection/stepable_iterator.rb:55:in
`each_with_index'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/resource_collection.rb:92:in
`execute_each_resource'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/runner.rb:76:in
`converge'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:312:in
`converge'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/client.rb:160:in
`run'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/solo.rb:192:in
`block in run_application'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/solo.rb:183:in
`loop'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application/solo.rb:183:in
`run_application'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/application.rb:67:in
`run'
/usr/local/lib/ruby/gems/1.9.1/gems/chef-0.10.8/bin/chef-solo:25:in
`<top (required)>'
/usr/local/bin/chef-solo:19:in `load'
/usr/local/bin/chef-solo:19:in `<main>'
[Tue, 03 Jan 2012 15:12:35 +1300] ERROR: Running exception handlers
[Tue, 03 Jan 2012 15:12:35 +1300] ERROR: Exception handlers complete
[Tue, 03 Jan 2012 15:12:35 +1300] FATAL: Stacktrace dumped to
/media/sf_timuckun/source/digital_dialogue/dd-infrastructure/chef-stacktrace.out
[Tue, 03 Jan 2012 15:12:35 +1300] FATAL:
Chef::Exceptions::ShellCommandFailed: execute[a2enmod passenger]
(passenger_apache2::mod_rails line 38) had an error:
Chef::Exceptions::ShellCommandFailed: Expected process to exit with
[0], but received '1'
---- Begin output of /usr/sbin/a2enmod passenger ----
STDOUT:
STDERR: ERROR: Module passenger does not exist!
---- End output of /usr/sbin/a2enmod passenger ----
Ran /usr/sbin/a2enmod passenger returned 1
- [chef] passenger_apache2 not running., Tim Uckun, 01/02/2012
Archive powered by MHonArc 2.6.16.