Matomo Geolocation always returning Unknown

Hi everyone,

I’m having some trouble with the Geolocation feature in Matomo. I have installed the GeoIP 2 Lite City database inside the "misc"folder, but it’s not showing the correct location for my visitors. It always returns “Unknown” instead of the city and country. I know that the database file is correct and working, because we use it in another service. Does anyone have any idea what could be causing this issue? Here are some more details about my setup:

  • Matomo version: 4.14.2 (On Premise)
  • MySQL version: 10.3.23-MariaDB-log
  • PHP version: 8.1.19
  • I have selected GeoIP 2 (PHP) as the Geolocation provider in the settings and verified that the path to the database file is correct.
  • I have tested the Geolocation feature on different browsers and devices, but none of them show the correct location.

I would appreciate any help or suggestions. Thanks in advance.