Passenger with Rails 2.3 application (MissingSourceFile) March 1, 2009
Posted by John Dewey in Apache, New Category, Passenger, WebServers.trackback
I’m such an idiot. I spent the last few days, trying to figure out the following error reported on my Ubuntu 8.10 Passenger install.
Error message: no such file to load -- application (MissingSourceFile) Exception class: Passenger::UnknownError
I was installing libapache2-mod-passenger_2.0.3 from the apt-get repo, which does not understand the application_controller.rb rename.
2.0.6 mod-passenger has yet to show up in the apt-get repo. You can use these instructions to install the brightbox mod-passenger build.
Thanks for the post. This explains stuff.
How did you install the brightbox version of libapache2-mod-passenger on a ubuntu 8.10? They only make it available for hardy. This may very well be a ubuntu question, but I would like to know the answer anyway
Jarl
As lame as it is, I am using the hardy build of libapache2-mod-passenger for 8.10. The intrepid versions are still at 2.0.3.
Hmm… lucky for us then that the package does also work with any newer software found in 8.10, right?
Even worse, the package for jaunty (9.04) is still 2.0.3:
http://packages.ubuntu.com/jaunty/web/libapache2-mod-passenger
Jarl
as a work around until passenger catches up I am going the path of least resistance and create a soft link to the old file. From the controllers folder: ln -s application_controller.rb application.rb
Has anybody tried the brightbox package on Jaunty? It seems like I have problems with that, it could also be something else. I am now going to try Greggs workaround using default package.
I figured it out, the problem was not BB passenger package on jaunty. The problem was that I forgot to set the RailsEnv variable in the apache conf file. The BB package for hardy also seem to work fine on jaunty as well.
ANybody know how this may effect other apps on the same server that have their rails gem frozen to Rails < 2.3
i.e. is it backwards compatible. Is it likely that I’ll have my older Apps looking for a non_existent application_controller.rb?
Hi Kevin -
It should be backward compatible. Passenger loads application_controller first, then falls back to application.
http://github.com/FooBarWidget/passenger/blob/f71974611d5ebe66875fbe3b053738926a5df18c/lib/phusion_passenger/railz/application_spawner.rb