django-rq Redis客户端发送了AUTH,但未设置密码

时间:2019-05-31 04:37:15

标签: python django python-3.x redis django-rq

几天前我的django-rq工作了,但是我重新启动了计算机,现在它不工作。我可以确认redis正在运行:

brew services start redis

这是我尝试运行以启动Redis的方法:

python manage.py rqworker

这是我得到的错误:

Traceback (most recent call last):
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner
    response = get_response(request)
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/Users/casey/PycharmProjects/green_brick_django/code/pricecomparison_project/pricecomparison/maps/views.py", line 231, in get_backend_maps
    django_rq.enqueue(tasks.map_diffbots_backend, alexa_site_id=alexa_site.id)
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/django_rq/queues.py", line 226, in enqueue
    return get_queue().enqueue(func, *args, **kwargs)
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/rq/queue.py", line 327, in enqueue
    at_front=at_front, meta=meta
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/django_rq/queues.py", line 70, in enqueue_call
    return self.original_enqueue_call(*args, **kwargs)
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/django_rq/queues.py", line 66, in original_enqueue_call
    return super(DjangoRQ, self).enqueue_call(*args, **kwargs)
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/rq/queue.py", line 277, in enqueue_call
    job = self.enqueue_job(job, at_front=at_front)
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/rq/queue.py", line 353, in enqueue_job
    pipe.execute()
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/redis/client.py", line 3514, in execute
    self.shard_hint)
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/redis/connection.py", line 994, in get_connection
    connection.connect()
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/redis/connection.py", line 502, in connect
    self.on_connect()
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/redis/connection.py", line 570, in on_connect
    if nativestr(self.read_response()) != 'OK':
  File "/Users/casey/PycharmProjects/green_brick_django/venv1/lib/python3.6/site-packages/redis/connection.py", line 642, in read_response
    raise response
redis.exceptions.ResponseError: Client sent AUTH, but no password is set

在解决此问题之前和之后,我遇到了这个问题:

https://cmupinkypiggy.wordpress.com/2015/02/28/redis-password-after-installing-with-homebrew/

但是,密码在/usr/local/etc/redis.conf中仍然没有注释,因此现在我正式被卡住了。有什么想法吗?

1 个答案:

答案 0 :(得分:0)

由于某种原因,杀死了我们在端口上运行的旧Redis进程,将其修复。