A year and a half ago, fortunately (otherwise I never would have remembered the problem), I wrote about a problem running Redmine. Gentoo apparently updates individual ruby packages, but some of them, dev-ruby/rmagick in particular, need to be built against a certain version of ruby or something and Gentoo doesn’t track that.

Just a few more details on diagnosis and the solution.

Diagnosis:

basalt public # pwd
/var/lib/redmine/public
basalt public # spawn-fcgi -p 9000 -n -- dispatch.fcgi
/usr/lib/ruby/gems/1.8/gems/rmagick-2.13.0/lib/RMagick2.so: This installation of RMagick was configured with ImageMagick 6.6.5 but ImageMagick 6.7.1-0 is in use. (RuntimeError)
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in `new_constants_in'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
        from /usr/lib/ruby/gems/1.8/gems/rmagick-2.13.0/lib/RMagick.rb:11
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in `new_constants_in'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/core_ext/kernel/requires.rb:7:in `require_library_or_gem'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/core_ext/kernel/requires.rb:5:in `require_library_or_gem'
        from /var/lib/redmine/lib/redmine.rb:16
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in `new_constants_in'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
        from /var/lib/redmine/vendor/plugins/advanced_roadmap/init.rb:6:in `evaluate_init_rb'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/rails/plugin.rb:158:in `evaluate_init_rb'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/rails/plugin.rb:154:in `evaluate_init_rb'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/rails/plugin.rb:48:in `load'
        from ./../config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in `load'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/rails/plugin/loader.rb:38:in `load_plugins'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/rails/plugin/loader.rb:37:in `each'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/rails/plugin/loader.rb:37:in `load_plugins'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.rb:369:in `load_plugins'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.rb:165:in `process'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.rb:113:in `send'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/initializer.rb:113:in `run'
        from ./../config/environment.rb:20
        from dispatch.fcgi:21:in `require'
        from dispatch.fcgi:21

I need to remember to do that step, next time fastcgi is crashing. What the hell is up with not putting that in the crash log???

basalt redmine # ls -l /var/log/redmine/fastcgi.crash.log 
-rw-r--r-- 1 lighttpd lighttpd 112567 Sep 14 14:39 /var/log/redmine/fastcgi.crash.log
basalt redmine # tail -f fastcgi.crash.log 
[13/Sep/2011:08:49:49 :: 32061] asked to stop immediately
[13/Sep/2011:08:49:49 :: 32061] stopping after explicit exit
[13/Sep/2011:08:49:49 :: 32060] asked to stop immediately
[13/Sep/2011:08:49:49 :: 32060] stopping after explicit exit
[13/Sep/2011:08:49:49 :: 32065] asked to stop immediately
[13/Sep/2011:08:49:49 :: 32065] stopping after explicit exit
[13/Sep/2011:08:49:49 :: 32066] asked to stop immediately
[13/Sep/2011:08:49:49 :: 32066] stopping after explicit exit
[13/Sep/2011:08:49:49 :: 32064] asked to stop immediately
[13/Sep/2011:08:49:49 :: 32064] stopping after explicit exit


[14/Sep/2011:14:39:11 :: 853] starting
[14/Sep/2011:14:39:11 :: 852] starting
[14/Sep/2011:14:39:11 :: 848] starting
[14/Sep/2011:14:39:11 :: 851] starting
[14/Sep/2011:14:39:19 :: 856] starting
[14/Sep/2011:14:39:19 :: 855] starting
[14/Sep/2011:14:39:19 :: 854] starting
[14/Sep/2011:14:39:19 :: 857] starting

Not helpful.

Solution

basalt public # emerge -v rmagick

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-ruby/rmagick-2.13.0-r1  USE="-doc -test" RUBY_TARGETS="ruby18" 1,158 kB

Total: 1 package (1 reinstall), Size of downloads: 1,158 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-ruby/rmagick-2.13.0-r1

Done. —–



blog comments powered by Disqus

Published

14 September 2011

Category

work

Tags