andersju / webbkoll

An online tool that checks how a website is doing with regards to privacy
MIT License
266 stars 27 forks source link

Issue while running the server #27

Closed arunkp closed 3 years ago

arunkp commented 3 years ago

Everything worked as expected but while running the server I encountered this issue. It would be much appreciated if anybody can help here:

image

raphtastisch commented 3 years ago

I can confirm this issue, getting the same error.

andersju commented 3 years ago

MaxMind (provider of the GeoIP database that Webbkoll tries to download) changed their policies at some point. If you look at config/dev.exs or config/prod.exs, you see, under config :webbkoll:

  geoip_db_url: "https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz",
  geoip_db_md5_url: "https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz.md5"

geolite.maxmind.com doesn't even resolve to anything anymore, hence the error. To get working URLs, you need to go to https://dev.maxmind.com/geoip/geoip2/geolite2/ and sign up for a (free) account and get a key. In the Webbkoll configuration it should then look like this (replacing YOUR_LICENSE_KEY_HERE with what you get from MaxMind):

  geoip_db_url: "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=YOUR_LICENSE_KEY_HERE&suffix=tar.gz",
  geoip_db_md5_url: "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=YOUR_LICENSE_KEY_HERE&suffix=tar.gz.md5"