Service startup blocked waiting for GeoLite2 database download (Request: Async download)
Description My netbird-management service hangs during startup because it is waiting for the GeoLite2 database file (GeoLite2-City_20251217.mmdb) to download. The log indicates the file is missing and a download is initiated, but the process appears to block the entire startup sequence.
If the network is slow, the file server is unresponsive, or if there are other issues (like system time discrepancies), the service fails to start entirely.
Suggestion To improve service robustness and availability, I suggest implementing asynchronous downloading or lazy loading for the geolocation database.
The service should start up and become available immediately. The GeoLite2 database should be downloaded in the background. Geolocation features can be enabled only after the download completes successfully.
Log
netbird-management | 2026-01-08T10:22:31Z INFO management/server/geolocation/database.go:34: Geolocation database file GeoLite2-City_20251217.mmdb not found, file will be downloaded (Service hangs here)