On 4/27/05, Carl Youngblood
<carlwork-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have my rails app deployed and everything seems to be working fine
> in development mode, but when I export RAILS_ENV=production and
> restart lighttpd I get a blank page. Examining the logs, I see the
> following in fastcgi.crash.log:
>
> [Tue Apr 26 19:30:32 EDT 2005] Dispatcher failed to catch: Session
> contained objects where the class definition wasn''t available.
> Remember to require classes for all objects kept in the session. The
> session has been deleted. (Original exception: No database file
> specified. Missing argument: dbfile [ArgumentError])
> (ActionController::SessionRestoreError)
>
/usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/cgi_process.rb:90:in
> `session''
>
/usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:689:in
> `assign_shortcuts''
>
/usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:326:in
> `process''
>
/usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/rescue.rb:20:in
> `process_with_exception''
> /usr/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:34:in
`dispatch''
> /home/www/exsec.ycs.biz/public/dispatch.fcgi:20
> /home/www/exsec.ycs.biz/public/dispatch.fcgi:18:in `each_cgi''
> /usr/lib/ruby/1.8/fcgi.rb:597:in `each''
> /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi''
> /home/www/exsec.ycs.biz/public/dispatch.fcgi:18
>
> It looks like it can''t find my db file, but my database.yml seems
> right, and the db files are there. Here is my database.yml:
>
> development:
> adapter: sqlite
> dbfile: db/exsec_development.db
>
> test:
> adapter: sqlite
> dbfile: db/exsec_test.db
>
> production:
> adapter: sqlite
> database: db/exsec_production.db
This should be dbfile: db/blah.db
> Thanks in advance for any help you might be able to give me.
>
> Carl
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Cheers
Koz