Hello friends,
I have a docker setup of Rasa-X running in docker using postgresql + rabbitMQ. We run the latest images at this date. If more information about our setup is needit, please let me know.
The bot is working properly so far, but I encounter a problem, if the user give a late to the bot, it breaks and we need to restart the conversation /restart
.
The error looks as follow and it seems to be related with RabbitMQ:
/usr/local/lib/python3.6/site-packages/rasa_core/__init__.py:12: UserWarning: The 'rasa_core' package has been renamed. You should change your imports to use 'rasa.core' instead.
UserWarning,
2019-09-23 13:27:44 ERROR pika.adapters.utils.io_services_utils - _AsyncBaseTransport._produce() failed, aborting connection: error=ConnectionResetError(104, 'Connection reset by peer'); sock=<socket.socket fd=23, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('10.0.7.193', 39792)>; Caller's stack:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pika/adapters/utils/io_services_utils.py", line 1097, in _on_socket_writable
self._produce()
File "/usr/local/lib/python3.6/site-packages/pika/adapters/utils/io_services_utils.py", line 820, in _produce
self._tx_buffers[0])
File "/usr/local/lib/python3.6/site-packages/pika/adapters/utils/io_services_utils.py", line 79, in retry_sigint_wrap
return func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pika/adapters/utils/io_services_utils.py", line 861, in _sigint_safe_send
return sock.send(data)
ConnectionResetError: [Errno 104] Connection reset by peer
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pika/adapters/utils/io_services_utils.py", line 1097, in _on_socket_writable
self._produce()
File "/usr/local/lib/python3.6/site-packages/pika/adapters/utils/io_services_utils.py", line 820, in _produce
self._tx_buffers[0])
File "/usr/local/lib/python3.6/site-packages/pika/adapters/utils/io_services_utils.py", line 79, in retry_sigint_wrap
return func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pika/adapters/utils/io_services_utils.py", line 861, in _sigint_safe_send
return sock.send(data)
ConnectionResetError: [Errno 104] Connection reset by peer
2019-09-23 13:27:44 ERROR pika.adapters.base_connection - connection_lost: StreamLostError: ("Stream connection lost: ConnectionResetError(104, 'Connection reset by peer')",)
2019-09-23 13:27:44 ERROR pika.adapters.blocking_connection - Unexpected connection close detected: StreamLostError: ("Stream connection lost: ConnectionResetError(104, 'Connection reset by peer')",)
2019-09-23 13:27:44 ERROR rasa.core.brokers.pika - Could not open Pika channel at host 'rabbit'. Failed with error: Stream connection lost: ConnectionResetError(104, 'Connection reset by peer') ````
I would like to know how to solve this issue, since it is killing bot performance.
Thanks in advance.