[DRE-maint] Bug#604884: Debian redmine won't work with many Rails/actionpacks installed

Radek Antoniuk radek.antoniuk at gmail.com
Thu Nov 25 01:58:06 UTC 2010


Package: redmine
Version: 1.0.3-1
Severity: normal


i have recently switched to using Ruby Enterprise Edition that includes Passenger 3.0 and Rails 3.0.3.
I know that Redmine supports currently only Rails 2.3.5, however, it should run correctly in an environment where two concurrent gems are installed.
However, If I try to run Redmine with new RubyEE w/Passenger 3.0 w/Rails 3.0.3 I get the following error:

Error message:
undefined method `map' for nil:NilClass
Exception class:
NoMethodError
Application root:
/usr/share/redmine

This is not a Passenger issue, as when you try to run the command from the command line you get the same result:
# ruby /usr/share/redmine/config/environment.rb

/opt/rubyEE-2010-02/lib/ruby/site_ruby/1.8/rubygems.rb:223:in
`activate': undefined method `map' for nil:NilClass (NoMethodError)
	from /opt/rubyEE-2010-02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:in
`require'
	from /usr/share/redmine/config/environment.rb:34

I have compared environment.rb in debian package and the one from trunk. 
I can see that one of the offending lines (require 'action_controller') is present in the debian version and not present in the trunk.
However, this does not explain the "undefined method map" error.

The error from passenger is as follows:

Error message:
undefined method `map' for nil:NilClass
Exception class:
NoMethodError
Application root:
/usr/share/redmine

/opt/rubyEE-2010-02/lib/ruby/site_ruby/1.8/rubygems.rb 223  in `activate' 
1  /opt/rubyEE-2010-02/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb  35 in `require' 
2 /usr/share/redmine/config/environment.rb 34 
3 /opt/rubyEE-2010-02/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb  31 in `gem_original_require' 
4 /opt/rubyEE-2010-02/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb  31 in `require' 
5 /opt/rubyEE-2010-02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/ phusion_passenger/classic_rails/application_spawner.rb 222 in `preload_application' 
6 /opt/rubyEE-2010-02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/ phusion_passenger/classic_rails/application_spawner.rb 181  in `initialize_server' 
7 /opt/rubyEE-2010-02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/ phusion_passenger/utils.rb 564 in `report_app_init_status' 

(...)

The installed gems list are:
warden at warden [02:50:49] ~> gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.3, 2.3.5)
actionpack (3.0.3, 2.3.5)
activemodel (3.0.3)
activerecord (3.0.3, 2.3.5)
activeresource (3.0.3, 2.3.5)
activesupport (3.0.3, 2.3.5)
arel (2.0.4)
builder (2.1.2)
bundler (1.0.7)
daemon_controller (0.2.5)
erubis (2.6.6)
fastthread (1.0.7)
file-tail (1.0.5)
i18n (0.4.2)
mail (2.2.10)
mime-types (1.16)
mysql (2.8.1)
passenger (3.0.0)
pg (0.9.0)
polyglot (0.3.1)
rack (1.2.1, 1.0.1)
rack-mount (0.6.13)
rack-test (0.5.6)
rails (3.0.3, 2.3.5)
railties (3.0.3)
rake (0.8.7)
spruz (0.2.2)
sqlite3-ruby (1.3.2)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.23)
warden at warden [02:50:53] ~> ruby -v
ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.02
warden at warden [02:51:00] ~> echo $PATH
/opt/rubyEE-2010-02/bin/:/usr/local/bin:/usr/bin:/bin:/usr/games



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages redmine depends on:
ii  dbconfig-common              1.8.46      common framework for packaging dat
ii  debconf [debconf-2.0]        1.5.36      Debian configuration management sy
ii  libactionmailer-ruby         2.3.5-1.1   Framework for generation of custom
ii  libactionpack-ruby           2.3.5-1.1   Controller and View framework used
ii  libactiveresource-ruby       2.3.5-1.1   Connects objects and REST web serv
ii  libactivesupport-ruby        2.3.5-1.1   utility classes and extensions (Ru
ii  libjs-scriptaculous          1.8.3-1     JavaScript library for dynamic web
ii  rails                        2.3.5-1.1   MVC ruby based framework geared fo
ii  redmine-mysql                1.0.3-1     metapackage providing MySQL depend
ii  redmine-sqlite               1.0.3-1     metapackage providing sqlite depen
ii  ruby                         4.5         An interpreter of object-oriented 
ii  ruby1.8                      1.8.7.302-2 Interpreter of object-oriented scr

redmine recommends no packages.

Versions of packages redmine suggests:
pn  libopenid-ruby                <none>     (no description available)
ii  librmagick-ruby               2.13.1-2   ImageMagick API for Ruby
pn  libsvn-ruby                   <none>     (no description available)

-- debconf information:
  redmine/instances/default/passwords-do-not-match:
  redmine/instances/default/remote/newhost:
  redmine/instances/default/db/basepath:
  redmine/instances/default/pgsql/changeconf: false
  redmine/instances/default/missing-db-package-error: abort
  redmine/default-language: ${defaultLocale}
  redmine/instances/default/pgsql/no-empty-passwords:
  redmine/instances/default/pgsql/method: unix socket
* redmine/instances/default/database-type: mysql
  redmine/instances/default/pgsql/manualconf:
  redmine/instances/default/pgsql/authmethod-admin: ident
  redmine/instances/default/pgsql/admin-user: postgres
  redmine/missing-redmine-package:
  redmine/instances/default/pgsql/authmethod-user: password
  redmine/instances/default/dbconfig-reinstall: false
  redmine/instances/default/db/app-user: redmine
  redmine/instances/default/default-language: en
  redmine/notify-migration:
  redmine/old-instances:
  redmine/instances/default/upgrade-error: abort
  redmine/instances/default/db/dbname: redmine_default
  redmine/instances/default/purge: false
  redmine/current-instances: default
  redmine/instances/default/remote/host:
  redmine/instances/default/dbconfig-upgrade: true
  redmine/instances/default/internal/reconfiguring: false
  redmine/instances/default/upgrade-backup: true
  redmine/instances/default/install-error: abort
  redmine/instances/default/mysql/admin-user: root
  redmine/instances/default/mysql/method: unix socket
  redmine/instances/default/internal/skip-preseed: false
  redmine/instances/default/remove-error: abort
  redmine/instances/default/dbconfig-remove:
  redmine/instances/default/remote/port:
* redmine/instances/default/dbconfig-install: true






More information about the Pkg-ruby-extras-maintainers mailing list