passenger_apache2 not running


#1

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:ininvalid!’
/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:inshell_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:inrun_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:inblock (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:inblock 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:incall’
/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:instep’
/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:ineach_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:inconverge’
/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:inrun’
/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:inloop’
/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:inrun’
/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:inload’
/usr/local/bin/chef-solo:19:in `’
[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


#2

I don’t know if there’s a ticket for this… Can you report this to
the Open Source ticket system?

tickets.opscode.com

Thank you!

On Mon, Jan 2, 2012 at 7:13 PM, Tim Uckun timuckun@gmail.com wrote:

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:ininvalid!’
/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:inshell_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:inrun_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:inblock (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:inblock 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:incall’
/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:instep’
/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:ineach_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:inconverge’
/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:inrun’
/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:inloop’
/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:inrun’
/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:inload’
/usr/local/bin/chef-solo:19:in `’
[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


Opscode, Inc
Joshua Timberman, Technical Program Manager
IRC, Skype, Twitter, Github: jtimberman


#3

On Wed, Jan 4, 2012 at 4:22 PM, Joshua Timberman joshua@opscode.com wrote:

I don’t know if there’s a ticket for this… Can you report this to
the Open Source ticket system?

Ticket COOK-958

Cheers