Memcached on a cluster setup


#1

I’m trying to install SeaFile on a cluster for the first time. To test, I have an Amazon ElastiCache server set up but the server seems to fail to connect. I get this on my seahub.log:

ServerDown: error 47 from memcached_get(:1:autofilled): (0x558351465820) SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY, host: elasti.cache.amazonaws.com:11211 -> libmemcached/get.cc:314
2018-11-29 21:43:40,211 [ERROR] django.pylibmc:167 set_many MemcachedError: error 47 from memcached_set_multi: (0x558351465820) SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY, host: elasti.cache.amazonaws.com:11211 -> libmemcached/connect.cc:720
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/django_pylibmc/memcached.py”, line 165, in set_many
return super(PyLibMCCache, self).set_many(*args, **kwargs)
File “/home/seafile/cloud/seafile-pro-server-6.3.7/seahub/thirdpart/django/core/cache/backends/memcached.py”, line 150, in set_many
self._cache.set_multi(safe_data, self.get_backend_timeout(timeout))

ServerDown: error 47 from memcached_set_multi: (0x558351465820) SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY, host: elasti.cache.amazonaws.com:11211 -> libmemcached/connect.cc:720
2018-11-29 21:43:40,222 [ERROR] django.pylibmc:132 get MemcachedError: error 47 from memcached_get(:1:ENABLE_TWO_FACTOR_AUTH): (0x558351465820) SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY, host: elasti.cache.amazonaws.com:11211 -> libmemcached/get.cc:314
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/django_pylibmc/memcached.py”, line 130, in get
return super(PyLibMCCache, self).get(key, default, version)
File “/home/seafile/cloud/seafile-pro-server-6.3.7/seahub/thirdpart/django/core/cache/backends/memcached.py”, line 79, in get
val = self._cache.get(key)

ServerDown: error 47 from memcached_get(:1:ENABLE_TWO_FACTOR_AUTH): (0x558351465820) SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY, host: elasti.cache.amazonaws.com:11211 -> libmemcached/get.cc:314

I can ping the elasticache server and I made sure the instances share the same subnet. Any ideas what could be going wrong?


#2

Never you mind, there was a typo =D