3

rabbitmq に pika を使用するフラスコ アプリで以下のエラーを観察すると、

pika バージョン 1.1.0 を使用する rabbitmq バージョン 3.8.5

注: 構成されたハートビート値は 900 です (実行時間が長いため、より高い値が設定されているため、pika と rabbitmq 間の接続を維持する必要があります)

一定期間後に接続が失われた場合、アプリを再起動してrabbitmqにもう一度接続する必要があります。正確に何がうまくいかないのか、誰かが私を正しい方向に向けることができますか!

ERROR:pika.adapters.utils.io_services_utils:_AsyncBaseTransport._consume() failed, aborting connection: error=ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None); sock=<socket.socket fd=556, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 65083), raddr=('0.0.0.0', 5672)>; Caller's stack:
Traceback (most recent call last):
  File "pika\adapters\utils\io_services_utils.py", line 1041, in _on_socket_readable
  File "pika\adapters\utils\io_services_utils.py", line 791, in _consume
  File "pika\adapters\utils\io_services_utils.py", line 79, in retry_sigint_wrap
  File "pika\adapters\utils\io_services_utils.py", line 846, in _sigint_safe_recv
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
Traceback (most recent call last):
  File "pika\adapters\utils\io_services_utils.py", line 1041, in _on_socket_readable
  File "pika\adapters\utils\io_services_utils.py", line 791, in _consume
  File "pika\adapters\utils\io_services_utils.py", line 79, in retry_sigint_wrap
  File "pika\adapters\utils\io_services_utils.py", line 846, in _sigint_safe_recv
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
ERROR:pika.adapters.base_connection:connection_lost: StreamLostError: ("Stream connection lost: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)",)
ERROR:pika.adapters.blocking_connection:Unexpected connection close detected: StreamLostError: ("Stream connection lost: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)",)
4

0 に答える 0