Content
Email Notifications Not Sending via Delayed Job
Added by Daniel Tran over 3 years ago
Hello, I am new here and have a successful fresh packaged install of OpenPrroject 11.2.2 on Ubuntu 18.04. I configured the SMTP email settings and was able to successfully send and receive a test email. The default notification is set to "Only things I watch or involved in." However, when updating work packages by assigning them, changing priorities or status, no email notifications are being sent to the appropriate user.
After reading several other similar posts, I could not find a way to restart the Delayed Job script which is being used to send the emails in the background. Here is what I have tried so far:
Ran "ps ax | grep delayed" and the output was "5144 pts/0 S+ 0:00 grep --color=auto delayed"
Tried to run "openproject run script/delayed_job restart" but was unable to, output was "script/delayed_job: not found"
Please let me know if there is anything else I can troubleshoot or try.
Thank you!
Replies (4)
Hi Daniel,
the packaged installation provides services for the web and background workers. You can restart all of them with
service openproject restart
. Please try that and let us know if that helped with the sending of emails.The email settings should be reloaded automatically for every new job, but there might of course also be a bug depending on your configuration.
Best
Oliver
Hi Oliver,
I did as you suggested to restart all the services. It seems to be working well now. The email notifications are being sent through! Thanks again.
Hi Daniel,
that's good, but then there's definitely some configuration that causes background workers not to reload the configuration correctly.
How did you set up SMTP ? through the admin UI or through the packaged installation?
Could you append the output of the configuration file
/etc/openproject/installer.dat
? Please remove any password values first.Best
Oliver
Hi Oliver,
SMTP was set up via the admin UI.
Here is the requested output. Let me know if you need anything else to check.