Skip to content

Instantly share code, notes, and snippets.

@bbozo
Last active January 4, 2016 05:29
Show Gist options
  • Select an option

  • Save bbozo/8575479 to your computer and use it in GitHub Desktop.

Select an option

Save bbozo/8575479 to your computer and use it in GitHub Desktop.
Dalli, possible issue with multitenant apps: Cannot share client between multiple processes
Connecting to database specified by database.yml
Cache write: test
Dalli::Server#connect 127.0.0.1:11211
Cache read: test
.... removed a bunch of boot-up ActiveRecord spam ...
Cache read: http://domain_a.somewhere.com/?
127.0.0.1:11211 failed (count: 0) RuntimeError: Cannot share client between multiple processes
Cache read: http://domain_b.somewhere.com/?
127.0.0.1:11211 failed (count: 0) RuntimeError: Cannot share client between multiple processes
#<Dalli::NetworkError: Socket operation failed, retrying...>
retrying request with new server
Dalli::Server#connect 127.0.0.1:11211
Started GET "/" for 178.218.169.6 at 2014-01-23 10:13:06 +0100
#<Dalli::NetworkError: Socket operation failed, retrying...>
retrying request with new server
Dalli::Server#connect 127.0.0.1:11211
Started GET "/" for 141.138.11.122 at 2014-01-23 10:13:06 +0100
Cache read: http://domain_b.somewhere.com/?
127.0.0.1:11211 failed (count: 0) RuntimeError: Cannot share client between multiple processes
#<Dalli::NetworkError: Socket operation failed, retrying...>
retrying request with new server
Dalli::Server#connect 127.0.0.1:11211
@batbayar-su

Copy link
Copy Markdown

why it's happening? How to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment