I came from sentry github issues: https://github.com/getsentry/sentry/issues/3975#issuecomment-245463092 . tkaemming advise me to take help here.
I have problem with sentry: It seems to not send emails when error is catched in projects. However lost password mails, etc are sent and received.
tkaemming think about a configuration problem (about SMTP) concerning workers. But i don’t found specific configuration for workers.
There is my config:
config.yml:
mail.backend: 'smtp' # Use dummy if you want to disable email entirely
mail.host: 'xxx'
mail.port: 587
mail.username: 'xxx'
mail.password: 'xxx'
mail.use-tls: false
mail.from: xxx'
system.secret-key: 'xxx'
redis.clusters:
default:
hosts:
0:
host: 127.0.0.1
port: 6379
from sentry.conf.server import *
import os.path
CONF_ROOT = os.path.dirname(__file__)
DATABASES = {
'default': {
'ENGINE': 'sentry.db.postgres',
'NAME': 'sentry_db',
'USER': 'sentry_user',
'PASSWORD': 'sentry_password',
'HOST': 'localhost',
'PORT': '',
'AUTOCOMMIT': True,
'ATOMIC_REQUESTS': False,
}
}
SENTRY_USE_BIG_INTS = True
SENTRY_SINGLE_ORGANIZATION = True
DEBUG = True
SENTRY_CACHE = 'sentry.cache.redis.RedisCache'
BROKER_URL = 'redis://localhost:6379'
SENTRY_RATELIMITER = 'sentry.ratelimits.redis.RedisRateLimiter'
SENTRY_BUFFER = 'sentry.buffer.redis.RedisBuffer'
SENTRY_QUOTAS = 'sentry.quotas.redis.RedisQuota'
SENTRY_TSDB = 'sentry.tsdb.redis.RedisTSDB'
SENTRY_DIGESTS = 'sentry.digests.backends.redis.RedisBackend'
SENTRY_FILESTORE = 'django.core.files.storage.FileSystemStorage'
SENTRY_FILESTORE_OPTIONS = {
'location': '/tmp/sentry-files',
}
SENTRY_WEB_HOST = '0.0.0.0'
SENTRY_WEB_PORT = 9000
SENTRY_WEB_OPTIONS = {
'protocol': 'uwsgi',
'workers': 3
}
supervisor config:
[program:sentry-web]
directory=/srv/www/sentry.algoo.fr/
environment=SENTRY_CONF="/srv/www/sentry.algoo.fr"
command=/srv/www/sentry.algoo.fr/venv2.7/bin/sentry start
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/var/log/supervisor/sentry-web.log
stderr_logfile=/var/log/supervisor/sentry-web.log
[program:sentry-worker]
directory=/srv/www/sentry.algoo.fr/
environment=SENTRY_CONF="/srv/www/sentry.algoo.fr",C_FORCE_ROOT="true"
command=/srv/www/sentry.algoo.fr/venv2.7/bin/sentry run worker
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/var/log/supervisor/sentry-worker.log
stderr_logfile=/var/log/supervisor/sentry-worker.log
Do you see why these emails are not sent ?