GitHub discussion traefik-log-dashboard #203 in Help, started by
A4allion GitHub
the geoip not working. can you please explain how to set the database, thankx
Join in here or on GitHub.
GitHub discussion traefik-log-dashboard #203 in Help, started by
A4allion GitHub
the geoip not working. can you please explain how to set the database, thankx
Join in here or on GitHub.
A4alli commented on GitHub:
I have setup (GEOIP_PROVIDER_URLS / GEOIP_PROVIDER_BASE_URL) in environment and
curl http://localhost:3000/api/location/statusshows{“enabled”:true,“available”:true,“provider”:“https://ipwho.is”,“providers”:[{“base_url”:“https://ipwho.is”,“available”:true,“cooldown_until”:null,“last_error”:“HTTP 403”,“consecutive_failures”:11,“success_count”:0,“failure_count”:11},{“base_url”:“https://ip-api.com/json",“available”:true,“cooldown_until”:null,“last_error”:"HTTP 403”,“consecutive_failures”:11,“success_count”:0,“failure_count”:11}],“provider_available”:true,“local_db_path”:null,“local_db_loaded”:false,“local_db_error”:null,“timeout_ms”:3500,“max_ips_per_request”:256,“max_concurrent_lookups”:10,“cache_ttl_ms”:3600000,“unknown_cache_ttl_ms”:300000,“cache_entries”:2,“max_cache_entries”:10000}
A4alli commented on GitHub:
hhftechnology commented on GitHub:
@​A4alli always use
GeoLite2-City.mmdbfile. api will max out and geo logs will not be available.services: # Traefik Log Dashboard Agent traefik-agent: image: hhftechnology/traefik-log-dashboard-agent:latest container_name: traefik-log-dashboard-agent restart: unless-stopped ports: - "5000:5000" volumes: - /root/config/traefik/logs:/logs:ro - ./data/positions:/data environment: # Log Paths - TRAEFIK_LOG_DASHBOARD_ACCESS_PATH=/logs/access.log - TRAEFIK_LOG_DASHBOARD_ERROR_PATH=/logs/access.log # Authentication - TRAEFIK_LOG_DASHBOARD_AUTH_TOKEN=d41d8cd98f00b204e9800998ecf8427e # System Monitoring - TRAEFIK_LOG_DASHBOARD_SYSTEM_MONITORING=true # Server Port - PORT=5000 healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/api/logs/status"] interval: 30s timeout: 10s retries: 3 start_period: 10s networks: - pangolin # Traefik Log Dashboard traefik-dashboard: image: hhftechnology/traefik-log-dashboard:latest container_name: traefik-log-dashboard restart: unless-stopped ports: - "3000:3000" volumes: - ./data/dashboard:/app/data - ./data/positions:/data - ./data/geoip:/geoip:ro environment: # Agent Configuration - REPLACE WITH YOUR TOKEN - AGENT_API_URL=http://traefik-agent:5000 - AGENT_API_TOKEN=d41d8cd98f00b204e9800998ecf8427e - AGENT_NAME=Default Agent - ENABLE_BACKGROUND_SCHEDULER=true - DASHBOARD_REFRESH_INTERVAL_MS=5000 - DASHBOARD_MAX_LOGS_DISPLAY=1000 - GEOIP_LOOKUP_ENABLED=true - GEOIP_LOCAL_DB_PATH=/geoip/GeoLite2-City.mmdb - GEOIP_UNKNOWN_CACHE_TTL_MS=300000 # Node Environment - NODE_ENV=production - PORT=3000 # Display Configuration - SHOW_DEMO_PAGE=false depends_on: traefik-agent: condition: service_healthy networks: - pangolin networks: pangolin: external: true
smoochy commented on GitHub:
The hint is HTTP Response 403 which means “not authorized”. Both providers require a billable subscription. A free alternative would be a local MaxMind IP database https://traefik-log-dashboard.hhf.technology/docs/quickstart#geoip-geographic-location.
I used Maxmind in V2 of the dashboard and after updating to V3, I got also a 403 error. Reason for it - I strongly assume - lies in the fact, that Maxmind now needs to be attached to the Dasboard, and not the Dasboard-Agent anymore. In addition, within the container path changed.
I do have correct path etc set in my homelab. Here you can find a public version for it. Traefik-Log-Dashboard is set within the Traefik stack. GitHub - smoochy/homelab: Task-focused Docker homelab stacks, environment templates, and deployment docs for self-hosted infrastructure built around Komodo, Traefik, and SOPS/age. · GitHub
Hope this helps.
/Edit: Sorry, I had this comment drafted since yesterday, but only added it just now, as the repo was not public yet. ISo I did not see your comment before. f you feel my comment is out of place, just delete it.
hhftechnology commented on GitHub:
@​smoochy mobile app for android and ios coming soon.
off topic
hhftechnology commented on GitHub:
@​A4alli
External Image
smoochy replied in a thread on GitHub to smoochy:
I was wrong here. 403 does not mean “not authorized”. 401 would be “not authorized”.
403 is “I know what you want, but I don’t do it nevertheless”
smoochy replied in a thread on GitHub to hhftechnology:
If you release it for both platforms, I assume it is done with flutter?
smoochy replied in a thread on GitHub to hhftechnology:
Within the compose.yaml of Traefik, I do have it configured like this:
External Imageand the files are set here:
/mnt/user/appdata/traefik-dashboard/data/geoip:
External ImageCompose file: homelab/stacks/traefik/compose.yaml at main · smoochy/homelab · GitHub
Hope this helps @​A4alli
hhftechnology replied in a thread on GitHub to hhftechnology:
First I will release for one of my other project, crowdsec Manager… Then this project and so on, but all my main projects will get an app.
Will start from android, I am still short on money for iOS. So will wait till I get that money saved and purchased the subscription.
MichiFr replied in a thread on GitHub to hhftechnology:
I’ve just read the installation instructions of the docker container geouipupdate and noticed I need an account ID and a licence key for the database download.
I’m I correct?
smoochy replied in a thread on GitHub to hhftechnology:
Yes, this is correct. You can get it for free after creating and logging into a maxmind.com account.
Go to
My Account. On the top left you have your Account ID. Click onManage license keysand generate your license key. Use both in the .env file.
MichiFr replied in a thread on GitHub to hhftechnology:
Thanks for your answer. In fact, I did that before, updated my docker compose and restarted the container.
Unfortunately, I now see thoses errors:
Error retrieving updates: running the job processor: running job: unexpected HTTP status code: received HTTP status code: 403: {"code":"SUBSCRIPTION_EXPIRED","error":"Invalid product ID or subscription expired for GeoIP2-City"}
smoochy replied in a thread on GitHub to hhftechnology:
Try to create a new license key and put that into your .env file. Restart
MichiFr replied in a thread on GitHub to hhftechnology:
For unknown reasons, it now works and files were downloaded. I’ve just added more IDS, before onky the city database was configured.
environment: - GEOIPUPDATE_ACCOUNT_ID=555555555 - GEOIPUPDATE_LICENSE_KEY=agagahahahah - GEOIPUPDATE_FREQUENCY=72 - 'GEOIPUPDATE_EDITION_IDS=GeoLite2-ASN GeoLite2-City GeoLite2-Country'Thanks for your assistance, have a nice evening
svandive commented on GitHub:
I have just deployed the Dashboard today on a Pangolin deployment, and I’m also seeing the 403 error.
[server] Database initialized, env agents synced [alerts] scheduler started (interval=300000ms) [server] Dashboard server running on port 3000 [server] Serving static files from /app/dist [server] Data directory: /data [location] provider=https://ipwho.is fetch returned HTTP 403 for 8.8.8.8 [location] provider check: OK (country=US) [location] local MMDB loaded: /geoip/GeoLite2-City.mmdbenvironment: # Dashboard Configuration - AGENT_1_URL=http://traefik-agent:5000 - AGENT_1_TOKEN=<token-removed> - AGENT_1_NAME=Pangolin - NODE_ENV=production - SHOW_DEMO_PAGE=false - GEOIP_LOOKUP_ENABLED=true - GEOIP_LOCAL_DB_PATH=/geoip/GeoLite2-City.mmdb - GEOIP_PROVIDER_URLS=https://ipwho.is,http://ip-api.com/json - GEOIP_PROVIDER_BASE_URL=https://ipwho.is - PORT=3000Is this a configuration issue, and if so, any suggestions on how to correct it? The docs are pretty straightforward, so I’m at a loss for what I’m missing.
zodac-personal replied in a thread on GitHub to svandive:
Same, also seeing 403 errors, despite providing the local DB path:
[location] local MMDB loaded: /geoip/GeoLite2-Country.mmdb [location] provider=https://ipwho.is fetch returned HTTP 403 for 8.8.8.8 [location] provider check: FAILED (country=Unknown)