jump to navigation

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.

About these ads

Comments»

1. Jarl - April 22, 2009

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

2. John Dewey - April 22, 2009

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.

3. Jarl - April 23, 2009

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

4. Gregg - April 24, 2009

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

5. Jarl - May 4, 2009

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.

6. Jarl - May 4, 2009

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.

7. Kevin Monk - May 18, 2009

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?

8. John Dewey - May 18, 2009

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

9. Knight Samar - March 21, 2010

Hey,

I had the same problem on Ubuntu 9.10 and what i did was just create a symlink of application_controller.rb called application.rb in the same directory.

And it worked! IT WORKED! I searched one whole day for the solution and just saw someone passing a side-comment “Oh I have noticed this is a new thing in this version…” and it worked!

10. matthew - May 16, 2010

Knight Samar, you saved my day!

11. http://www.biotechnologyreview.net/ - January 14, 2013

Superb site you have here but I was curious about if you knew of
any forums that cover the same topics talked about in
this article? I’d really love to be a part of online community where I can get responses from other experienced individuals that share the same interest. If you have any recommendations, please let me know. Thanks!

12. Klaudia - February 10, 2013

The advantage about the funny pictures is that you can watch them along with the family.
Every day many new websites are coming on the internet,
which can be used for all sort of access to stuff that can make you
smile. A few young superstars have made their name just from being spread across the internet in videos and photos.

13. weird news in texas - March 5, 2013

The Butler Report ( is a world news summary website site which, in addition
to headline news, publishes US and worldwide events not covered by mainstream media.

He tells the tale of a young boy, a tot, who was riding
a toy car near the railroad crossing. The reliable reviews on business and forecast about products and services.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: