Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguous error codes: 3, 5, 21, 26, 47 etc. What are they? #296

Open
evscott opened this issue Dec 16, 2024 · 3 comments
Open

Ambiguous error codes: 3, 5, 21, 26, 47 etc. What are they? #296

evscott opened this issue Dec 16, 2024 · 3 comments

Comments

@evscott
Copy link

evscott commented Dec 16, 2024

Hi everyone, I am investigating intermittent failures in a Django application when performing cache operations during Celery task execution which only emit error codes that don't seem to be documented. Would someone please clarify what these error codes mean? Is there some logical mapping of them to libmemcached errors?

Others have reported confusion about these error codes which supports my belief that they are not (clearly) documented anywhere. Clarifying this would be very helpful for users of this package.

Here are some examples of the error codes and cache operations:

error 3 from memcached_get
error 15 from memcached_get
error 15 from memcached_delete
error 21 from memcached_set
error 26 from memcached_get
error 47 from memcached_set

These are the package versions I'm using:

django = 1.11.29
pylibmc = 1.6.3
libmemcached = 1.1.4-1
celery = 4.4.7

And this is my Django cache configuration, note that I am using a single cache host that's in a Docker container on the same machine as my Django application:

MEMCACHED_HOST = os.environ.get('MEMCACHED_HOST', 'memcached')
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
        'LOCATION': '{}:11211'.format(MEMCACHED_HOST),
    }
}
@evscott
Copy link
Author

evscott commented Dec 16, 2024

@lericson
Copy link
Owner

lericson commented Dec 16, 2024 via email

@evscott
Copy link
Author

evscott commented Dec 16, 2024

Oh, interesting. Will you be looking into how this builds against 1.1.x in that case? Do you recommend using a specific, older version of libmemcached?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants