hi
I use seafile server pro 6.1.9 and since I upgraded fastcgi to wsgi I have memcached errors.
Log seahub.log:
2017-10-05 05:41:39,819 [ERROR] django.pylibmc:132 get MemcachedError: error 26 from memcached_get(:1:throttle_user_2): Transport endpoint is not connected
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/cloud/seafile-pro-server-6.1.9/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/cache/backends/memcached.py”, line 84, in get
val = self._cache.get(key)
Error: error 26 from memcached_get(:1:throttle_user_2): Transport endpoint is not connected
2017-10-05 05:43:50,974 [ERROR] django.pylibmc:132 get MemcachedError: error 26 from memcached_get(:1:throttle_ping_78.201.79.63): Transport endpoint is not connected
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/cloud/seafile-pro-server-6.1.9/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/cache/backends/memcached.py”, line 84, in get
val = self._cache.get(key)
Error: error 26 from memcached_get(:1:throttle_ping_78.201.79.63): Transport endpoint is not connected
2017-10-05 05:43:51,599 [ERROR] django.pylibmc:132 get MemcachedError: error 26 from memcached_get(:1:throttle_user_2): Transport endpoint is not connected
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/cloud/seafile-pro-server-6.1.9/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/cache/backends/memcached.py”, line 84, in get
val = self._cache.get(key)
Error: error 26 from memcached_get(:1:throttle_user_2): Transport endpoint is not connected
root@seafile:~# apt-get install libmemcached-dev
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
libmemcached-dev is already the newest version (1.0.18-4.1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
root@seafile:~#
Wow!
Great Idea
I just changed everything accordingly and works like charm so far.
If anyone likes to adapt this along with “New” PyLibMCCache backend you need to remove the “Unix:” in front of the location path so that your config looks like:
correct, when using PyLibMCCache and bind to unix socket is mandatory to remove the “unix:” I did read this yesterday as well but I was not able to discover which advantage is changing from the old MemcachedCache to the PyLibMCCache. Both are cache based in memory. If someone is able to discover these advantages, please post them in Forum.
I checked the django framework that we are actually using on seahub_thirdpart -which is in fact the 1.8.18 and is still compatible with our both configurations.