Sentry in docker has no notification email #40
Comments
Are you using our official image? And can you confirm that both web and workers are running the exact same configs? It sounds like email isn't configured correctly for the workers. |
@mattrobenolt |
How are you configuring email now? I assume you're just missing the required environment variables on your worker containers. If you can share what you're using to run everything, I can help you. |
Also, this is a duplicate of #35 |
|
I'm sorry, but this config isn't very helpful. How are you building/running the containers? |
|
Yeah, none of this is configuring email. Are you sure the test email even sent? There are a couple issues here:
So as I see it and with what you pasted, no email at all should be getting sent since you'll be hitting this path: docker-sentry/8.0/sentry.conf.py Line 229 in 2e70636
|
@mattrobenolt Thanks very much. |
Then your instructions that you said don't match what you did. :( You need to also get this config file into the celery containers as well. The only thing wrong here is the workers don't have the config they need. |
@mattrobenolt Thanks very much. I copy the config file from sentry to celery worker and beat. After restarting worker and sentry, it can notify email now. O(∩_∩)O~~ |
I have the same problem with the version 8.8.0 I am using the smtp of gmail The same with the worker and cron. PD: sorry for my english. |
I had the same problem, I was only receiving the test emal. Here is the configuration which worked for me: docker run -d --name my-sentry \
-p 9000:9000 \
-e SENTRY_SERVER_EMAIL=sentry@my.domain \
-e SENTRY_EMAIL_HOST=smtp.mailgun.org \
-e SENTRY_EMAIL_PORT=587 \
-e SENTRY_EMAIL_USER=postmaster@my.domain \
-e SENTRY_EMAIL_PASSWORD=pass \
-e SENTRY_EMAIL_USE_TLS=true \
-e SENTRY_SECRET_KEY='some_key' \
--link sentry-redis:redis \
--link sentry-postgres:postgres sentry
docker run -d --name sentry-cron \
-e SENTRY_SERVER_EMAIL=sentry@my.domain \
-e SENTRY_EMAIL_HOST=smtp.mailgun.org \
-e SENTRY_EMAIL_PORT=587 \
-e SENTRY_EMAIL_USER=postmaster@my.domain \
-e SENTRY_EMAIL_PASSWORD=pass \
-e SENTRY_EMAIL_USE_TLS=true \
-e SENTRY_SECRET_KEY='some_key' \
--link sentry-postgres:postgres \
--link sentry-redis:redis sentry run cron
docker run -d --name sentry-worker-1 \
-e SENTRY_SERVER_EMAIL=sentry@my.domain \
-e SENTRY_EMAIL_HOST=smtp.mailgun.org \
-e SENTRY_EMAIL_PORT=587 \
-e SENTRY_EMAIL_USER=postmaster@my.domain \
-e SENTRY_EMAIL_PASSWORD=pass \
-e SENTRY_EMAIL_USE_TLS=true \
-e SENTRY_SECRET_KEY='some_key' \
--link sentry-postgres:postgres --link sentry-redis:redis sentry run worker |
@lenybernard nvm, got it working with your example, thanks! |
run this command?? |
You should use env variables for this, instead of specifying the same over and over. |
if I set the .env, It will use the same config in sentry-worker and the sentry-cron? |
not sure whether that global .env file get's picked up on, otherwise use --env-file in the docker run -d cmds |
|
And after i run this sentry upgrade line and break my sentry, what do i do now? |
I install sentry in docker. I can see all events but I cannot receive any notification mail.
It's strange that the test mail can notify successfully.
I have made sure that
`{"log":"[2016-02-02 06:06:02,417: INFO/MainProcess] Scheduler: Sending due task send-ping (sentry.tasks.send_ping)\n","stream":"stderr","time":"2016-02-02T06:06:02.418920036Z"}
{"log":"[2016-02-02 06:06:02,421: INFO/MainProcess] Scheduler: Sending due task check-auth (sentry.tasks.check_auth)\n","stream":"stderr","time":"2016-02-02T06:06:02.421568292Z"}
{"log":"[2016-02-02 06:06:02,619: INFO/MainProcess] Scheduler: Sending due task schedule-digests (sentry.tasks.digests.schedule_digests)\n","stream":"stderr","time":"2016-02-02T06:06:02.620291103Z"}
{"log":"[2016-02-02 06:06:04,723: INFO/MainProcess] Scheduler: Sending due task flush-buffers (sentry.tasks.process_buffer.process_pending)\n","stream":"stderr","time":"2016-02-02T06:06:04.724734059Z"}
{"log":"[2016-02-02 06:06:04,730: INFO/MainProcess] Scheduler: Sending due task sync-options (sentry.tasks.options.sync_options)\n","stream":"stderr","time":"2016-02-02T06:06:04.734650187Z"}
{"log":"[2016-02-02 06:06:14,732: INFO/MainProcess] Scheduler: Sending due task flush-buffers (sentry.tasks.process_buffer.process_pending)\n","stream":"stderr","time":"2016-02-02T06:06:14.732939296Z"}
{"log":"[2016-02-02 06:06:14,757: INFO/MainProcess] Scheduler: Sending due task sync-options (sentry.tasks.options.sync_options)\n","stream":"stderr","time":"2016-02-02T06:06:14.760265938Z"}
{"log":"[2016-02-02 06:06:24,763: INFO/MainProcess] Scheduler: Sending due task flush-buffers (sentry.tasks.process_buffer.process_pending)\n","stream":"stderr","time":"2016-02-02T06:06:24.763518561Z"}
{"log":"[2016-02-02 06:06:24,779: INFO/MainProcess] Scheduler: Sending due task sync-options (sentry.tasks.options.sync_options)\n","stream":"stderr","time":"2016-02-02T06:06:24.779931587Z"}
{"log":"[2016-02-02 06:06:32,634: INFO/MainProcess] Scheduler: Sending due task schedule-digests (sentry.tasks.digests.schedule_digests)\n","stream":"stderr","time":"2016-02-02T06:06:32.635682837Z"}
{"log":"[2016-02-02 06:06:34,780: INFO/MainProcess] Scheduler: Sending due task flush-buffers (sentry.tasks.process_buffer.process_pending)\n","stream":"stderr","time":"2016-02-02T06:06:34.781486883Z"}
Please tell me any idea how to find the problem and fix this issue.
Many thanks.
Rongqing
The text was updated successfully, but these errors were encountered: