File "C:\Python38\lib\site-packages\redis\connection.py", line 567, in connect
self.on_connect()
File "C:\Python38\lib\site-packages\redis\connection.py", line 663, in on_connect
self.send_command('SELECT', self.db)
File "C:\Python38\lib\site-packages\redis\connection.py", line 725, in send_command
self.send_packed_command(self.pack_command(*args),
File "C:\Python38\lib\site-packages\redis\connection.py", line 701, in send_packed_command
self.check_health()
File "C:\Python38\lib\site-packages\redis\connection.py", line 685, in check_health
if nativestr(self.read_response()) != 'PONG':
File "C:\Python38\lib\site-packages\redis\connection.py", line 749, in read_response
self.disconnect()
File "C:\Python38\lib\site-packages\kombu\transport\redis.py", line 959, in disconnect
channel._on_connection_disconnect(self)
File "C:\Python38\lib\site-packages\kombu\transport\redis.py", line 556, in _on_connection_disconnect
self.connection.cycle._on_connection_disconnect(connection)
File "C:\Python38\lib\site-packages\kombu\transport\redis.py", line 280, in _on_connection_disconnect
self.poller.unregister(connection._sock)
File "C:\Python38\lib\site-packages\kombu\utils\eventio.py", line 269, in unregister
fd = fileno(fd)
File "C:\Python38\lib\site-packages\kombu\utils\compat.py", line 99, in fileno
if isinstance(f, numbers.Integral):
File "C:\Python38\lib\abc.py", line 98, in __instancecheck__
return _abc_instancecheck(cls, instance)
RecursionError: maximum recursion depth exceeded while calling a Python object
[08/Aug/2020 18:00:53] "GET /course/ HTTP/1.1" 500 5459037
celery会使用redis数据库,这时有可能是因为数据库连接redis数据库的密码错误导致的。确认一下密码。
BROKER_URL = 'redis://:xxxxx@192.168.100.159:6379/1'
# 后端结果存储
CELERY_RESULT_BACKEND = 'redis://:xxxxx@192.168.100.159:6379/2'