Project

General

Profile

Ruby on Rails application could not be started

Added by Dino Kozić over 11 years ago

I'm having troubles with setting up redmine for 2 days now.

We are using Ubuntu 12.04 with Wembin panel (the tough one).

I've came accross issue that ruby on rails app couldn't be started, this is the error:

A source file that the application requires, is missing.
It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded.
A required library may not installed. Please install all libraries that this application requires.
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
Error message:
no such file to load -- initializer
Exception class:
LoadError
Application root:
/usr/share/redmine

Here is the backtrace http://pastebin.com/czBUdJUS

Anyone with ideas? This is urgent.
Thanks in advance


Replies (6)

RE: Ruby on Rails application could not be started - Added by Jan Niggemann (redmine.org team member) over 11 years ago

You seem to use Ruby 1.8 (which is rather old BTW). What version of rails and passenger do you use?

RE: Ruby on Rails application could not be started - Added by Dino Kozić over 11 years ago

Rails 3.2.9

Passenger 2.2.11

Update: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Maybe there might be conflict between ruby and rails version?
PS: I also have ruby 1.9 version installed but not used. Tried to install RVM but it fails.

RE: Ruby on Rails application could not be started - Added by Alvin Zhong over 11 years ago

Hi, Dino. I face the same problems as your. Did you find the solution? Could anyone here help? Thanks!

RE: Ruby on Rails application could not be started - Added by Dino Kozić over 11 years ago

Hello.

No I have not find the solution yet.

I think this is conflict between versions of ruby and rails. I yet did not have chance to get RVM (Ruby version manager) to work over webmin.
I'll try and do it over remote control and then I'll let you know how it worked out.

RE: Ruby on Rails application could not be started - Added by Etienne Massip over 11 years ago

Try with no plugin.

Your stack trace seems to be referencing line 25 of file config/environment.rb but there is no such line in latest stable source:/tags/2.1.4/config/environment.rb.

What are the changes you made to Rm files?

RE: Ruby on Rails application could not be started - Added by Alvin Zhong over 11 years ago

Hey, Friends,

I solved it by chance. It seems the problem was caused by the wrong configuration of 'Passenger' module of Apache. So I did it like that:

1. $sudo passenger-install-apache2-module
So in this step, you will got something that tell you to change Apache configuration, like this:

    LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-3.0.18/ext/apache2/mod_passenger.so
   PassengerRoot /var/lib/gems/1.8/gems/passenger-3.0.18
   PassengerRuby /usr/bin/ruby1.8

2. Change the LoadModule in:

   $sudo vi /etc/apache2/mods-enabled/passenger.load

3. Change the PasssengerRoot and PassengerRuby in :

   $sudo vi /etc/apache2/mods-enabled/passenger.conf

4. restart apache:

   $sudo service apache2 restart

Now it works without error. I use Ubuntu 12.04.1

Hope it can be a little help. Best Wishes.

    (1-6/6)