Memcached problem

After do-release-upgrade my ubuntu 14.04 LTS to 16.04 LTS I had problems starting my seafile 6.2.3

Instead of

    'BACKEND': 'django_pylibmc.memcached.PyLibMCCache',
    'LOCATION': '127.0.0.1:11211',

I had to use (found this in some other post)

    'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
    'LOCATION': 'unix:/var/run/memcached.sock',

to make memcached work. Otherwise seahub won’t start.

You need to install django_pylibmc and pylibmc via pip.

They are of course installed. It fails to start nevertheless.

Then you probably should try to reinstall them - they might have been linked to an old version of some library that doesn’t exist anymore.

Before when they still worked (ubuntu 14.04) I had also problems as they threw a few errors on startup of seafile and only were quite after a few seconds.

Why is the setup I’m using now not the preferred one ?

Edit: Reinstalled django_pylibmc and pylibmc and now it starts with some errors in seahub.log

2018-01-16 15:41:35,952 [ERROR] django.pylibmc:132 get MemcachedError: error 26 from memcached_get(:1:throttle_user_605): 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 “/srv/seafile/informatik/seafile-server-6.2.3/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_605): Transport endpoint is not connected

Here is a guide.
https://nohatech.se/seafile-memcached-ip/

To read how to use it over socket then you need to locate that section in the installation guide - in this guide you can also read what package you need to install to get it to work.
https://nohatech.se/how-to-setup-seafile-ubuntu/

Have you installed the following package?
python-memcache memcached libmemcached-dev zlib1g-dev

Edit:
6.2.3 have a bug in memeached, pasted this text from my guide:
If your running 6.2.3 you need to do a fix before using memcached
Before your doing the changes you need to stop Seafile.

cd /opt/nohatech/seafile-server-latest/
./seafile.sh stop
./seahub.sh stop

Then you need to open the file that we are going to change.

nano /opt/nohatech/seafile-server-latest/runtime/seahub.conf

And then you need to add this line.

threads = 5

End of the bug fix

Thanks for the nice guide. My question remains : Why not just using this setup which does seem to work without any fixes

'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'unix:/var/run/memcached.sock',