# App no longer runs - MissingSourceFile for any controller

**URL:** <https://www.ruby-forum.com/t/app-no-longer-runs-missingsourcefile-for-any-controller/51808>\
**Category:** Rails\
**Created:** [January 7, 2006, 8:02am UTC](https://www.ruby-forum.com/t/app-no-longer-runs-missingsourcefile-for-any-controller/51808 "2006-01-07T08:02:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luca\_Pireddu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/8491ac/32.png) [@Luca\_Pireddu](https://www.ruby-forum.com/u/Luca_Pireddu)\
**Post date:** [January 7, 2006, 8:02am UTC](https://www.ruby-forum.com/t/app-no-longer-runs-missingsourcefile-for-any-controller/51808/1 "2006-01-07T08:02:22Z")

</div>

Hello all. I somehow managed to break my rails app running under Apache  
2  
with fcgi. With any action I try, it throws an exception saying it  
can’t  
find the source file. For instance, requesting an action in my  
welcome\_controller results in:  
MissingSourceFile in #  
No such file to load – app/controllers/welcome\_controller.rb

The log doesn’t show anything, except the exception backtrace (below).  
But, the application works fine using webrick. Further, I’ve tried  
running my  
old todo app (from the tutorial) with the same apache server, and it  
works  
fine.

What could be causing this problem? Is there anything obvious I may  
have  
missed? Thanks in advance.

Luca

ps: in case it helps, here is the full backtrace of the exception

MissingSourceFile in #  
No such file to load – app/controllers/welcome\_controller.rb  
RAILS\_ROOT: /usr/sunkay12/cshome/luca/pa\_root/pa\_web/public/…/config/…

Application Trace | Framework Trace | Full Trace

/usr/sunkay12/cshome/luca/usr-x86\_64/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active\_support/dependencies.rb:207:in  
`load' /usr/sunkay12/cshome/luca/usr-x86_64/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:207:in`load’  
#{RAILS\_ROOT}/vendor/plugins/engines/lib/dependencies\_extensions.rb:54:in  
`require_or_load' /usr/sunkay12/cshome/luca/usr-x86_64/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:22:in`depend\_on’  
/usr/sunkay12/cshome/luca/usr-x86\_64/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active\_support/dependencies.rb:178:in  
`require_dependency' /usr/sunkay12/cshome/luca/usr-x86_64/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:178:in`require\_dependency’  
/usr/sunkay12/cshome/luca/usr-x86\_64/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active\_support/dependencies.rb:134:in  
`load_file!' /usr/sunkay12/cshome/luca/usr-x86_64/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:97:in`const\_load!’  
/usr/sunkay12/cshome/luca/usr-x86\_64/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active\_support/dependencies.rb:80:in  
`each' /usr/sunkay12/cshome/luca/usr-x86_64/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:80:in`const\_load!’  
/usr/sunkay12/cshome/luca/usr-x86\_64/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active\_support/dependencies.rb:72:in  
`const_missing' generated/routing/recognition.rb:4:in`recognize\_path’  
/usr/sunkay12/cshome/luca/usr-x86\_64/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action\_controller/routing.rb:458:in  
`recognize!' /usr/sunkay12/cshome/luca/usr-x86_64/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/dispatcher.rb:38:in`dispatch’  
/usr/sunkay12/cshome/luca/usr-x86\_64/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi\_handler.rb:141:in  
`process_request' /usr/sunkay12/cshome/luca/usr-x86_64/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi_handler.rb:53:in`process!’  
/usr/sunkay12/cshome/luca/usr-x86\_64/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi\_handler.rb:52:in  
`each_cgi' /usr/sunkay12/cshome/luca/usr-x86_64/lib/ruby/site_ruby/1.8/fcgi.rb:597:in`each’  
/usr/sunkay12/cshome/luca/usr-x86\_64/lib/ruby/site\_ruby/1.8/fcgi.rb:597:in  
`each_cgi' /usr/sunkay12/cshome/luca/usr-x86_64/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi_handler.rb:52:in`process!’  
/usr/sunkay12/cshome/luca/usr-x86\_64/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi\_handler.rb:22:in  
`process!’  
/usr/sunkay12/cshome/luca/pa\_root/pa\_web/public/dispatch.fcgi:24  
This error occured while loading the following files:  
app/controllers/welcome\_controller.rb  
Request  
Parameters: None  
Show session dump  
Response  
Headers: {“cookie”=\>[], “Cache-Control”=\>“no-cache”}

---

<div class="post-metadata">

**Author:** ![Luca\_Pireddu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/8491ac/32.png) [@Luca\_Pireddu](https://www.ruby-forum.com/u/Luca_Pireddu)\
**Post date:** [January 7, 2006, 12:29pm UTC](https://www.ruby-forum.com/t/app-no-longer-runs-missingsourcefile-for-any-controller/51808/2 "2006-01-07T12:29:33Z")

</div>

Please use the Rails Engines plugin found here:

[http://opensvn.csie.org/rails\_engines/engines/tags/rel\_1.0.1](http://opensvn.csie.org/rails_engines/engines/tags/rel_1.0.1)

I appear to have broken stuff in the latest release. D’oh.

- james

---

<div class="post-metadata">

**Author:** ![Luca\_Pireddu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/8491ac/32.png) [@Luca\_Pireddu](https://www.ruby-forum.com/u/Luca_Pireddu)\
**Post date:** [January 7, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/app-no-longer-runs-missingsourcefile-for-any-controller/51808/3 "2006-01-07T17:33:17Z")

</div>

On January 7, 2006 04:27, James A. wrote:

> Please use the Rails Engines plugin found here:
> 
> [http://opensvn.csie.org/rails\_engines/engines/tags/rel\_1.0.1](http://opensvn.csie.org/rails_engines/engines/tags/rel_1.0.1)
> 
> I appear to have broken stuff in the latest release. D’oh.
> 
> - james

Thank you. Using that release fixed the problem.

Luca
