Redis lock manager backend - exception on connect
When switching to the redis lock manager backend none of the tasks seem to be able to use it (this is all on the same machine which connects fine to the celery task backend). It says there's a syntax error in the exception:
[2019-12-12 18:22:27,016: ERROR/ForkPoolWorker-3] Task mayan.apps.sources.tasks.task_check_interval_source[99da058a-e2a6-4cad-abf2-82e56fc61e39] raised unexpected: ResponseError('Syntax error, try CLIENT (LIST | KILL | GETNAME | SETNAME | PAUSE | REPLY)')
Traceback (most recent call last):
File "/opt/mayan-edms/local/lib/python3.7/site-packages/celery/app/trace.py", line 385, in trace_task
R = retval = fun(*args, **kwargs)
File "/opt/mayan-edms/local/lib/python3.7/site-packages/celery/app/trace.py", line 648, in __protected_call__
return self.run(*args, **kwargs)
File "/opt/mayan-edms/local/lib/python3.7/site-packages/mayan/apps/sources/tasks.py", line 33, in task_check_interval_source
lock = locking_backend.acquire_lock(lock_id, DEFAULT_SOURCE_LOCK_EXPIRE)
File "/opt/mayan-edms/local/lib/python3.7/site-packages/mayan/apps/lock_manager/backends/redis_lock.py", line 15, in acquire_lock
return RedisLock(name=name, timeout=timeout)
File "/opt/mayan-edms/local/lib/python3.7/site-packages/mayan/apps/lock_manager/backends/redis_lock.py", line 30, in __init__
redis_lock_instance = self.get_redis_connection().lock(
File "/opt/mayan-edms/local/lib/python3.7/site-packages/mayan/apps/lock_manager/backends/redis_lock.py", line 21, in get_redis_connection
server.client_id()
File "/opt/mayan-edms/local/lib/python3.7/site-packages/redis/client.py", line 873, in client_id
return self.execute_command('CLIENT ID')
File "/opt/mayan-edms/local/lib/python3.7/site-packages/redis/client.py", line 775, in execute_command
return self.parse_response(connection, command_name, **options)
File "/opt/mayan-edms/local/lib/python3.7/site-packages/redis/client.py", line 789, in parse_response
response = connection.read_response()
File "/opt/mayan-edms/local/lib/python3.7/site-packages/redis/connection.py", line 642, in read_response
raise response
redis.exceptions.ResponseError: Syntax error, try CLIENT (LIST | KILL | GETNAME | SETNAME | PAUSE | REPLY)```
Edited by Rob Knight