[SOLVED] Ceph issue - unable to send alert email

wassupluke

New Member
Jan 17, 2025
18
2
3
I'm getting
Code:
unable to send alert email
(535, b'5.7.8 Username and Password not accepted. For more information, go to\n5.7.8  https://support.google.com/mail/?p=BadCredentials 8926c6da1cb9f-501d589bf1dsm460037173.27 - gsmtp')
on 19.2.2 (was getting it on 19.2.1 and was incorrectly optimistic that it'd be fixed in 19.2.2).

I tried putting in a fresh app password and it sends the test notification just fine, but ceph health continues to report "unable to send alert email" and isn't sending alert emails. How can I fix this?
 
I noticed tonight that when I look at the WebGUI on a given node and navigate to Ceph>Configuration>Configuration Database, you can see the Google App Password in plain text in the row for mgr/alerts/smtp_password. I noticed the value didn't match the app password I had just entered in Datacenter>Notifications>Notification Targets so I looked up how to change it and found the following which solved my issue.

TL;DR:

Bash:
ceph config set mgr mgr/alerts/smtp_password <your_google_app_password_here-remove-the-spaces> && ceph alerts send
 
Last edited: