Skip to content

GeoIP doesn't seem to be working #25

@saniac

Description

@saniac

I have configured LIWAN with MaxMind credentials, using environment variables in my service file:

Environment="LIWAN_MAXMIND_EDITION=GeoLite2-City" "LIWAN_MAXMIND_ACCOUNT_ID=XXX" "LIWAN_MAXMIND_LICENSE_KEY=XXX"

On restarting, I see the following in the logs:

Nov 03 01:42:02 liwan systemd[1]: Started liwan.service - Liwan Web Analytics.
Nov 03 01:42:02 liwan liwan[1638]: 2025-11-03T01:42:02.299731Z  INFO liwan::app::core::geoip: GeoIP support enabled, load>
Nov 03 01:42:02 liwan liwan[1638]: 2025-11-03T01:42:02.300246Z  INFO liwan::app::core::geoip: GeoIP database doesn't exis>
Nov 03 01:42:02 liwan liwan[1638]: 2025-11-03T01:42:02.301629Z  INFO liwan::web: Liwan is running on http://localhost:9042
Nov 03 01:42:08 liwan liwan[1638]: 2025-11-03T01:42:08.699993Z  INFO liwan::app::core::geoip: GeoIP database updated successfully path="/home/liwan/.local/share/liwan/data/geoip/GeoLite2-City.mmdb"
...
Nov 03 02:00:01 liwan systemd[1]: Started liwan.service - Liwan Web Analytics.
Nov 03 02:00:01 liwan liwan[1732]: 2025-11-03T02:00:01.271214Z  INFO liwan::app::core::geoip: GeoIP support enabled, loading database
Nov 03 02:00:01 liwan liwan[1732]: 2025-11-03T02:00:01.303280Z  INFO liwan::web: Liwan is running on http://localhost:9042

After this I have made requests to the web server, to ensure there is new data, but I do not see country information in the dashboard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions