[Ruby] Any help on how to debug a Rails RuntimeError?

James Hillyerd james at hillyerd.com
Sun Apr 22 10:16:28 PDT 2007


On 4/22/07, Joe Shapiro <joeshapiro at gmail.com> wrote:
> Hi Folks
> I've got an app that seems to be clobbering its session data. The session_id
> is correct but the data within it seems to be all cleared out. Under mongrel
> I don't see an error raised but under webrick I get the lengthy backtrace
> which follows this message. Can anyone offer any suggestions of how to wrap
> my head around this one? Thanks for any help you folks can offer. If I can't
> get it solved before then I'll probably be at hack night Tuesday lookin' for
> some help...
>

A shot in the dark, but...

One of the problems we ran into when we switched to memcache sessions
was that Ruby didn't know about certain model objects at the time it
was trying to unmarshall them.  This was especially apparent when you
have more than one app server accessing the cache.

There are a number of documents out there describing how to pre-load
your models so that Ruby is aware of them at "boot".  Although I
thought the latest versions of Rails did this on their own.

-james

-- 
James A. Hillyerd <james at hillyerd.com>
Chief Technical Officer - ActiveRain Corp


More information about the Ruby mailing list