Corrupt MaxMind DB with 0.55.0 #2211

Closed
opened 2025-11-20 07:05:54 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @Kidswiss on GitHub (Aug 20, 2025).

Describe the problem

After upgrading to v0.55.0 I get this error in the management container:

2025-08-20T12:57:50Z WARN [context: SYSTEM] management/cmd/management.go:201: could not initialize geolocation service. proceeding without geolocation support: /var/lib/netbird/GeoLite2-City_20240305.mmdb could not be opened: error opening database: invalid MaxMind DB file

And then it will just restart.

Downgrading back to 0.54.x fixes the issue.

To Reproduce

Steps to reproduce the behavior:

  1. Upgrade management to 0.55.0
  2. Check the logs

Expected behavior

The management container should startup.

NetBird version

0.55.0

Additional context

Add any other context about the problem here.

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @Kidswiss on GitHub (Aug 20, 2025). **Describe the problem** After upgrading to v0.55.0 I get this error in the management container: ``` 2025-08-20T12:57:50Z WARN [context: SYSTEM] management/cmd/management.go:201: could not initialize geolocation service. proceeding without geolocation support: /var/lib/netbird/GeoLite2-City_20240305.mmdb could not be opened: error opening database: invalid MaxMind DB file ``` And then it will just restart. Downgrading back to 0.54.x fixes the issue. **To Reproduce** Steps to reproduce the behavior: 1. Upgrade management to 0.55.0 2. Check the logs **Expected behavior** The management container should startup. **NetBird version** `0.55.0` **Additional context** Add any other context about the problem here. **Have you tried these troubleshooting steps?** - [x] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [x] Restarted the NetBird client - [x] Disabled other VPN software - [x] Checked firewall settings
saavagebueno added the management-serviceself-hosting labels 2025-11-20 07:05:54 -05:00
Author
Owner

@bcmmbaga commented on GitHub (Aug 20, 2025):

Hi @Kidswiss , the error occurs because of invalid GeoLite2 database files in /var/lib/netbird (e.g. GeoLite2-City*.mmdb, geonames*.db). To fix this you can remove the invalid files and restart the management service. On startup, it will automatically download fresh GeoLite2 databases.

If you’re not sure which files to delete, please share the output of:

ls -l /var/lib/netbird

This will show us which GeoLite2 database files are present and we can guide you on exactly which ones to remove.

@bcmmbaga commented on GitHub (Aug 20, 2025): Hi @Kidswiss , the error occurs because of invalid GeoLite2 database files in `/var/lib/netbird` (e.g.` GeoLite2-City*.mmdb`, `geonames*.db`). To fix this you can remove the invalid files and restart the management service. On startup, it will automatically download fresh GeoLite2 databases. If you’re not sure which files to delete, please share the output of: ```sh ls -l /var/lib/netbird ``` This will show us which GeoLite2 database files are present and we can guide you on exactly which ones to remove.
Author
Owner

@Kidswiss commented on GitHub (Aug 20, 2025):

Hi @bcmmbaga

Thanks that worked!

I checked the changelog for 0.55.0 in more detail now and found: https://github.com/netbirdio/netbird/pull/4362

So I guess my database might have been corrupted for a long time and only now it started to throw the error?

Also, maybe doing a re-download of the database in case it's corrupted might make things a bit more stable.

@Kidswiss commented on GitHub (Aug 20, 2025): Hi @bcmmbaga Thanks that worked! I checked the changelog for 0.55.0 in more detail now and found: https://github.com/netbirdio/netbird/pull/4362 So I guess my database might have been corrupted for a long time and only now it started to throw the error? Also, maybe doing a re-download of the database in case it's corrupted might make things a bit more stable.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2211