xhongc / music-tag-web

音乐标签编辑器,可编辑本地音乐文件的元数据(Editable local music file metadata.)
https://xiers-organization.gitbook.io/music-tag-web-v2
GNU General Public License v3.0
2.55k stars 170 forks source link

2.2.2版本升级到v2后无法自动刮削 #237

Closed YJwu2023 closed 1 month ago

YJwu2023 commented 2 months ago

版本:2.2.2 部署方式:Docker Compose 问题表现: 升级到v2之后自动刮削出现问题,LOG一直显示如下,再开启自动刮削会很快中断 image docker报错如下(有多次触发BUG log):


  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.9/site-packages/redis/connection.py", line 552, in connect
    sock = self._connect()
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 609, in _connect
    raise err
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 597, in _connect
    sock.connect(socket_address)
  File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
    self._internal_connect(address)
  File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
    raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 472, in _reraise_as_library_errors
    yield
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 459, in _ensure_connection
    return retry_over_time(
  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 318, in retry_over_time
    return fun(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 934, in _connection_factory
    self._connection = self._establish_connection()
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 860, in _establish_connection
    conn = self.transport.establish_connection()
  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 975, in establish_connection
    self._avail_channels.append(self.create_channel(self))
  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 953, in create_channel
    channel = self.Channel(connection)
  File "/usr/local/lib/python3.9/site-packages/kombu/transport/redis.py", line 744, in __init__
    self.client.ping()
  File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 1351, in ping
    return self.execute_command('PING')
  File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 875, in execute_command
    conn = self.connection or pool.get_connection(command_name, **options)
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 1185, in get_connection
    connection.connect()
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 557, in connect
    raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to 127.0.0.1:6379. Connection refused.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/viewsets.py", line 114, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 43, in _wrapper
    return bound_method(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 505, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 465, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 502, in dispatch
    response = handler(request, *args, **kwargs)
  File "applications/task/views.py", line 240, in applications.task.views.TaskViewSets.batch_auto_update_id3
  File "/usr/local/lib/python3.9/site-packages/celery/app/task.py", line 444, in delay
    return self.apply_async(args, kwargs)
  File "/usr/local/lib/python3.9/site-packages/celery/app/task.py", line 599, in apply_async
    return app.send_task(
  File "/usr/local/lib/python3.9/site-packages/celery/app/base.py", line 880, in send_task
    amqp.send_task_message(P, name, message, **options)
  File "/usr/local/lib/python3.9/site-packages/celery/app/amqp.py", line 522, in send_task_message
    ret = producer.publish(
  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 186, in publish
    return _publish(
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 556, in _ensured
    return fun(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 195, in _publish
    channel = self.channel
  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 218, in _get_channel
    channel = self._channel = channel()
  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 34, in __call__
    value = self.__value__ = self.__contract__()
  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 234, in <lambda>
    channel = ChannelPromise(lambda: connection.default_channel)
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 953, in default_channel
    self._ensure_connection(**conn_opts)
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 459, in _ensure_connection
    return retry_over_time(
  File "/usr/local/lib/python3.9/contextlib.py", line 137, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 476, in _reraise_as_library_errors
    raise ConnectionError(str(exc)) from exc
kombu.exceptions.OperationalError: Error 111 connecting to 127.0.0.1:6379. Connection refused.
], 请求URL->[/api/batch_auto_update_id3/], 请求方法->[POST] 请求参数->[{}]
Skipping creation of musictag user because PUID or PGID is set to 0.
【sqlite】
['manage.py', 'migrate']
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, django_celery_beat, django_celery_results, music, script_mgmt, sessions, task, user
Running migrations:
  No migrations to apply.
[2024-08-25 10:15:10 +0000] [9] [INFO] Starting gunicorn 20.1.0
[2024-08-25 10:15:10 +0000] [9] [INFO] Listening at: http://0.0.0.0:8001 (9)
[2024-08-25 10:15:10 +0000] [9] [INFO] Using worker: gevent
[2024-08-25 10:15:11 +0000] [10] [INFO] Booting worker with pid: 10
【sqlite】
['/usr/local/bin/gunicorn', '-w', '1', '-b', '0.0.0.0:8001', 'django_vue_cli.wsgi:application', '--timeout', '120', '--worker-class=gevent']
捕获未处理异常,异常具体堆栈->[Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 32, in __call__
    return self.__value__
AttributeError: 'ChannelPromise' object has no attribute '__value__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 951, 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.9/site-packages/redis/connection.py", line 552, in connect
    sock = self._connect()
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 609, in _connect
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/viewsets.py", line 114, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 43, in _wrapper
    return bound_method(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 505, in dispatch
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 459, in _ensure_connection
    return retry_over_time(
  File "/usr/local/lib/python3.9/contextlib.py", line 137, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 476, in _reraise_as_library_errors
    raise ConnectionError(str(exc)) from exc
kombu.exceptions.OperationalError: Error 111 connecting to 127.0.0.1:6379. Connection refused.
], 请求URL->[/api/batch_auto_update_id3/], 请求方法->[POST] 请求参数->[{}]
捕获未处理异常,异常具体堆栈->[Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 951, 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.9/site-packages/redis/connection.py", line 552, in connect
    sock = self._connect()
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 609, in _connect
    raise err
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 597, in _connect
    sock.connect(socket_address)
  File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
    self._internal_connect(address)
捕获未处理异常,异常具体堆栈->[Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 951, 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.9/site-packages/redis/connection.py", line 552, in connect
    sock = self._connect()
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 609, in _connect
    raise err
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 597, in _connect
    sock.connect(socket_address)
  File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
    self._internal_connect(address)
    raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 472, in _reraise_as_library_errors
    yield
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 459, in _ensure_connection
    return retry_over_time(
  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 318, in retry_over_time
    return fun(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 934, in _connection_factory
    self._connection = self._establish_connection()
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 860, in _establish_connection
    conn = self.transport.establish_connection()
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/viewsets.py", line 114, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 43, in _wrapper
    return bound_method(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 505, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 465, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 502, in dispatch
    response = handler(request, *args, **kwargs)
  File "applications/task/views.py", line 601, in applications.task.views.TaskViewSets.task1
  File "/usr/local/lib/python3.9/site-packages/celery/app/control.py", line 149, in active
    return self._request('active', safe=safe)
  File "/usr/local/lib/python3.9/site-packages/celery/app/control.py", line 106, in _request
    return self._prepare(self.app.control.broadcast(
  File "/usr/local/lib/python3.9/site-packages/celery/app/control.py", line 776, in broadcast
    return self.mailbox(conn)._broadcast(
  File "/usr/local/lib/python3.9/site-packages/kombu/pidbox.py", line 330, in _broadcast
    chan = channel or self.connection.default_channel
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 953, in default_channel
    self._ensure_connection(**conn_opts)
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 459, in _ensure_connection
    return retry_over_time(
  File "/usr/local/lib/python3.9/contextlib.py", line 137, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 476, in _reraise_as_library_errors
    raise ConnectionError(str(exc)) from exc
kombu.exceptions.OperationalError: Error 111 connecting to 127.0.0.1:6379. Connection refused.
], 请求URL->[/api/task1/], 请求方法->[GET] 请求参数->[{}]
捕获未处理异常,异常具体堆栈->[Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 951, 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.9/site-packages/redis/connection.py", line 552, in connect
    sock = self._connect()
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 609, in _connect
    raise err
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 597, in _connect
    sock.connect(socket_address)
  File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
    self._internal_connect(address)
  File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
    raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 472, in _reraise_as_library_errors
    yield
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 459, in _ensure_connection
    return retry_over_time(
捕获未处理异常,异常具体堆栈->[Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 32, in __call__
    return self.__value__
AttributeError: 'ChannelPromise' object has no attribute '__value__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 951, 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.9/site-packages/redis/connection.py", line 552, in connect
    sock = self._connect()
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 609, in _connect
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/viewsets.py", line 114, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 43, in _wrapper
    return bound_method(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 505, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 465, in handle_exception
    self.raise_uncaught_exception(exc)
捕获未处理异常,异常具体堆栈->[Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 951, 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.9/site-packages/redis/connection.py", line 552, in connect
    sock = self._connect()
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 609, in _connect
    raise err
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 597, in _connect
    sock.connect(socket_address)
  File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
    self._internal_connect(address)
捕获未处理异常,异常具体堆栈->[Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 951, 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.9/site-packages/redis/connection.py", line 552, in connect
    sock = self._connect()
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 609, in _connect
    raise err
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 597, in _connect
    sock.connect(socket_address)
  File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
    self._internal_connect(address)
捕获未处理异常,异常具体堆栈->[Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 32, in __call__
    return self.__value__
AttributeError: 'ChannelPromise' object has no attribute '__value__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 951, 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.9/site-packages/redis/connection.py", line 552, in connect
    sock = self._connect()
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 609, in _connect
  File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 875, in execute_command
    conn = self.connection or pool.get_connection(command_name, **options)
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 1185, in get_connection
    connection.connect()
  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 557, in connect
    raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to 127.0.0.1:6379. Connection refused.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.9/site-packages/celery/app/amqp.py", line 522, in send_task_message
    ret = producer.publish(
  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 186, in publish
    return _publish(
  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 556, in _ensured
    return fun(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 195, in _publish
    channel = self.channel
  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 218, in _get_channel
    channel = self._channel = channel()
  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 34, in __call__
    value = self.__value__ = self.__contract__()
  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 234, in <lambda>
    channel = ChannelPromise(lambda: connection.default_channel)
'''
YJwu2023 commented 2 months ago

实测V1版本表现正常,升级到V2就无法刮削,多次替换镜像和版本,均能复现

my-world-only-me commented 1 month ago

同V2自动刮削同样有问题,,而且时不时遇上异常退出

捕获未处理异常,异常具体堆栈->[Traceback (most recent call last):

  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 32, in __call__

    return self.__value__

AttributeError: 'ChannelPromise' object has no attribute '__value__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 951, 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.9/site-packages/redis/connection.py", line 552, in connect

    sock = self._connect()

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 609, in _connect

    raise err

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 597, in _connect

    sock.connect(socket_address)

  File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect

    self._internal_connect(address)

  File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect

    raise _SocketError(err, strerror(err))

ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 472, in _reraise_as_library_errors

    yield

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 459, in _ensure_connection

    return retry_over_time(

  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 318, in retry_over_time

    return fun(*args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 934, in _connection_factory

    self._connection = self._establish_connection()

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 860, in _establish_connection

    conn = self.transport.establish_connection()

  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 975, in establish_connection

    self._avail_channels.append(self.create_channel(self))

  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 953, in create_channel

    channel = self.Channel(connection)

  File "/usr/local/lib/python3.9/site-packages/kombu/transport/redis.py", line 744, in __init__

    self.client.ping()

  File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 1351, in ping

    return self.execute_command('PING')

  File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 875, in execute_command

    conn = self.connection or pool.get_connection(command_name, **options)

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 1185, in get_connection

    connection.connect()

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 557, in connect

    raise ConnectionError(self._error_message(e))

redis.exceptions.ConnectionError: Error 111 connecting to 127.0.0.1:6379. Connection refused.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response

    response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File "/usr/local/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view

    return view_func(*args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/rest_framework/viewsets.py", line 114, in view

    return self.dispatch(request, *args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 43, in _wrapper

    return bound_method(*args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 130, in _wrapped_view

    response = view_func(request, *args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 505, in dispatch

    response = self.handle_exception(exc)

  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 465, in handle_exception

    self.raise_uncaught_exception(exc)

  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception

    raise exc

  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 502, in dispatch

    response = handler(request, *args, **kwargs)

  File "applications/task/views.py", line 550, in applications.task.views.TaskViewSets.check_file_duplicates

  File "/usr/local/lib/python3.9/site-packages/celery/app/task.py", line 444, in delay

    return self.apply_async(args, kwargs)

  File "/usr/local/lib/python3.9/site-packages/celery/app/task.py", line 599, in apply_async

    return app.send_task(

  File "/usr/local/lib/python3.9/site-packages/celery/app/base.py", line 880, in send_task

    amqp.send_task_message(P, name, message, **options)

  File "/usr/local/lib/python3.9/site-packages/celery/app/amqp.py", line 522, in send_task_message

    ret = producer.publish(

  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 186, in publish

    return _publish(

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 556, in _ensured

    return fun(*args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 195, in _publish

    channel = self.channel

  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 218, in _get_channel

    channel = self._channel = channel()

  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 34, in __call__

    value = self.__value__ = self.__contract__()

  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 234, in <lambda>

    channel = ChannelPromise(lambda: connection.default_channel)

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 953, in default_channel

    self._ensure_connection(**conn_opts)

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 459, in _ensure_connection

    return retry_over_time(

  File "/usr/local/lib/python3.9/contextlib.py", line 137, in __exit__

    self.gen.throw(typ, value, traceback)

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 476, in _reraise_as_library_errors

    raise ConnectionError(str(exc)) from exc

kombu.exceptions.OperationalError: Error 111 connecting to 127.0.0.1:6379. Connection refused.

], 请求URL->[/api/check_file_duplicates/], 请求方法->[POST] 请求参数->[{}]

捕获未处理异常,异常具体堆栈->[Traceback (most recent call last):

  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 32, in __call__

    return self.__value__

AttributeError: 'ChannelPromise' object has no attribute '__value__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 951, 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.9/site-packages/redis/connection.py", line 552, in connect

    sock = self._connect()

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 609, in _connect

    raise err

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 597, in _connect

    sock.connect(socket_address)

  File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect

    self._internal_connect(address)

  File "/usr/local/lib/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect

    raise _SocketError(err, strerror(err))

ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 472, in _reraise_as_library_errors

    yield

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 459, in _ensure_connection

    return retry_over_time(

  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 318, in retry_over_time

    return fun(*args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 934, in _connection_factory

    self._connection = self._establish_connection()

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 860, in _establish_connection

    conn = self.transport.establish_connection()

  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 975, in establish_connection

    self._avail_channels.append(self.create_channel(self))

  File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 953, in create_channel

    channel = self.Channel(connection)

  File "/usr/local/lib/python3.9/site-packages/kombu/transport/redis.py", line 744, in __init__

    self.client.ping()

  File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 1351, in ping

    return self.execute_command('PING')

  File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 875, in execute_command

    conn = self.connection or pool.get_connection(command_name, **options)

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 1185, in get_connection

    connection.connect()

  File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 557, in connect

    raise ConnectionError(self._error_message(e))

redis.exceptions.ConnectionError: Error 111 connecting to 127.0.0.1:6379. Connection refused.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response

    response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File "/usr/local/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view

    return view_func(*args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/rest_framework/viewsets.py", line 114, in view

    return self.dispatch(request, *args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 43, in _wrapper

    return bound_method(*args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/django/utils/decorators.py", line 130, in _wrapped_view

    response = view_func(request, *args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 505, in dispatch

    response = self.handle_exception(exc)

  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 465, in handle_exception

    self.raise_uncaught_exception(exc)

  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception

    raise exc

  File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 502, in dispatch

    response = handler(request, *args, **kwargs)

  File "applications/task/views.py", line 240, in applications.task.views.TaskViewSets.batch_auto_update_id3

  File "/usr/local/lib/python3.9/site-packages/celery/app/task.py", line 444, in delay

    return self.apply_async(args, kwargs)

  File "/usr/local/lib/python3.9/site-packages/celery/app/task.py", line 599, in apply_async

    return app.send_task(

  File "/usr/local/lib/python3.9/site-packages/celery/app/base.py", line 880, in send_task

    amqp.send_task_message(P, name, message, **options)

  File "/usr/local/lib/python3.9/site-packages/celery/app/amqp.py", line 522, in send_task_message

    ret = producer.publish(

  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 186, in publish

    return _publish(

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 556, in _ensured

    return fun(*args, **kwargs)

  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 195, in _publish

    channel = self.channel

  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 218, in _get_channel

    channel = self._channel = channel()

  File "/usr/local/lib/python3.9/site-packages/kombu/utils/functional.py", line 34, in __call__

    value = self.__value__ = self.__contract__()

  File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 234, in <lambda>

    channel = ChannelPromise(lambda: connection.default_channel)

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 953, in default_channel

    self._ensure_connection(**conn_opts)

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 459, in _ensure_connection

    return retry_over_time(

  File "/usr/local/lib/python3.9/contextlib.py", line 137, in __exit__

    self.gen.throw(typ, value, traceback)

  File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 476, in _reraise_as_library_errors

    raise ConnectionError(str(exc)) from exc

kombu.exceptions.OperationalError: Error 111 connecting to 127.0.0.1:6379. Connection refused.

], 请求URL->[/api/batch_auto_update_id3/], 请求方法->[POST] 请求参数->[{}]
xhongc commented 1 month ago

加大内存试试