lemuzhi_零度 2021-11-15 10:58 采纳率: 0%
浏览 16
已结题

docker容器日志,django错误信息获得意外的关键字参数username

我通过docker容器部署了一个项目,容器启动后一两秒就自动挂掉,docker logs 容器ID 打印日志提示如下,说获得了一个意外的关键字参数username,并从一个空列表中弹出,排查了很久,依然没有头绪,希望获得帮助
conn = self.transport.establish_connection()
File "/usr/local/lib/python3.8/site-packages/kombu/transport/virtual/base.py", line 936, in establish_connection
self._avail_channels.append(self.create_channel(self))
File "/usr/local/lib/python3.8/site-packages/kombu/transport/virtual/base.py", line 918, in create_channel
channel = self.Channel(connection)
File "/usr/local/lib/python3.8/site-packages/kombu/transport/redis.py", line 675, in init
self.client.ping()
File "/usr/local/lib/python3.8/site-packages/redis/client.py", line 1037, in ping
return self.execute_command('PING')
File "/usr/local/lib/python3.8/site-packages/redis/client.py", line 772, in execute_command
connection = pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/site-packages/redis/connection.py", line 990, in get_connection
connection = self.make_connection()
File "/usr/local/lib/python3.8/site-packages/redis/connection.py", line 1025, in make_connection
return self.connection_class(**self.connection_kwargs)
TypeError: init() got an unexpected keyword argument 'username'
2021-11-15 10:35:43,276 [CRITICAL] /usr/local/lib/python3.8/site-packages/celery/worker/worker.py [line:207] Unrecoverable error: TypeError("init() got an unexpected keyword argument 'username'")
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/kombu/transport/virtual/base.py", line 916, in create_channel
return self._avail_channels.pop()
IndexError: pop from empty list

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/redis/connection.py", line 988, in get_connection
connection = self._available_connections.pop()
IndexError: pop from empty list

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/celery/worker/worker.py", line 203, in start
self.blueprint.start(self)
File "/usr/local/lib/python3.8/site-packages/celery/bootsteps.py", line 116, in start
step.start(parent)
File "/usr/local/lib/python3.8/site-packages/celery/bootsteps.py", line 365, in start
return self.obj.start()
File "/usr/local/lib/python3.8/site-packages/celery/worker/consumer/consumer.py", line 311, in start
blueprint.start(self)
File "/usr/local/lib/python3.8/site-packages/celery/bootsteps.py", line 116, in start
step.start(parent)
File "/usr/local/lib/python3.8/site-packages/celery/worker/consumer/connection.py", line 21, in start
c.connection = c.connect()
File "/usr/local/lib/python3.8/site-packages/celery/worker/consumer/consumer.py", line 398, in connect
conn = self.connection_for_read(heartbeat=self.amqheartbeat)
File "/usr/local/lib/python3.8/site-packages/celery/worker/consumer/consumer.py", line 404, in connection_for_read
return self.ensure_connected(
File "/usr/local/lib/python3.8/site-packages/celery/worker/consumer/consumer.py", line 430, in ensure_connected
conn = conn.ensure_connection(
File "/usr/local/lib/python3.8/site-packages/kombu/connection.py", line 382, in ensure_connection
self._ensure_connection(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/kombu/connection.py", line 434, in _ensure_connection
return retry_over_time(
File "/usr/local/lib/python3.8/site-packages/kombu/utils/functional.py", line 312, in retry_over_time
return fun(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/kombu/connection.py", line 878, in _connection_factory
self._connection = self._establish_connection()
File "/usr/local/lib/python3.8/site-packages/kombu/connection.py", line 813, in _establish_connection
conn = self.transport.establish_connection()
File "/usr/local/lib/python3.8/site-packages/kombu/transport/virtual/base.py", line 936, in establish_connection
self._avail_channels.append(self.create_channel(self))
File "/usr/local/lib/python3.8/site-packages/kombu/transport/virtual/base.py", line 918, in create_channel
channel = self.Channel(connection)
File "/usr/local/lib/python3.8/site-packages/kombu/transport/redis.py", line 675, in init
self.client.ping()
File "/usr/local/lib/python3.8/site-packages/redis/client.py", line 1037, in ping
return self.execute_command('PING')
File "/usr/local/lib/python3.8/site-packages/redis/client.py", line 772, in execute_command
connection = pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.8/site-packages/redis/connection.py", line 990, in get_connection
connection = self.make_connection()
File "/usr/local/lib/python3.8/site-packages/redis/connection.py", line 1025, in make_connection
return self.connection_class(**self.connection_kwargs)
TypeError: init() got an unexpected keyword argument 'username'

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 11月23日
    • 创建了问题 11月15日

    悬赏问题

    • ¥15 如何让企业微信机器人实现消息汇总整合
    • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
    • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
    • ¥15 TLE9879QXA40 电机驱动
    • ¥20 对于工程问题的非线性数学模型进行线性化
    • ¥15 Mirare PLUS 进行密钥认证?(详解)
    • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
    • ¥20 想用ollama做一个自己的AI数据库
    • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
    • ¥15 请问怎么才能复现这样的图呀