🐛 Bug Report: data/GeoLite2-City.mmdb: no such file or directory #25

Closed
opened 2025-10-06 23:58:44 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @mitchplze on GitHub.

Reproduction steps

Login to Pocket ID usually triggers this WARN in the logs

Expected behavior

GeoLite database should be installed, and Audit Log should show approx. locations of logins.

Actual Behavior

This error is thrown in Docker logs:

{"time":"2025-09-15T06:04:49.386Z","level":"WARN","msg":"Failed to get IP location","app":"pocket-id","version":"1.10.0","error":"open data/GeoLite2-City.mmdb: no such file or directory"}

No locations are reported in Audit Log (just says "Unknown").

The referenced file indeed does not exist in my ./data directory.

Creating that file blank, changes the error to "file is empty".

I have tried various chmod permissions, and user: 0:0, but it does not seem to repair or fix the GeoLite db.

I also stood up a fresh Pocket ID instance, and noticed that this file is not created out of the box, either.

Pocket ID Version

v1.10.0

Database

SQLite

OS and Environment

Docker on Debian with Caddy

Log Output

No response

Originally created by @mitchplze on GitHub. ### Reproduction steps Login to Pocket ID usually triggers this WARN in the logs ### Expected behavior GeoLite database should be installed, and **Audit Log** should show approx. locations of logins. ### Actual Behavior This error is thrown in Docker logs: ``` {"time":"2025-09-15T06:04:49.386Z","level":"WARN","msg":"Failed to get IP location","app":"pocket-id","version":"1.10.0","error":"open data/GeoLite2-City.mmdb: no such file or directory"} ``` No locations are reported in Audit Log (just says "Unknown"). The referenced file indeed does not exist in my `./data` directory. Creating that file blank, changes the error to "file is empty". I have tried various chmod permissions, and `user: 0:0`, but it does not seem to repair or fix the GeoLite db. I also stood up a fresh Pocket ID instance, and noticed that this file is not created out of the box, either. ### Pocket ID Version v1.10.0 ### Database SQLite ### OS and Environment Docker on Debian with Caddy ### Log Output _No response_
Author
Owner

@stonith404 commented on GitHub:

Did you set the MAXMIND_LICENSE_KEY environment variable?

@stonith404 commented on GitHub: Did you set the `MAXMIND_LICENSE_KEY ` environment variable?
Author
Owner

@mitchplze commented on GitHub:

@stonith404 Okay, interesting, now I'm getting the 'file is empty' error, even with a valid license key.

Thoughts?

@mitchplze commented on GitHub: @stonith404 Okay, interesting, now I'm getting the 'file is empty' error, even with a valid license key. Thoughts?
Author
Owner

@mitchplze commented on GitHub:

Somehow I completely missed that section of the docs, and when I typed "GeoLite" in search, nothing popped up for me.

Apologies, I will try this.

@mitchplze commented on GitHub: Somehow I completely missed that section of the docs, and when I typed "GeoLite" in search, nothing popped up for me. Apologies, I will try this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#25