-
Notifications
You must be signed in to change notification settings - Fork 168
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
alerta-mailer: usage docs need improving #315
Comments
Oh wait...
So, I had the wrong scope! I only gave "read". So, this is something that can be documented then if you'll accept the PR? We could also perhaps improve the error message for this heartbeats request error message? alerta-contrib/integrations/mailer/mailer.py Line 197 in edf6326
However, the "Authentication failed" notice remains, so that now narrows it down to amqp or smtp... I will keep digging... |
Aha,
So, this consumer invocation could also bring a better error message. Still investigating how to solve this one... |
Ok, so since I have a "alerta" channel created on the mongodb side and not "kombu", then I was finally able to connect by specifying my amqp_url for both mailer and amqp to "/alerta". I am now manually testing this works. So, I guess this is a documentation issue. |
Also, to note, I'm running it by overriding the entrypoint and doing |
The best approach would be to install Fixed 4387599 |
Issue Summary
When I run https://github.com/alerta/alerta-contrib/tree/master/integrations/mailer#deployment I see the following logs. Unfortunately, I have no idea at which point the authentication is failing: amqp, api, smtp? As for the 403 error, I have manually validated that my key works by running Client(...) in the Python REPL.
I have no files in alerta.rules.d.
Here's my alerta.conf:
Here's my alertad.conf:
Here's my Dockerfile:
Environment
OS: Linux
API version: 7.4.5
Deployment: Docker
Database: MongoDB
Server config:
Auth enabled? Yes
Auth provider? Keycloak
Customer views? No
web UI version: 7.4.5
CLI version: 7.4.0
To Reproduce
Steps to reproduce the behavior:
For web app issues, include any web browser JavaScript console errors.
Expected behavior
Alerta-mailer can authenticate and query the heartbet successfully
Screenshots
N/A
Additional context
Here's a gist of the configs when I asked on the Gitter: https://gist.github.com/decentral1se/8d6551909a7d6b25826d4ff8ca32c364.
The text was updated successfully, but these errors were encountered: