jodosha/redis-store — Issue #96: ArgumentError: marshal data too short
Author: manuelmeurer
Created: 2011-10-17 14:52:27+00:00
State: open

I updated one app from Rails 3 to 3.1 and added Resque and now `ArgumentError: marshal data too short` keeps popping up in irregular intervals.

Stacktrace:

```
[GEM_ROOT]/gems/redis-store-1.0.0.1/lib/redis/store/marshalling.rb:29:in `load'
[GEM_ROOT]/gems/redis-store-1.0.0.1/lib/redis/store/marshalling.rb:29:in `_unmarshal'
[GEM_ROOT]/gems/redis-store-1.0.0.1/lib/redis/store/marshalling.rb:13:in `get'
[GEM_ROOT]/gems/redis-store-1.0.0.1/lib/redis/store/namespace.rb:13:in `block in get'
[GEM_ROOT]/gems/redis-store-1.0.0.1/lib/redis/store/namespace.rb:46:in `namespace'
[GEM_ROOT]/gems/redis-store-1.0.0.1/lib/redis/store/namespace.rb:13:in `get'
[GEM_ROOT]/gems/redis-store-1.0.0.1/lib/i18n/backend/redis.rb:59:in `lookup'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n/backend/base.rb:26:in `translate'
[GEM_ROOT]/gems/redis-store-1.0.0.1/lib/i18n/backend/redis.rb:33:in `translate'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n/backend/chain.rb:46:in `block (2 levels) in translate'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n/backend/chain.rb:44:in `catch'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n/backend/chain.rb:44:in `block in translate'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n/backend/chain.rb:43:in `each'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n/backend/chain.rb:43:in `translate'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n/backend/fallbacks.rb:44:in `block (2 levels) in translate'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n/backend/fallbacks.rb:43:in `catch'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n/backend/fallbacks.rb:43:in `block in translate'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n/backend/fallbacks.rb:42:in `each'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n/backend/fallbacks.rb:42:in `translate'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n.rb:156:in `block in translate'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n.rb:152:in `catch'
[GEM_ROOT]/gems/i18n-0.6.0/lib/i18n.rb:152:in `translate'
[GEM_ROOT]/gems/actionpack-3.1.1/lib/action_view/helpers/translation_helper.rb:48:in `translate'
```

The error is always triggered by calls to `I18n.t(...)` for existing keys. Then the error is not thrown, the translation is looked up correctly.
What could be the issue here and how could I debug it?