slafs / sentry-docker

my approach for dockerizing Sentry

Home Page:https://registry.hub.docker.com/u/slafs/sentry/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Celery ignoring BROKER_URL

skenmy opened this issue · comments

It seems that running celery worker -B as the starting command for the container as per the instructions doesn't honor the SENTRY_BROKER_URL environment variable.

[2015-10-09 12:51:28,719: ERROR/Beat] beat: Connection error: [Errno 111] Connection refused. Trying again in 32.0 seconds... [2015-10-09 12:52:00,709: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused. Trying again in 32.00 seconds...

As such I am unable to start any workers.

Interestingly, running docker exec worker-container sentry --config=/conf/sentry_docker_conf.py celery worker -B, where worker-container is the running container giving the connection error, succeeds!

what's the value of your SENTRY_BROKER_URL env var?

maybe your problem is similar to #39 (comment) ?

I am having the same issue and I don't have tailing slashes. Is currently another issue that is causing this?

@slafs do you have any sugestion how I could investigate this?

well, @robertdolca first of all open a seperate issue, second of all let us look at some of your logs to actually be able to help