-
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
Mailer seems to be working but no email are being sent #328
Comments
Hey, having the same issue. I see that |
It's been suggested that maybe mongodb is the source of the issue....I will try Redis soon. Also, no |
Ok, it's not simple and I am not sure how to do it since it now complains about a missing redis back-end and I see there is no documentation to show it is supported? Docs state that mongodb is supported but it is somehow problematic here for reasons unknown? I am sure that everything is working on my end now in terms of configuration and settings (see https://git.autonomic.zone/coop-cloud/alerta, docker swarm setup) and I am wondering how to go about investigating if Mongodb really is the issue? |
OK fuck it, I couldn't resist more pain, using redis worked... |
Kombu is the AMQP python package used to implement the |
Well the MongoDB transport is broken for the mailer queue as far as I can see. |
Dear @decentral1se, @satterly I tried also but cannot make it working even with redis. I see that messages are published (amqp plugin logs)... The mailer is connected also... but no mail sent... I don't know how to debug it.... Best. |
I tried Mongo transport for mailer, 2 weeks ago and is working. ENV variable part of the alertad.conf: part of the alerta.conf alerta-mailer rules dir simple rule file: t1_rules.conf [ Start alerta-mailer in debug mode then send event from different shell and alert mailer try deliver message after 30 sec and writes debug log on console --- debug log --- .......... SMTP conversation .................... reply: retcode (235); Msg: b'2.7.0 Authentication successful' Read this https://github.com/alerta/alerta-contrib/tree/master/integrations/mailer , BR. |
Hello, I finally made it working also... the main problem is that I think that you are missing debug messages to know when a message is acknowledged for different reasons. Best, |
@jrevillard Thanks! |
Issue Summary
I've installed alerta (which work fine) and alerta-mailer. When I do alerta-mailer (or execute mailer.py), everything seems to be working (connection to the database and heartbeat) I can see the heartbeat in the web UI but I don't receive any email.
Environment
OS: Linux (Debian 10)
API version: 8.0.3
Deployment: self-hosted
For self-hosted, WSGI environment: nginx/uwsgi
Database: MongoDB
Server config:
Auth enabled? Yes
Auth provider? Basic
Customer views? No
web UI version: [eg. 6.8.1]
CLI version: [eg. 6.8.1]
To Reproduce
Steps to reproduce the behavior:
Expected behavior
At least having a trace somewhere of the email in order to identify what is going wrong
Alerta config
Alerta.conf:
alertad.conf:
Mailer.py :
Output of either ./mailer.py or alerta-mailer:
If you need any additional info, file or command output let me know.
The text was updated successfully, but these errors were encountered: