-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Mail alerts are sent only to admin #1046
Comments
Local installation is docker too? |
Yes, local installation was also done with docker. Both are on v2.8.68. Task output only states the admin mail in the output on the server. So it doesn't even try to send the email, not a mailserver issue. |
What task prints at the end? You should see lines |
Yes I see those lines, but only for one mail on the server, but for all users on my local installation. |
Yes, those are checked, too. |
I have the same issue with the latest stable Semaphore version at the time of writing ( Some info here (emails are redacted):
Now, I don't expect that the email for the admin user will pass through as its address is in fact invalid. What I expect is Semaphore to try to send emails to all three users. My first assumption was that this However, to prove a concept I've disabled alerts to the admin user (the invalid one). If I was right Semaphore would try to send a message to the next user in chain, which is a valid email. Instead, when I do this, I see NO line "Sending email to ..." in the end of the playbook run. So, based on the sendMailAlert() code, it seems that either:
So in the end I turned logging in PG on for all queries ( Before an actual playbook run I see a call to a
note the $1 = 3 which is a proper ID of user I'm running a playbook from After some preparations Semaphore runs the playbook, storing the ansible output into the Finally, the playbook throws an error, and I believe here's our relevant part:
Note that the only query to In the end this makes me think that I'm right here: "
I've executed this query manually against the real DB and I've got three records as expected – so I guess after all I've done it's a stalemate. It looks like it should work as expected, but for some reason it doesn't. It's definetely needed to debug the code itself, not logs. I can't run the project in dev mode right now to actually debug it, but I will try to investigate it further later. Also I hope that I could make authors to have some insights on what's happening. Additionally, Semaphore server logs are kinda vague, it seems that it panics during the attempt to log an error, see a chunk of a log below:
|
After merging My PR #1788 have been merged which fixes this issue. the mail notification is working fine if the config.json includes all mentioned options and after enabling alerts for your user. |
Hi,
I am running the newest version with the docker-compose installation.
I am trying to get mail alerts to work, but they only get sent to the admin mail address.
It's working in my local installation, but not on the server.
I can't find a configuration difference between the two.
For both mail alerts activated in the config file and the project settings. Alerts are activated for several users.
Any idea?
The text was updated successfully, but these errors were encountered: