Comments (29)
What are you using for smtp, out of curiosity? Since you need to either link an smtp container, or point to an external host.
from docker-sentry.
It's an external SMTP server
from docker-sentry.
I will test this out today and verify that everything should be good, and we'll go from there. :)
from docker-sentry.
Thanks @mattrobenolt, let me know if you need anything. For reference, this is my docker-compose file:
redis:
image: redis
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=sentry
- POSTGRES_USER=sentry
volumes:
- /var/lib/postgresql/data
sentry:
image: sentry:latest
environment:
- SENTRY_EMAIL_HOST=(OMITTED)
- SENTRY_SERVER_EMAIL=(OMITTED)
links:
- redis
- postgres
ports:
- "9999:9000"
celery-beat:
image: sentry:latest
links:
- redis
- postgres
command: sentry celery beat
celery-worker:
image: sentry:latest
links:
- redis
- postgres
command: sentry celery worker
And just to confirm, I did a docker pull sentry:latest
to ensure I'm at 8.0.2.
from docker-sentry.
Might have been fixed in 8.0.4; will test when sentry:latest is updated
from docker-sentry.
Waiting on docker-library/official-images#1368 :(
from docker-sentry.
Ah wow, I thought it was a mere docker push away!
from docker-sentry.
Not for the official library, unfortunately. :(
Matt Robenolt
@mattrobenolt
On Mon, Jan 25, 2016 at 8:06 AM -0800, "Joe Borg" [email protected] wrote:
Ah wow, I thought it was a mere docker push away!
—
Reply to this email directly or view it on GitHub.
from docker-sentry.
8.0.4 hasn't fixed the issue unfortunately (have updated the HTTP server as well as Celery workers).
from docker-sentry.
Alright. Will investigate more today. :(
Matt Robenolt
@mattrobenolt
On Tue, Jan 26, 2016 at 12:34 AM -0800, "Joe Borg" [email protected] wrote:
8.0.4 hasn't fixed the issue unfortunately (have updated the HTTP server as well as Celery workers).
—
Reply to this email directly or view it on GitHub.
from docker-sentry.
Not sure how relevant this is.
from docker-sentry.
Hello!
Just want to add, that it is not only mail notifications, slack-webhooks also cannot be sent now.
from docker-sentry.
slack-webhooks also cannot be sent now
And they did work before?
from docker-sentry.
It is just initial installation, so I cannot say about Sentry, but this web-hooks work fine on the other systems. It looks for me like something wrong with "rules", because it is possible to send invitations and test mails.
from docker-sentry.
I finally got around to testing this, and I confirmed that this isn't working correctly for some reason.
Emails are sent from the web container, but not from celery containers. :( This seems odd, but at least I can reproduce.
from docker-sentry.
@Evede1 @joedborg Does it work if you set an explicit SENTRY_SECRET_KEY
environment variable on all the containers?
I'm still investigating the issue, but 90% sure if the worker and web containers have different secret keys, rules are failing to notify, but this seems odd to me.
If this is the case, I should be more explicit in documentation about setting and using SENTRY_SECRET_KEY
. This is basically required, and maybe fail to start the process if there isn't one defined.
I tested out a full cluster setup with linking tianon/exim4
for SMTP relay and before setting SENTRY_SECRET_KEY
, I wasn't getting email notifications, but after setting, I started to get them.
from docker-sentry.
In 8.1, I've changed the behavior around this where a SENTRY_SECRET_KEY
is required to be set. It will error otherwise starting up. This should help assert that all containers are in sync since you'd have to be explicit about passing this now.
from docker-sentry.
@mattrobenolt, unfortunately, I still cannot receive notifications, but after setting the SENRY_SECRET_KEY
some activity is originated. The postfix logs doesn't contain any lines about these actions or errors.
In the same time
from docker-sentry.
@mattrobenolt Can these be added as environments in the YML?
from docker-sentry.
redis:
image: redis
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=sentry
- POSTGRES_USER=sentry
volumes:
- /var/lib/postgresql/data
sentry:
image: sentry
environment:
- SENTRY_EMAIL_HOST=(OMITTED)
- SENTRY_SERVER_EMAIL=(OMITTED)
- SENTRY_SECRET_KEY=(OMITTED)
links:
- redis
- postgres
ports:
- "9999:9000"
celery-beat:
image: sentry
environment:
- SENTRY_SECRET_KEY=(OMITTED)
links:
- redis
- postgres
command: sentry celery beat
celery-worker:
image: sentry
environment:
- SENTRY_SECRET_KEY=(OMITTED)
links:
- redis
- postgres
command: sentry celery worker
I have used the same key for all 3.
from docker-sentry.
@Evede1 do webhooks get delivered or any other notifications?
@joedborg which do you want in the yaml? All of these environment variables get handled by the sentry.conf.py now. It's not necessary that they exist in the yaml file.
from docker-sentry.
I had a similar issue turns out I need to add the smtp link to the celery containers ie
docker run -d --name sentry-log --restart="always" --link smtp:smtp --link sentry-redis:redis --link postgres:postgres sentry
docker run -d --restart="always" --name sentry-celery-beat --link postgres:postgres --link smtp:smtp --link sentry-redis:redis sentry celery beat
docker run -d --restart="always" --name sentry-celery1 --link postgres:postgres --link smtp:smtp --link sentry-redis:redis sentry celery worker
from docker-sentry.
@ocomsoft Did you only link them to the web container first?
Seems like we could clarify our documentation around here.
from docker-sentry.
Yes - I linked it to the Web container ran the test it worked!!
But I was NOT getting notifications... Tried adding it to Celery and BINGO..
I was going to raise an issue about the documentation because Yes it could be clearer. But figured this might be a better place to mention it.
from docker-sentry.
Ah, good to know.
I'm just going to assume these are all related to config issues.
I guess it's not obvious, but most of the work that Sentry does is handled by the workers. Much less is handled by the web process itself.
from docker-sentry.
@mattrobenolt, thank you! Mails notification works great, after setting were added for all containers.
from docker-sentry.
@mattrobenolt I just wanted to check that there was nothing obvious in the file. Any other things I can investigate?
from docker-sentry.
I have not been able to reproduce this in any way. :( The only thing I did notice is the default From
email (root@localhost
) tends to cause mail to get delivered to spam, but other than that, mail is always delivered in any configuration I've tried.
from docker-sentry.
The error mentioned in this issue is caused by the fact that the celery worker in the original docker-compose file does not use the intended email server.
In order to fix this error, please make sure to set the follwing environment variables also for the sentry worker:
- SENTRY_EMAIL_HOST=(OMITTED)
- SENTRY_SERVER_EMAIL=(OMITTED)
- SENTRY_SECRET_KEY=(OMITTED)
Like so:
redis:
image: redis
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=sentry
- POSTGRES_USER=sentry
volumes:
- /var/lib/postgresql/data
sentry:
image: sentry
environment:
- SENTRY_EMAIL_HOST=(OMITTED)
- SENTRY_SERVER_EMAIL=(OMITTED)
- SENTRY_SECRET_KEY=(OMITTED)
links:
- redis
- postgres
ports:
- "9999:9000"
celery-beat:
image: sentry
environment:
- SENTRY_SECRET_KEY=(OMITTED)
links:
- redis
- postgres
command: sentry celery beat
celery-worker:
image: sentry
environment:
- SENTRY_SECRET_KEY=(OMITTED)
- SENTRY_EMAIL_HOST=(OMITTED)
- SENTRY_SERVER_EMAIL=(OMITTED)
links:
- redis
- postgres
command: sentry celery worker
from docker-sentry.
Related Issues (20)
- release 9.1.1-onbuild?
- upload-sourcemaps failed - [uwsgi-body-read] Timeout reading 65536 bytes. Content-Length: x consumed: 0 left: x` HOT 2
- Cannot find Client Keys in project HOT 1
- Possibility to run as non-root user HOT 22
- Incorrect default SMTP user/password HOT 5
- Please sign newer docker images HOT 11
- Docs not built HOT 1
- Track sentry errors with itself HOT 2
- registration email missing domain HOT 3
- Upgrade to Buster base image HOT 1
- 404 Error with event committers HOT 3
- "No module named google.cloud.storage.client" HOT 4
- No default org created HOT 1
- Error response from daemon: Cannot restart container 5b40898f7f44: failed to listen to abstract unix socket "/containerd-shim/moby/5b40898f7f442d78153d920f1e457252514114760b7dbd3f23011a2261e81ded/shim.sock": listen unix /containerd-shim/moby/5b40898f7f442d78153d920f1e457252514114760b7dbd3f23011a2261e81ded/shim.sock: bind: address already in use: unknown HOT 1
- docker build of 9.1 fails with gpg HOT 3
- Get Sentry image running on AWS ECS HOT 2
- Sentry 10 support HOT 2
- Enhnace Dockerfile to automatically load and "install" plugins HOT 4
- Bring back regular releases to Docker Hub HOT 5
- sentry 10 image not available in docker hub HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-sentry.