Project

General

Profile

Rails version issue when deploying Redmine

Added by Adinda Praditya over 15 years ago

Hi All,

I want to deploy Redmine in our internal server using mod_rails. After following its installation and setup the passenger, and go to the app, i got "Ruby on Rails application could not be started" and i was told to check the web server's log file. Here's the log

===
[Fri May 29 18:25:14 2009] [notice] Apache/2.2.8 (Linux/SUSE) DAV/2 PHP/5.2.6 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 SVN/1.5.0-dev Phusion_Passenger/2.2.2 mod_perl/2.0.4-dev Perl/v5.10.0 configured -- resuming normal operations
Missing the Rails 2.2.2 gem. Please `gem install -v=2.2.2 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. ===

I have the rails version so i don't know what went wrong. This is my first question.

Another question. If i comment the RAILS_GEM_VERSION in environment.rb, restart the server and i found this: error

uninitialized constant CGI::Session

I googled the error and found this blog post

http://giantrobots.thoughtbot.com/2009/ … de-gotchas

and updated the Hoptoad Notifier, i still got the same error. Here's the output of `gem list rails` command:

  • LOCAL GEMS ***

rails (2.3.2, 2.2.2, 2.1.0, 1.2.5)

Regardless rails version should i use, please help me deploying Redmine.

Thanks,

apraditya
twitter.com/apraditya


Replies (5)

RE: Rails version issue when deploying Redmine - Added by Mr Embedded over 15 years ago

I am having the exact same issue using:

ruby (1.8.7)

actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource (2.3.2)
activesupport (2.3.2)
rails (2.3.2)
rake (0.8.7)

gems (1.3.3)

I am usinging Debian Lenny and supplemented the Redmine installation info in the wiki with http://blog.josefsson.org/2008/10/17/redmine-on-debian-lenny-using-lighttpd/ and also used the link referenced by you to help clean up all of my errors except this last one.

RE: Rails version issue when deploying Redmine - Added by Mr Embedded over 15 years ago

Actually I fixed my issue:

1) mkdir ~/.gems

$ export GEM_HOME=$HOME/.gems

$ export GEM_PATH=/usr/local/lib/ruby/gems/1.8:$GEM_HOME

2)Open ~/.bashrc file and add:

export GEM_HOME=$HOME/.gems

3) To install gems:

$ gem install GEM_NAME -v VERSION -i ~/.gems/

Basically it was a path issue for me. Also be aware that 2.2.2 needs application.rb NOT application_controller.rb so if you are alternating between 2.2.2 and 2.3.2 then its best to just have a copy of each.

RE: Rails version issue when deploying Redmine - Added by Adinda Praditya over 15 years ago

Thanks Mr Embedded! It doesn't work for my issue but your post gave me the idea to install rails gem to the path where ruby enterprise edition is installed. So here's what i did:

  1. gem install rails -v 2.2.2 -i /opt/ruby-enterprise-1.8.6-20090421/lib/ruby/gems/1.8/

I restarted the apache service and no more errror. However this doesn't make redmine run! I got Redmine 404 page. Which i don't know why and what to check. Please help.

Adinda P

RE: Rails version issue when deploying Redmine - Added by Mr Embedded over 15 years ago

I am still using the webrick to run it. Try to see if that works first before trying to setup apache. Right now thats what I am attempting, the apache config.

RE: Rails version issue when deploying Redmine - Added by Adinda Praditya over 15 years ago

I solved the last 404 issue by uncommenting this line in environment.rb:

config.action_controller.relative_url_root

Thanks everyone!

    (1-5/5)