[GH-ISSUE #2331] [debug]: MaxMind ASN DB path not configured, cannot perform ASN lookup #8904

Closed
opened 2026-04-30 05:01:05 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Kornelius777 on GitHub (Jan 25, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2331

Describe the Bug

Dear all,

my ./config/config.yml includes the following lines:

server:
  maxmind_db_path: "./config/geo-db/GeoLite2-Country.mmdb"

The file is available and readable:

root@ionos-1:/docker# ls -l ./config/geo-db/GeoLite2-Country.mmdb
-rw-r--r-- 1 root root 9641734 Jan 23 11:34 ./config/geo-db/GeoLite2-Country.mmdb

Now - whenever somebody connects - I get the following line in the logs:

MaxMind ASN DB path not configured, cannot perform ASN lookup

This puzzles me.

Example:

pangolin  | 2026-01-25T12:17:17+00:00 [debug]: Client IP: {"clientIp":"165.245.191.161"}
pangolin  | 2026-01-25T12:17:17+00:00 [debug]: MaxMind ASN DB path not configured, cannot perform ASN lookup
pangolin  | 2026-01-25T12:17:17+00:00 [debug]: Resource denied by rule
pangolin  | 2026-01-25T12:17:17+00:00 [debug]: {"data":{"valid":false,"pangolinVersion":"1.15.1"},"success":true,"error":false,"message":"Access denied","status":200}
pangolin  | 2026-01-25T12:17:18+00:00 [debug]: Verify session: Badger sent {"sessions":{},"originalRequestURL":"https://subdomain.domain.local/cms/wp-includes/wlwmanifest.xml","scheme":"","host":"subdomain.domain.local","path":"/cms/wp-includes/wlwmanifest.xml","method":"GET","tls":true,"requestIp":"165.245.191.161","headers":{"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","Accept-Language":"en-US,en;q=0.5","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36","X-Forwarded-Host":"subdomain.domain.local","X-Forwarded-Port":"443","X-Forwarded-Proto":"https","X-Forwarded-Server":"d041b0a5f547","X-Real-Ip":"165.245.191.161"},"badgerVersion":"1.3.1"}

Is this a bug or a feature?

Environment

  • OS Type & Version: (e.g., Ubuntu 22.04)
root@ionos-1:/docker# cat /etc/issue
Debian GNU/Linux 13 \n \l
  • Pangolin Version:
    1.15.1

  • Gerbil Version:
    latest

  • Traefik Version:
    latest

  • Newt Version:
    1.9.0

  • Olm Version: (if applicable)

To Reproduce

see above

Expected Behavior

do not throw an error.
use the GeoIP Database as expected

Originally created by @Kornelius777 on GitHub (Jan 25, 2026). Original GitHub issue: https://github.com/fosrl/pangolin/issues/2331 ### Describe the Bug Dear all, my ./config/config.yml includes the following lines: ``` server: maxmind_db_path: "./config/geo-db/GeoLite2-Country.mmdb" ``` The file is available and readable: ``` root@ionos-1:/docker# ls -l ./config/geo-db/GeoLite2-Country.mmdb -rw-r--r-- 1 root root 9641734 Jan 23 11:34 ./config/geo-db/GeoLite2-Country.mmdb ``` Now - whenever somebody connects - I get the following line in the logs: ``` MaxMind ASN DB path not configured, cannot perform ASN lookup ``` This puzzles me. Example: ``` pangolin | 2026-01-25T12:17:17+00:00 [debug]: Client IP: {"clientIp":"165.245.191.161"} pangolin | 2026-01-25T12:17:17+00:00 [debug]: MaxMind ASN DB path not configured, cannot perform ASN lookup pangolin | 2026-01-25T12:17:17+00:00 [debug]: Resource denied by rule pangolin | 2026-01-25T12:17:17+00:00 [debug]: {"data":{"valid":false,"pangolinVersion":"1.15.1"},"success":true,"error":false,"message":"Access denied","status":200} pangolin | 2026-01-25T12:17:18+00:00 [debug]: Verify session: Badger sent {"sessions":{},"originalRequestURL":"https://subdomain.domain.local/cms/wp-includes/wlwmanifest.xml","scheme":"","host":"subdomain.domain.local","path":"/cms/wp-includes/wlwmanifest.xml","method":"GET","tls":true,"requestIp":"165.245.191.161","headers":{"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","Accept-Language":"en-US,en;q=0.5","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36","X-Forwarded-Host":"subdomain.domain.local","X-Forwarded-Port":"443","X-Forwarded-Proto":"https","X-Forwarded-Server":"d041b0a5f547","X-Real-Ip":"165.245.191.161"},"badgerVersion":"1.3.1"} ``` Is this a bug or a feature? ### Environment - OS Type & Version: (e.g., Ubuntu 22.04) ``` root@ionos-1:/docker# cat /etc/issue Debian GNU/Linux 13 \n \l ``` - Pangolin Version: 1.15.1 - Gerbil Version: latest - Traefik Version: latest - Newt Version: 1.9.0 - Olm Version: (if applicable) ### To Reproduce see above ### Expected Behavior do not throw an error. use the GeoIP Database as expected
Author
Owner

@Lokowitz commented on GitHub (Jan 25, 2026):

Hi @Kornelius777
you are using the wrong config key.
It should be maxmind_asn_path for ASN.
maxmind_db_path ist for GEO Blocking.

See docs.

<!-- gh-comment-id:3796637726 --> @Lokowitz commented on GitHub (Jan 25, 2026): Hi @Kornelius777 you are using the wrong config key. It should be maxmind_asn_path for ASN. maxmind_db_path ist for GEO Blocking. See [docs](https://docs.pangolin.net/self-host/advanced/enable-asnblocking).
Author
Owner

@Kornelius777 commented on GitHub (Jan 25, 2026):

D'OH. Thank you.
Things could be so easy...

<!-- gh-comment-id:3796673783 --> @Kornelius777 commented on GitHub (Jan 25, 2026): D'OH. Thank you. Things could be so easy...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#8904