You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
$ docker-compose run --rm sentry upgrade
sentry.runner.importer.ConfigurationError: Exception: Error: REDIS_PORT_6379_TCP_ADDR (or SENTRY_REDIS_HOST) is undefined, did you forget to `--link` a redis container?
Idea for a fix (but needs review):
redis = env('SENTRY_REDIS_HOST', 'redis')
Same for other similar variables and then it works (tested by specifying SENTRY_REDIS_HOSTandSENTRY_POSTGRES_HOST but also some that are not shared like POSTGRES_ENV_POSTGRES_PASSWORD and POSTGRES_ENV_POSTGRES_USERNAME and that makes a lot more sense).
The text was updated successfully, but these errors were encountered:
What's wrong with just saying SENTRY_REDIS_HOST=redis? I would rather not make assumptions about connecting to a DNS record of simply "redis" automatically. That's potentially insecure and incorrect. It should be an explicit decision.
Ok, may be improve the error when one provides SENTRY_REDIS_HOST but didn't specify SENTRY_POSTGRES_HOST it fails in Django without talking about missing that environment variable.
It looks like it currently uses deprecated environment variables like
REDIS_PORT_6379_TCP_ADDR
insentry.conf.py
:This for example doesn't work when using
docker-compose.yml
equivalent to the started commands:Idea for a fix (but needs review):
Same for other similar variables and then it works (tested by specifying
SENTRY_REDIS_HOST
andSENTRY_POSTGRES_HOST
but also some that are not shared likePOSTGRES_ENV_POSTGRES_PASSWORD
andPOSTGRES_ENV_POSTGRES_USERNAME
and that makes a lot more sense).The text was updated successfully, but these errors were encountered: