Project

General

Profile

activesupport issue with Redmine

Added by John Evans over 11 years ago

Greetings,

I'm setting up Redmine for the first time.

Per the instructions found here: http://www.redmine.org/boards/2/topics/667 I hope I'm providing enough information for everyone to assist me:

$ /usr/local/ruby/bin/ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]

$ /usr/local/ruby/bin/rails --version
Rails 3.2.9

Operating System: Ubuntu Server 10.04 (fully patched)

$ mysql -V
mysql Ver 14.14 Distrib 5.1.66, for debian-linux-gnu (x86_64) using readline 6.1

When I run Redmine through Apache with Fast_CGI enabled, it takes a while to load, and then I get a page that says: Internal Server Error

My Apache logs say:

[Tue Dec 18 15:16:15 2012] [warn] FastCGI: (dynamic) server "/opt/www/ag.redmine/public/dispatch.fcgi" started (pid 9569)
/usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.
[Tue Dec 18 15:16:18 2012] [warn] FastCGI: (dynamic) server "/opt/www/ag.redmine/public/dispatch.fcgi" started (pid 9573)
/usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- fcgi (LoadError)
from /usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `block in require'
from /usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/fastcgi.rb:1:in `<top (required)>'
from /opt/www/ag.redmine/public/dispatch.fcgi:20:in `<main>'
[Tue Dec 18 15:16:19 2012] [warn] FastCGI: (dynamic) server "/opt/www/ag.redmine/public/dispatch.fcgi" (pid 9569) terminated by calling exit with status '1'

If I run dispatch.fcgi from the command-line, I receive similar errors:

/public$ ./dispatch.fcgi
/usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.
/usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- fcgi (LoadError)
from /usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `block in require'
from /usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/fastcgi.rb:1:in `<top (required)>'
from ./dispatch.fcgi:20:in `<main>'

i have installed the fcgi gem.

# gem list --local | grep fcgi
fcgi (0.8.8)

Here is the output from the script/about program:

@$ RAILS_ENV=production script/about
/usr/local/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.

Environment:
Redmine version 2.2.0.stable
Ruby version 1.9.3 (x86_64-linux)
Rails version 3.2.9
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed@

I'm a C/PHP/Perl guy, not a Ruby guy. I'm not sure how to resolve this. Is this a problem with my fresh install of Ruby (from source) or Redmine (also installed from source)?

Any assistance you can provide would be greatly appreciated.


Replies (2)

RE: activesupport issue with Redmine - Added by John Evans over 11 years ago

I've resolved this problem. Turns out Ruby 1.9.3 doesn't like iconv which is used in some gems. I downgraded to Ruby 1.9.2 and installed am now running Redmine through Passenger.

RE: activesupport issue with Redmine - Added by Jan Niggemann (redmine.org team member) over 11 years ago

iconv is just deprecated in ruby 1.9.3, that doesn't mean it's no longer working. Your issue was something else, as I'm running 1.9.3p327 without problems...

    (1-2/2)