I'm occasionally getting an odd Rails error that says "marshal data
Our entire web app seems to be working fine -- we can post forms, save
models, redirect, login, etc, without any problems. Then out of
nowhere a request will result in the 500 error "marshal data too
short". Subsequent requests to *any* page then result in the same
error -- even pages that were previously working.
The only way to (temporarily) make the problem go away is to `rake
db:sessions:clear` -- but I need to determine what the root cause is.
Some forum posts led me to believe the `data` column in the Rails
sessions table was too short. I have it as 'text', which should
support roughly 65,000 characters. The data in my actual session is
only 305 characters, so I doubt this is the problem.
It's basically impossible for me to replicate the problem exactly, as
I have no idea what's triggering it. If anyone could shed some light
on how I could investigate further, I'd be ever so thankful