Greg Freemyer
2007-Nov-02 18:16 UTC
Upgrading from old gems/engines to new. MyApp won''t start
All, I have a working Rails program with some older gems and it uses engines. (Rails 1.1.6 in particular). The initial controller is very simple:>>class IntranetController < ApplicationController def index # if session[:rbac_user].nil? # redirect_to "/active_rbac/login" # end end end << Notice I have basically everything commented out. I am testing it on a new machine with much more current gems and it is dieing right off the bat. (accessing url = localhost:3000/intranet) Any thoughts? My development.log file is showing: =======# Logfile created on Fri Nov 02 13:47:52 -0400 2007 by / Processing Base#index (for 127.0.0.1 at 2007-11-02 13:56:28) [GET] Session ID: 6322a4c6649466ebde05587e3ecbc2bd Parameters: {"action"=>"index", "controller"=>"intranet"} LoadError (Expected /srv/www/vhosts/forensic1000.dev/app/controllers/intranet_controller.rb to define IntranetController): /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:249:in `load_missing_constant'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:452:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:464:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/inflector.rb:250:in `constantize'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/core_ext/string/inflections.rb:148:in `constantize'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/routing.rb:1317:in `recognize'' /usr/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/dispatcher.rb:40:in `dispatch'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `synchronize'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:616:in `process_client'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:615:in `each'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:615:in `process_client'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:734:in `run'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:734:in `initialize'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:734:in `new'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:734:in `run'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:718:in `initialize'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:718:in `new'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:718:in `run'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in `run'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `each'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `run'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:126:in `run'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run'' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:242 /usr/bin/mongrel_rails:16:in `load'' /usr/bin/mongrel_rails:16 Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error) =========== I have gotten a simple demo Rails app to run via mongrel, so I assume my setup is right, it is just that my code is out of date for the new gems. Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Greg Freemyer
2007-Nov-02 18:31 UTC
Re: Upgrading from old gems/engines to new. MyApp won''t start
Looks like at least one of my problems is my use of engines. I''ll have to see where I go from here. Sorry for the noise. Greg On 11/2/07, Greg Freemyer <greg.freemyer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> All, > > I have a working Rails program with some older gems and it uses > engines. (Rails 1.1.6 in particular). > > The initial controller is very simple: > >> > class IntranetController < ApplicationController > def index > # if session[:rbac_user].nil? > # redirect_to "/active_rbac/login" > # end > end > end > << > > Notice I have basically everything commented out. > > I am testing it on a new machine with much more current gems and it is > dieing right off the bat. (accessing url = localhost:3000/intranet) > > Any thoughts? > > My development.log file is showing: > =======> # Logfile created on Fri Nov 02 13:47:52 -0400 2007 by / > > > Processing Base#index (for 127.0.0.1 at 2007-11-02 13:56:28) [GET] > Session ID: 6322a4c6649466ebde05587e3ecbc2bd > Parameters: {"action"=>"index", "controller"=>"intranet"} > > > LoadError (Expected > /srv/www/vhosts/forensic1000.dev/app/controllers/intranet_controller.rb > to define IntranetController): > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:249:in > `load_missing_constant'' > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:452:in > `const_missing'' > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:464:in > `const_missing'' > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/inflector.rb:250:in > `constantize'' > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/core_ext/string/inflections.rb:148:in > `constantize'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/routing.rb:1317:in > `recognize'' > /usr/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/dispatcher.rb:40:in `dispatch'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in > `process'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > `synchronize'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > `process'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:616:in > `process_client'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:615:in `each'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:615:in > `process_client'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:734:in `run'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:734:in `initialize'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:734:in `new'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:734:in `run'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:718:in `initialize'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:718:in `new'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:718:in `run'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in > `run'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > `each'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > `run'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:126:in `run'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in > `run'' > /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:242 > /usr/bin/mongrel_rails:16:in `load'' > /usr/bin/mongrel_rails:16 > > > Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/templates/rescues/layout.rhtml > (500 Internal Error) > ===========> > I have gotten a simple demo Rails app to run via mongrel, so I assume > my setup is right, it is just that my code is out of date for the new > gems. > > Greg > -- > Greg Freemyer > Litigation Triage Solutions Specialist > http://www.linkedin.com/in/gregfreemyer > > The Norcross Group > The Intersection of Evidence & Technology > http://www.norcrossgroup.com >-- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---