Marshal Data too short error with Rails

I’m getting this never before seen error quite a bit all of a sudden:

/!\ FAILSAFE /!\  Tue Jan 12 20:28:40 -0800 2010
  Status: 500 Internal Server Error
  marshal data too short

what helped in my case was to set the type of the ‘data’ column in the ’sessions’ table to ‘longtext’ (or ‘mediumtext’) instead of ‘text’:

class ChangeSessions2 < ActiveRecord::Migration
 def self.up
    execute "ALTER TABLE sessions CHANGE COLUMN data data LONGTEXT"
 end
 def self.down
 end
end

Monitor Your Web Site 24/7 - Receive email and SMS alerts anytime your web site goes down.

Related Posts

Leave a Reply

Monitor Your Web Site 24/7 - Receive email and SMS alerts anytime your web site goes down.

About Me

About Me
Record Technical Articles at Gooss.org.

Entries (RSS) and Comments (RSS). Valid XHTML and CSS and XFN.

© Copyright 2009 山海经. All rights reserved.

Social Bookmarks

Copyright © Designed by: Free WP Templates
Food Charts |  About Breast Milk |  Organic Food