Forum: Ruby on Rails app no longer runs - MissingSourceFile for any controller

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
67800acb8e18674976b4a90b7463660f?d=identicon&s=25 Luca Pireddu (Guest)
on 2006-01-07 08:02
(Received via mailing list)
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 <controller not set>#<action not set>
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 <controller not set>#<action not set>
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"}
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-01-07 12:29
(Received via mailing list)
Please use the Rails Engines plugin found here:

   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
67800acb8e18674976b4a90b7463660f?d=identicon&s=25 Luca Pireddu (Guest)
on 2006-01-07 17:33
(Received via mailing list)
On January 7, 2006 04:27, James Adam wrote:
> Please use the Rails Engines plugin found here:
>
>    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
This topic is locked and can not be replied to.