How to set GEOIP_PATH_MMDB?

Hi,

I set GEOIP_PATH_MMD in docker-compose.yml, but the following warning is printed:

[WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured.

What’s wrong?

  • docker-compose.yml
x-sentry-defaults: &sentry_defaults
  (snip)
  environment:
    SENTRY_CONF: '/etc/sentry'
    SNUBA: 'http://snuba-api:1218'
    GEOIP_PATH_MMD: '/geoip/GeoLite2-City.mmdb'
    SENTRY_REDIS_HOST: 'redis'
  volumes:
    - 'sentry-data:/data'
    - './sentry:/etc/sentry'
    - './geoip:/geoip'
1 Like

@mzch

Have you managed to solve the GEOIP issue?

No, I haven’t. Could you tell me any hints?

Still figuring out, will inform here if I get more into this.

@mzch
Also I think this is a good start: https://django.readthedocs.io/en/2.2.x/ref/contrib/gis/geoip2.html#std:setting-GEOIP_PATH