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

Transport endpoint not connected #25

Open
AnderUstarroz opened this issue Aug 31, 2017 · 3 comments
Open

Transport endpoint not connected #25

AnderUstarroz opened this issue Aug 31, 2017 · 3 comments

Comments

@AnderUstarroz
Copy link

I am using the following configuration to connect to my AWS cache server:

CACHES = {
    'default': {
        'BACKEND': 'django_elasticache.memcached.ElastiCache',
        'LOCATION': 'my-project.fddss4.cfg.apse2.cache.amazonaws.com:11211',
    }
}

But I am having some issues, from time to time it throws the following error:

    cache_key = get_cache_key(request, self.key_prefix, 'GET', cache=self.cache)
  File "/var/www/my-project/env/lib/python3.6/site-packages/django/utils/cache.py", line 318, in get_cache_key
    headerlist = cache.get(cache_key)
  File "/var/www/my-project/env/lib/python3.6/site-packages/django_elasticache/memcached.py", line 18, in wrapper
    return f(self, *args, **kwds)
  File "/var/www/my-project/env/lib/python3.6/site-packages/django_elasticache/memcached.py", line 108, in get
    return super(ElastiCache, self).get(*args, **kwargs)
  File "/var/www/my-project/env/lib/python3.6/site-packages/django/core/cache/backends/memcached.py", line 76, in get
    val = self._cache.get(key)
pylibmc.Error: error 26 from memcached_get(:1:views.decorators.cache.cache_): Transport endpoint is not connected

Returning HTTP Error 504 Gateway timeout

Somebody knows why is this happening?

@juanromerocortes
Copy link

@AnderUstarroz Did you solve this issue?
I've just realized I'm getting the same error in the new project.

matteiuspi pushed a commit to CashStar/django-elasticache that referenced this issue Mar 19, 2021
@Iazzetta
Copy link

Iazzetta commented Apr 6, 2021

Check if your Memcache/Redis be in the same VPC of your ELB/EC2. Add the same security group of your EC2 in Elastic Cache.

@Anton-Shutik
Copy link

Having same issue. Look like this might be related - django-pylibmc/django-pylibmc#48

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

4 participants