Rails - marshal data too short

Once upon a time, I get this error after loading large data into my Rails application.
marshal data too short

After searching through some sites and forums, I find a way that works for me. And it should works for you too if you're using Sessions table in your application database. Here is the way to solve that error.

  • Open your phpMyAdmin or your MySQL command line
  • Find the database used by your Rails application and if you're using command line, change to that database.
  • Look for Sessions table and change the data type for data column from text into longtext
Hope that way work for you too. For information : I use Rails 2.3.7 along with MySQL 5.0 database.

Enter your email address:

Delivered by FeedBurner