-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect to external rabbitMQ amqps host #8042
Comments
Thanks for the issue, @tttthomasssss will get back to you about it soon! You may find help in the docs and the forum, too 🤗 |
Hi @nakshathru I also faced similar issue. I am not sure if this is the right solution or not. But it works for me. Here is the solution. This is what you need to provide in endpoints.yaml file. event_broker:
type: "pika"
url: "amqps://username:[email protected]:5671"
username: ""
password: ""
port: 5671
exchange_name: "default_exchange"
queues:
- queue_1 So here basically username and password would be taken from url itself. Also note that this works only when you give username and password value as empty(not in url but other one) Let me know if you face any issue with this approach. But yeah I also feel that this is not good approach to do, that is to have username and password present in code or deployment file. |
Hi @kaustuk |
@nakshathru Let's not close this issue. Keep it open so right solution(without hack) is being implemented in rasa open source as well. |
Thanks very much for submitting the issue @nakshathru - and thank you for pointing out a workaround @kaustuk. I agree, it makes sense to keep this on the books so we can have a closer look at whats going on! |
@tttthomasssss I created a PR for fixing this issue. Can you review the changes ? |
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. |
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. |
Closing as it was addressed with #8057 |
Rasa version : 2.3.1
Rasa X version (if used & relevant): 0.36.0
Python version : 3.8
Operating system (windows, osx, ...): Linux
Issue : I'm trying to deploy Rasa using Rasa-X into EKS cluster. I'm using a Amazon MQ (rabbitMQ) service which provides amqps endpoint. But rasa-production and rasa-worker pods are failing to connect to MQ service. But I can see a single connection in RabbitMQ portal with queue as 'rasa_production_events'. So one of the service is able to connect. Rasa-X working normally, but when I start training model, it's failing due to not getting connected to the queue.
Error (including full traceback) :
2021-02-24 14:26:21 INFO root - Starting Rasa server on http://localhost:5005
2021-02-24 14:26:21 DEBUG rasa.core.utils - Using the default number of Sanic workers (1).
2021-02-24 14:26:21 DEBUG urllib3.connectionpool - Starting new HTTPS connection (1): api.segment.io:443
2021-02-24 14:26:21 DEBUG urllib3.connectionpool - https://api.segment.io:443 "POST /v1/track HTTP/1.1" 200 21
2021-02-24 14:26:21 INFO root - Enabling coroutine debugging. Loop id 83705424.
2021-02-24 14:26:21 DEBUG root - Could not load interpreter from 'None'.
2021-02-24 14:26:21 INFO rasa.core.brokers.pika - Connecting to RabbitMQ ...
2021-02-24 14:26:21 DEBUG rasa.core.brokers.pika - Connecting to 'amqps://123456789.mq.us-east-1.amazonaws.com' failed with error 'ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.'. Trying again.
The text was updated successfully, but these errors were encountered: