Project

General

Profile

Redmine stops working after mod_passenger 2.2 > 3.0 upgrade

Added by Mr B over 13 years ago

Hi all,

I'm using Redmine 1.2-stable branch via Apache2.2, mod_passenger 2.2 on Debian Squeeze.

After mod_passenger upgrade (2.2.11debian-2 to 3.0.7-1~dotdeb.1) redmine stopped working, and all I could get is Passenger's error page (see attachment).

Here's actual error message.

Error message:
undefined method `autoload_paths=' for ActiveSupport::Dependencies:Module

Exception class:
NoMethodError

Application root:
/home/redmine/htdocs/xxxxxxxxxxxxxxx

Backtrace:
#    File    Line    Location
0    /var/lib/gems/1.8/gems/rails-2.3.11/lib/initializer.rb    249    in `set_autoload_paths'
1    /var/lib/gems/1.8/gems/rails-2.3.11/lib/initializer.rb    135    in `process'
2    /var/lib/gems/1.8/gems/rails-2.3.11/lib/initializer.rb    113    in `send'
3    /var/lib/gems/1.8/gems/rails-2.3.11/lib/initializer.rb    113    in `run'
4    /home/redmine/htdocs/xxxxxxxxxxxxxxx/config/environment.rb    20    
5    /usr/lib/ruby/1.8/rubygems/custom_require.rb    31    in `gem_original_require'
6    /usr/lib/ruby/1.8/rubygems/custom_require.rb    31    in `require'
7    /usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb    222    in `preload_application'
8    /usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb    181    in `initialize_server'
9    /usr/lib/ruby/1.8/phusion_passenger/utils.rb    572    in `report_app_init_status'
10    /usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb    174    in `initialize_server'
11    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb    204    in `start_synchronously'
12    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb    180    in `start'
13    /usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb    149    in `start'
14    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb    219    in `spawn_rails_application'
15    /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb    132    in `lookup_or_add'
16    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb    214    in `spawn_rails_application'
17    /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb    82    in `synchronize'
18    /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb    79    in `synchronize'
19    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb    213    in `spawn_rails_application'
20    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb    132    in `spawn_application'
21    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb    275    in `handle_spawn_application'
22    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb    357    in `__send__'
23    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb    357    in `server_main_loop'
24    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb    206    in `start_synchronously'
25    /usr/share/phusion-passenger/helper-scripts/passenger-spawn-server    99    
# gem list

*** LOCAL GEMS ***

actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
i18n (0.4.2)
rack (1.1.2, 1.0.1)
rails (2.3.11)
rake (0.8.7)

I have installed some gems via apt-get functions, to simplify upgrading, and it's been working well so far...

# dpkg -l |grep -- -ruby1.8|cut -c 5-63
libactionmailer-ruby1.8               2.3.5-1.2+squeeze0.1
libactionpack-ruby1.8                 2.3.5-1.2+squeeze0.1
libactiverecord-ruby1.8               2.3.5-1.2+squeeze0.1
libactiveresource-ruby1.8             2.3.5-1.2+squeeze0.1
libactivesupport-ruby1.8              2.3.5-1.2+squeeze0.1
libbreakpoint-ruby1.8                 0.5.1-2
libbuilder-ruby1.8                    2.1.2-2
libcmdparse2-ruby1.8                  2.0.2-2
libdaemons-ruby1.8                    1.0.10-2
libdbd-mysql-ruby1.8                  0.4.4-1
libdbi-ruby1.8                        0.4.3-2
libdeprecated-ruby1.8                 2.0.1-2
libi18n-ruby1.8                       0.4.1-1
liblog4r-ruby1.8                      1.0.5-8
libmemcache-client-ruby1.8            1.7.8-2
libmmap-ruby1.8                       0.2.6-3
libmocha-ruby1.8                      0.9.8-1
libmysql-ruby1.8                      2.8.2-1
libncurses-ruby1.8                    1.2.4-2
librack-ruby1.8                       1.1.0-4
libredcloth-ruby1.8                   4.2.2-1.1
librmagick-ruby1.8                    2.13.1-2
libsqlite3-ruby1.8                    1.2.4-2.1
libtext-format-ruby1.8                1.0.0-2
libtmail-ruby1.8                      1.2.3.1-1
libtzinfo-ruby1.8                     0.3.19-1
rails-ruby1.8                         2.3.5-1.2+squeeze0.1

When I revert to older version of mod_passenger (apt-get -y remove libapache2-mod-passenger; apt-get -y install libapache2-mod-passenger=2.2.11debian-2) redmine works fine again.

I've noticed an additional package (passenger-common) is installed when I install mod_passenger 3 (see attachment for list of files it contains).

Any ideas what might be solution to this problem?

Thanks!

screenshot_06142011_094129.png (114 KB) screenshot_06142011_094129.png Screenshot of error message
passenger-common.txt (9.51 KB) passenger-common.txt File list of passenger-common 3.0.7-1~dotdeb.1

Replies (3)

RE: Redmine stops working after mod_passenger 2.2 > 3.0 upgrade - Added by Mr B over 13 years ago

Also, here's script/about output:

$ RAILS_ENV=production script/about 
About your application's environment
Ruby version              1.8.7 (i486-linux)
RubyGems version          1.3.7
Rack version              1.1.2
Rails version             2.3.11
Active Record version     2.3.11
Active Resource version   2.3.11
Action Mailer version     2.3.11
Active Support version    2.3.11
Application root          /home/redmine/htdocs/xyz
Environment               production
Database adapter          mysql
Database schema version   20110511000000

About your Redmine plugins
Scrumdashboard plugin   1.2

RE: Redmine stops working after mod_passenger 2.2 > 3.0 upgrade - Added by Alex A over 13 years ago

I dont know but try to upgrade

actionpack (2.3.11)
activesupport (2.3.11)

to the version 3.0.7

RE: Redmine stops working after mod_passenger 2.2 > 3.0 upgrade - Added by Mr B over 13 years ago

Nope, still the same error. I notice, however, that output of "RAILS_ENV=production script/about" still shows that older gems are being used (2.3.11 instead of 3.0.7)...

    (1-3/3)