Rails4 Dalli ArgumentError key cannot be blank

1k Views Asked by At

just run into an odd ArgumentError key cannot be blank error for a shiny Rails4 app with session store config to use memcache store

I've created an app to demo

https://github.com/khoan/rails4_dalli_session_store_error_app

ideas on how to fix?

Thanks in advance.

3

There are 3 best solutions below

0
On

i got this error, too. problem is memcached is down.(check application log)

check your memcached daemon!

2
On

I had this issue as well. Dalli 2.7.2 fixes the issue(dalli@52f2208), so I recommend upgrading.

2
On

We got this error too. Memcached is not down. It happen sometimes on production server and I managed to reproduce it on a pristine rails4 application using dalli_store or mem_cache_store as session_store. Sending a request with a forged blank session_id cookie will raise ArgumentError (key cannot be blank)