RasaHQ / rasa

💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants
https://rasa.com/docs/rasa/
Apache License 2.0
18.91k stars 4.63k forks source link

Pika connection to RabbitMq stops working after a while #5245

Closed koszta5 closed 4 years ago

koszta5 commented 4 years ago

Rasa version: 1.7.0 Rasa X version (if used & relevant): 0.25.2 Operating system (windows, osx, ...): Ubuntu 18.04.3 (native docker images)

This has been a re-occuring issue in RASA X (official images even). As described in multiple posts:

Symptoms:

Errors look like this: WARNING rasa.core.brokers.pika - RabbitMQ channel has not been assigned. Adding message to list of unpublished messages and trying to publish them later. Current number of unpublished messages is 1. ERROR pika.adapters.utils.connection_workflow - AMQPConnector - reporting failure: AMQPConnectorAMQPHandshakeError: ConnectionClosedByBroker: (403) 'ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.' ERROR:pika.adapters.utils.io_services_utils:Socket failed to connect: <socket.socket fd=18, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('192.168.96.6', 48136)>; error=111 (Connection refused) The following eventually shows in logs but events are still not processed: INFO:rasax.community.services.event_consumers.pika_consumer:Start consuming queue 'rasa_production_events' on pika host 'rabbit'.

Relevant reports of same/very similar issues: https://forum.rasa.com/t/no-more-logs-nor-interactive-learning-working/24597 https://forum.rasa.com/t/is-it-possible-to-use-rasa-x-as-a-model-server/21250/4 https://forum.rasa.com/t/rasa-x-does-not-connect-to-production-worker-hosts/24801/2 https://forum.rasa.com/t/rasa-x-rabbitmq-connection-closed-error/20556/3 https://forum.rasa.com/t/errors-in-rasa-production/23854

Current workaround:

Let me know if more information is needed

sara-tagger commented 4 years ago

Thanks for the issue, @btotharye will get back to you about it soon!

You may find help in the docs and the forum, too 🤗
erohmensing commented 4 years ago
WARNING rasa.core.brokers.pika - RabbitMQ channel has not been assigned. Adding message to list of unpublished messages and trying to publish them later. Current number of unpublished messages is 1.

@alwx does this seem like something you working with Handle cases when EventService fails to add events to the database could fix?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically closed due to inactivity. Please create a new issue if you need more help.

prakashdale commented 3 years ago

Issue still exists with latest code.