RubyEE upgrade problem with Redmine 1.0.1
Added by Radek Antoniuk about 14 years ago
Hey,
I was a happy user of Ruby Enterprise Edition and Redmine 1.0.
Today, I've upgraded my Debian system, and I am experiencing problems with RubyEE.
I'm getting:
Error message: undefined method `map' for nil:NilClass
with a trace:
0 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems.rb 223 in `activate' 1 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 35 in `require' 2 /usr/share/redmine/config/environment.rb 28 3 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require' 4 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require' 5 /opt/ruby-enterprise-1.8.7-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/ruby-enterprise-1.8.7-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/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/utils.rb 564 in `report_app_init_status' 8 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb 174 in `initialize_server' 9 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 204 in `start_synchronously' 10 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 180 in `start' 11 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb 149 in `start' 12 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 219 in `spawn_rails_application' 13 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb 132 in `lookup_or_add' 14 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 214 in `spawn_rails_application' 15 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb 82 in `synchronize' 16 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize' 17 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 213 in `spawn_rails_application' 18 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 132 in `spawn_application' 19 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb 275 in `handle_spawn_application' 20 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 357 in `__send__' 21 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 357 in `server_main_loop' 22 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb 206 in `start_synchronously' 23 /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-3.0.0/helper-scripts/passenger-spawn-server 99
It looks like it doesn't see installed gems or sth. But the gems are there:
dev:~# gem list *** LOCAL GEMS *** actionmailer (2.3.8, 2.3.5) actionpack (2.3.8, 2.3.5) activerecord (2.3.8, 2.3.5) activeresource (2.3.8, 2.3.5) activesupport (3.0.1, 2.3.8, 2.3.5) builder (2.1.2) calendar_date_select (1.16.1) chronic (0.3.0, 0.2.3) daemon_controller (0.2.5) fastercsv (1.5.3) fastthread (1.0.7) ffmpeg (0.2.5) file-tail (1.0.5) GData (0.0.4) hoe (2.6.2, 2.6.0) hpricot (0.8.2) image_science (1.2.1) inline_attachment (0.4.5) json_pure (1.4.6, 1.4.2) libxml-ruby (1.1.4) mime-types (1.16) mini_magick (2.3, 1.2.5) mysql (2.8.1) nokogiri (1.4.3.1, 1.4.1) packet (0.1.15) passenger (2.2.11) rack (1.2.1, 1.1.0, 1.0.1) rails (2.3.8, 2.3.5) rake (0.8.7) RedCloth (4.2.3) roo (1.9.3, 1.3.9) ruby-ole (1.2.11, 1.2.10.1) rubyforge (2.0.4) RubyInline (3.8.6, 3.8.4) rubyzip (0.9.4) spreadsheet (0.6.4.1) spruz (0.1.5) subexec (0.0.4) ultrasphinx (1.11) will_paginate (2.3.15, 2.3.12) xml-simple (1.0.12) ZenTest (4.4.0, 4.3.1)
Anyone experienced that problem before?
Replies (6)
RE: RubyEE upgrade problem with Redmine 1.0.1 - Added by Felix Schäfer about 14 years ago
Your gem list shows passenger 2.2.11, your stack trace 3.0.0. I think you have a problem with the gem paths indeed, can't tell you where it is though.
RE: RubyEE upgrade problem with Redmine 1.0.1 - Added by Radek Antoniuk about 14 years ago
Indeed the trace was showing something wrong with the gems.
Now however I have updated the $PATH and still the same even with unicorn:
root@warden:/opt/rubyEE-1.8.7-2010.02/bin# ./unicorn_rails -E production -d -c /etc/racks_apps/redmine.ru {:app=> #<Proc:0x0000000000f01108@/opt/rubyEE-1.8.7-2010.02/lib/ruby/gems/1.8/gems/unicorn-1.1.4/bin/unicorn_rails:136>, :daemonize=>false, :unicorn_options=> {:config_file=>"/etc/racks_apps/redmine.ru", :listeners=>[]}} Exception `Errno::EEXIST' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/1.8/fileutils.rb:243 - File exists - tmp/cache Exception `Errno::EEXIST' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/1.8/fileutils.rb:243 - File exists - tmp/pids Exception `Errno::EEXIST' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/1.8/fileutils.rb:243 - File exists - tmp/sessions Exception `Errno::EEXIST' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/1.8/fileutils.rb:243 - File exists - tmp/sockets I, [2010-10-28T12:31:17.946020 #1919] INFO -- : listening on addr=0.0.0.0:4000 fd=3 Exception `Errno::ESRCH' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/gems/1.8/gems/unicorn-1.1.4/lib/unicorn.rb:779 - No such process I, [2010-10-28T12:31:17.949781 #1919] INFO -- : Refreshing Gem list Exception `NoMethodError' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/1.8/rational.rb:82 - undefined method `gcd' for Rational(1, 2):Rational Exception `LoadError' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- action_controller Exception `NoMethodError' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems.rb:223 - undefined method `map' for nil:NilClass /opt/rubyEE-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems.rb:223:in `activate': undefined method `map' for nil:NilClass (NoMethodError) from /opt/rubyEE-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:in `require' from /usr/share/redmine/config/environment.rb:28 from /opt/rubyEE-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /opt/rubyEE-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /opt/rubyEE-1.8.7-2010.02/lib/ruby/gems/1.8/gems/unicorn-1.1.4/bin/unicorn_rails:145:in `rails_builder' from /opt/rubyEE-1.8.7-2010.02/lib/ruby/gems/1.8/gems/unicorn-1.1.4/lib/unicorn.rb:817:in `call' from /opt/rubyEE-1.8.7-2010.02/lib/ruby/gems/1.8/gems/unicorn-1.1.4/lib/unicorn.rb:817:in `build_app!' from /opt/rubyEE-1.8.7-2010.02/lib/ruby/gems/1.8/gems/unicorn-1.1.4/lib/unicorn.rb:269:in `start' from /opt/rubyEE-1.8.7-2010.02/lib/ruby/gems/1.8/gems/unicorn-1.1.4/lib/unicorn.rb:29:in `run' from /opt/rubyEE-1.8.7-2010.02/lib/ruby/gems/1.8/gems/unicorn-1.1.4/bin/unicorn_rails:210 from ./unicorn_rails:19:in `load' from ./unicorn_rails:19
Gem list:
root@warden:/opt/rubyEE-1.8.7-2010.02/bin# ./gem list *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.1, 2.3.5) actionpack (3.0.1, 2.3.5) activemodel (3.0.1) activerecord (3.0.1, 2.3.5) activeresource (3.0.1, 2.3.5) activesupport (3.0.1, 2.3.5) arel (1.0.1) builder (2.1.2) bundler (1.0.3) 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.9) 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.1, 2.3.5) railties (3.0.1) rake (0.8.7) spruz (0.2.0) sqlite3-ruby (1.3.1) thor (0.14.3) treetop (1.4.8) tzinfo (0.3.23) unicorn (1.1.4)
RE: RubyEE upgrade problem with Redmine 1.0.1 - Added by Radek Antoniuk about 14 years ago
I wonder, is it possible that the ennvironment.rb is not requiring the correct version of gems if I have two versions installed?
RE: RubyEE upgrade problem with Redmine 1.0.1 - Added by Radek Antoniuk about 14 years ago
Then, I tried to remove all 3.0.1 gems, now I get this:
root@warden:/usr/share/redmine# /opt/rubyEE-1.8.7-2010.02/bin/unicorn_rails -E production -d -c /etc/racks_apps/redmine.ru {:app=> #<Proc:0x0000000000fc7d58@/opt/rubyEE-1.8.7-2010.02/lib/ruby/gems/1.8/gems/unicorn-1.1.4/bin/unicorn_rails:136>, :daemonize=>false, :unicorn_options=> {:config_file=>"/etc/racks_apps/redmine.ru", :listeners=>[]}} Exception `Errno::EEXIST' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/1.8/fileutils.rb:243 - File exists - tmp/cache Exception `Errno::EEXIST' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/1.8/fileutils.rb:243 - File exists - tmp/pids Exception `Errno::EEXIST' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/1.8/fileutils.rb:243 - File exists - tmp/sessions Exception `Errno::EEXIST' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/1.8/fileutils.rb:243 - File exists - tmp/sockets I, [2010-10-28T12:58:51.289281 #2036] INFO -- : listening on addr=0.0.0.0:4000 fd=3 Exception `Errno::ESRCH' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/gems/1.8/gems/unicorn-1.1.4/lib/unicorn.rb:779 - No such process I, [2010-10-28T12:58:51.292685 #2036] INFO -- : Refreshing Gem list Exception `NoMethodError' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/1.8/rational.rb:82 - undefined method `gcd' for Rational(1, 2):Rational Exception `LoadError' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- action_controller Exception `LoadError' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36 - no such file to load -- action_controller Exception `LoadError' at /opt/rubyEE-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - no such file to load -- action_controller /opt/rubyEE-1.8.7-2010.02/bin/unicorn_rails must be run inside RAILS_ROOT: #<LoadError: no such file to load -- action_controller>
Obviously:
root@warden:/usr/share/redmine# find /opt/rubyEE-1.8.7-2010.02/ -name "action_controller*" /opt/rubyEE-1.8.7-2010.02/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller.rb /opt/rubyEE-1.8.7-2010.02/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller
is there... no idea what's the cause. any advice?
RE: RubyEE upgrade problem with Redmine 1.0.1 - Added by Felix Schäfer about 14 years ago
You seem to be doing a lot of to-and-fro with your environment. I'd recommend trying a vanilla redmine on a vanilla MRI and all, and see if that works. If that works, you will probably need to rework your EE environment correctly.
RE: RubyEE upgrade problem with Redmine 1.0.1 - Added by Radek Antoniuk about 14 years ago
This is a vanilla rubyEE. I have installed it twice for the tests.
It only overlaps over the default ruby in the systems that you have to have anyway.
Besides, I have two machines and I am experiencing exactly the same thing on both.
So either I am making the same mistake or Redmine doesn't want to work this way with new rubyEE...