No emails to reviewers during pull reqeust

Dear Support,

It seems that there are some issues (or undefined behavior) with sending out emails during pull request code review.
My colleagues started to complain that since a couple of months there are some emails missing.

What is working:
The pull request was created and all reviewers received the email that we had to review a pull request (good!!)

What is not work

  1. Receiving email when a comment was submitted
  2. Receiving emails when the pull request was updated with a new submission

This seems to be an issue only for the “reviewers”, and NOT for the creator. The creator of the pull request always gets all emails.

It seems that it worked in January this year.

I don’t remember what version of Rhodecode did we use in January. Currently we are on 4.12.4 CE.

Kind regards,
Tamas

Dear Support,

May I have an update on this?

Thanks,
Tamas

Dear Support,

May I have an update on this?

Thanks,
Tamas

I’m not sure what could be the cause, maybe it goes to spam ? Have to checked the logs to check if emails are actually sent?

Hi Marcin,

Which logger should contain the email stuff? We have the following ones:
root, routes, rhodecode, sqlalchemy, beaker, pyro4, templates

Currently they are configured for ERROR level. What level shows email traffic?

Thanks,
Tamas

Sending emails should be visible in the main community.log. Please check the admin > settings > email to see how example looks, and then search for similar entries in pull requests.

Hi Marcin,

Our current log configuration seems to ignore emails.
I’ve generated some test emails based on your comments. The test emails are arriving, but there is no log entry at all about the generated emails in the community.log.

Configuration file’s corresponding section looks like this:

################################
### LOGGING CONFIGURATION   ####
################################
[loggers]
keys = root, routes, rhodecode, sqlalchemy, beaker, pyro4, templates

[handlers]
keys = console, console_sql

[formatters]
keys = generic, color_formatter, color_formatter_sql

#############
## LOGGERS ##
#############
[logger_root]
level = DEBUG
handlers = console

[logger_routes]
level = ERROR
handlers = ""
qualname = routes.middleware
## "level = DEBUG" logs the route matched and routing variables.
propagate = 1

[logger_beaker]
level = ERROR
handlers = ""
qualname = beaker.container
propagate = 1

[logger_pyro4]
level = ERROR
handlers = ""
qualname = Pyro4
propagate = 1

[logger_templates]
level = ERROR
handlers = ""
qualname = pylons.templating
propagate = 1

[logger_rhodecode]
level = DEBUG
handlers = ""
qualname = rhodecode
propagate = 1

[logger_sqlalchemy]
level = ERROR
handlers = console_sql
qualname = sqlalchemy.engine
propagate = 0

What part do I need to modify to see email related entries in the log file?

Thanks,
Tamas

Please ensure that handler is set to DEBUG

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = DEBUG

The logs MUST have email notice sending in them, if they are delivered. Please also check celery logs if you use it, then the whole task of email sending is delegated into celery workers, but the operation of scheduling an email send is still in community.log

Hi Marcin,

We were able to figure it out: we used an smtp server that had issues with sending emails.

Thanks for your help, big time!
Tamas