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

Cann't access to redis-cluster inside internal docker-compose network #7

Open
Sanshain opened this issue Jan 23, 2022 · 0 comments
Open

Comments

@Sanshain
Copy link
Owner

Sanshain commented Jan 23, 2022

Cann't access to redis-cluster inside internal docker-compose network:

How o reproduce?

  • run docker-compose up from this one

  • start inside redis_tests bash terminal:

python app.py -h redis-cluster

output:

['app.py', '-h', 'redis_cluster']
{'-h': 'redis_cluster'}
Traceback (most recent call last):
  File "app.py", line 51, in <module>
    test(
  File "/app/utils.py", line 39, in wrapper
    r = fn(*args, **kwargs)
  File "app.py", line 41, in test
    redis.zadd('ddd', {i: i})
  File "/usr/local/lib/python3.8/site-packages/redis/client.py", line 2688, in zadd
    return self.execute_command('ZADD', name, *pieces, **options)
  File "/usr/local/lib/python3.8/site-packages/rediscluster/client.py", line 555, in execute_command
    return self._execute_command(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/rediscluster/client.py", line 721, in _execute_command
    raise ClusterError('TTL exhausted.')
rediscluster.exceptions.ClusterError: TTL exhausted.
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

1 participant