pylibmc: Fix for `FAILED TO SEND AUTHENTICATION TO SERVER, no mechanism available` error

The current version of libmemcached has a bug that results in the following pylibmc error:

MemcachedError: error 40 from memcached_get: FAILED TO SEND AUTHENTICATION TO SERVER, no mechanism available -> libmemcached/sasl.cc:238

which affects quite a lot of people, many of whom switch to python-binary-memcached.

Now this is a libmemcached problem. Unfortunately, libmemcached does not seem to be maintained any longer. For this reason I forked the libmemcached library here, fixed this bug, and added instructions on how to make sure pylibmc uses the fixed library. It is however unlikely that the fixed libmemcached will make into Ubuntu any time soon.

This is where pylibmc comes in. I noticed that as of 1.6.0 you ship a wheel file that contains libmemcached.so. Is it possible to release future versions of pylibmc with the patched libmemcached.so?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

i got this error with pylibmc==1.6.1 pylibmc.Error: error 40 from memcached_set: (0x9fb000) FAILED TO SEND AUTHENTICATION TO SERVER, no mechanism available, host: 127.0.0.1:11211 -> libmemcached/sasl.cc:239

@lericson Any update on this? It would be nice to have a pylibmc release with a libmemcached version that actually works for everybody.