🐛 Bug Report: Unknown Locations despite GEO DB being loaded? #396

Closed
opened 2025-10-08 00:06:53 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @eximo84 on GitHub.

Reproduction steps

I have enabled my API key and pointing the environment at the DB but my audit log is showing unknown. No errors in the logs.

My Compose

services:
  pocket-id:
    image: stonith404/pocket-id  # or ghcr.io/stonith404/pocket-id
    container_name: pocket-id
    hostname: pocket-id
    restart: unless-stopped
    env_file: .env
    ports:
      - 3080:88
    volumes:
      - "/dockerdata/storage/pocket-id:/app/backend/data"
    # Optional healthcheck  
    healthcheck:
      test: "curl -f http://localhost:88/health"
      interval: 1m30s
      timeout: 5s
      retries: 2
      start_period: 10s
    networks:
      - default
      - reverse_proxy
  
networks:
  default:
    name: $MY_DEFAULT_NETWORK
    external: true
  reverse_proxy:
    name: $MY_REVERSEPROXY_NETWORK
    external: true

My .env

# GENERAL
MY_DEFAULT_NETWORK=internal_apps
MY_REVERSEPROXY_NETWORK=reverse_proxy
MY_DOMAIN=my.domain.com
TZ=Europe/London
PGID=XXX
PUID=XXX


# See the README for more information: https://github.com/stonith404/pocket-id?tab=readme-ov-file#environment-variables
PUBLIC_APP_URL=https://xyz.$MY_DOMAIN
TRUST_PROXY=true
MAXMIND_LICENSE_KEY=XXX
GEOLITE_DB_PATH=/app/backend/data/GeoLite2-City.mmdb
CADDY_PORT=88

Image

Image

Image

Expected behavior

audit log to show city or approx location

Actual Behavior

audit log showing unknown

Originally created by @eximo84 on GitHub. ### Reproduction steps I have enabled my API key and pointing the environment at the DB but my audit log is showing unknown. No errors in the logs. My Compose ``` services: pocket-id: image: stonith404/pocket-id # or ghcr.io/stonith404/pocket-id container_name: pocket-id hostname: pocket-id restart: unless-stopped env_file: .env ports: - 3080:88 volumes: - "/dockerdata/storage/pocket-id:/app/backend/data" # Optional healthcheck healthcheck: test: "curl -f http://localhost:88/health" interval: 1m30s timeout: 5s retries: 2 start_period: 10s networks: - default - reverse_proxy networks: default: name: $MY_DEFAULT_NETWORK external: true reverse_proxy: name: $MY_REVERSEPROXY_NETWORK external: true ``` My .env ``` # GENERAL MY_DEFAULT_NETWORK=internal_apps MY_REVERSEPROXY_NETWORK=reverse_proxy MY_DOMAIN=my.domain.com TZ=Europe/London PGID=XXX PUID=XXX # See the README for more information: https://github.com/stonith404/pocket-id?tab=readme-ov-file#environment-variables PUBLIC_APP_URL=https://xyz.$MY_DOMAIN TRUST_PROXY=true MAXMIND_LICENSE_KEY=XXX GEOLITE_DB_PATH=/app/backend/data/GeoLite2-City.mmdb CADDY_PORT=88 ``` ![Image](https://github.com/user-attachments/assets/53978cd5-ed17-46a6-9f45-2326c31fc274) ![Image](https://github.com/user-attachments/assets/1d2c8ebe-7c9f-478f-a400-eb9bc48505f4) ![Image](https://github.com/user-attachments/assets/4843b53a-0556-4a9f-b6fd-1e16b986da3a) ### Expected behavior audit log to show city or approx location ### Actual Behavior audit log showing unknown
OVERLORD added the bug label 2025-10-08 00:06:53 +03:00
Author
Owner

@kmendell commented on GitHub:

Are the IPs reported local ip addresses? i think the geo db will only work if it's public ip addresses

@kmendell commented on GitHub: Are the IPs reported local ip addresses? i think the geo db will only work if it's public ip addresses
Author
Owner

@stonith404 commented on GitHub:

If the IPs in your audit logs aren't yours, can you share a few?

@stonith404 commented on GitHub: If the IPs in your audit logs aren't yours, can you share a few?
Author
Owner

@stonith404 commented on GitHub:

Do you have Cloudflare or something similar in front?

@stonith404 commented on GitHub: Do you have Cloudflare or something similar in front?
Author
Owner

@eximo84 commented on GitHub:

Are the IPs reported local ip addresses? i think the geo db will only work if it's public ip addresses

I have see public IPs from Switzerland despite me being in the UK and I don't connect to those services over a proxy or vpn.

@eximo84 commented on GitHub: > Are the IPs reported local ip addresses? i think the geo db will only work if it's public ip addresses I have see public IPs from Switzerland despite me being in the UK and I don't connect to those services over a proxy or vpn.
Author
Owner

@eximo84 commented on GitHub:

No just cast as my reverse proxy

@eximo84 commented on GitHub: No just cast as my reverse proxy
Author
Owner

@eximo84 commented on GitHub:

Ok tried my cell and it's showing a location now. I'm sorry!

🙄 I'm giving myself eye rolls.

Thanks for those that responded.

@eximo84 commented on GitHub: Ok tried my cell and it's showing a location now. I'm sorry! 🙄 I'm giving myself eye rolls. Thanks for those that responded.
Author
Owner

@eximo84 commented on GitHub:

If the IPs in your audit logs aren't yours, can you share a few?

136.226.168.165
147.161.143.71

So I have managed to identify these as safe but they still show unknown (they are a proxy IP) so maybe that's why.

I'm not seeing any other external IPs being authenticated so that's a relief.

Let me attempt connecting via my cellular service provider.

@eximo84 commented on GitHub: > If the IPs in your audit logs aren't yours, can you share a few? 136.226.168.165 147.161.143.71 So I have managed to identify these as safe but they still show unknown (they are a proxy IP) so maybe that's why. I'm not seeing any other external IPs being authenticated so that's a relief. Let me attempt connecting via my cellular service provider.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id-pocket-id-1#396