Subscription unable to send emails on arriving of critical notifications #190
Unanswered
marescialloNino
asked this question in
Q&A
Replies: 1 comment 2 replies
-
This is normally caused by the SMTP connection. You need to set up the correct username and password for the SMTP server.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, I'm building a dockerized iot application, using the container edgexfoundry/support-notifications-arm64:3.0.0 for handling the notifications and subscriptions.
In the docs page
(https://docs.edgexfoundry.org/2.3/microservices/support/notifications/Ch-AlertsNotifications/#critical-notifications)
they say it's sufficient to configure the smtp server with this env vars(using a test server so i don't have a password):
SERVICE_HOST: edgex-support-notifications
SMTP_HOST: smtp.freesmtpservers.com
SMTP_PORT: 25
SMTP_SENDER: [email protected]
SMTP_SUBJECT: EdgeX Notification
So the notification arrives, and there's a subscription which match the category and label of the notification, and has a mailing list, but those emails won't arrive, and i only get this logs in the container console:
2023-10-13 11:57:29 level=INFO ts=2023-10-13T09:57:29.963737042Z app=support-notifications source=message.go:58 msg="Service started in: 161.308611ms"
2023-10-13 11:57:29 level=INFO ts=2023-10-13T09:57:29.963804521Z app=support-notifications source=bootstrap.go:251 msg="SecuritySecretsRequested metric registered and will be reported (if enabled)"
2023-10-13 11:57:29 level=INFO ts=2023-10-13T09:57:29.963830461Z app=support-notifications source=bootstrap.go:251 msg="SecuritySecretsStored metric registered and will be reported (if enabled)"
2023-10-13 12:01:53 level=WARN ts=2023-10-13T10:01:53.951156304Z app=support-notifications source=send.go:49 msg="fail to send the critical notification. Retry to send again..."
2023-10-13 12:02:20 level=WARN ts=2023-10-13T10:02:20.125210955Z app=support-notifications source=send.go:49 msg="fail to send the critical notification. Retry to send again..."
2023-10-13 12:02:41 level=WARN ts=2023-10-13T10:02:41.225568432Z app=support-notifications source=send.go:72 msg="Resend count exceeds the configurable limit, escalate the transmission."
2023-10-13 12:02:41 level=WARN ts=2023-10-13T10:02:41.261752912Z app=support-notifications source=send.go:104 msg="subscription ESCALATION does not exists, skip the escalated notification sending"
What could my problem be? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions