# Maxmind GeoLite 2 and GeoIP auto update

**URL:** <https://forum.mautic.org/t/maxmind-geolite-2-and-geoip-auto-update/22754>\
**Category:** Product Support\
**Created:** [February 18, 2022, 1:39pm UTC](https://forum.mautic.org/t/maxmind-geolite-2-and-geoip-auto-update/22754 "2022-02-18T13:39:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [February 18, 2022, 1:39pm UTC](https://forum.mautic.org/t/maxmind-geolite-2-and-geoip-auto-update/22754/1 "2022-02-18T13:39:10Z")

</div>

Continuing the discussion from [Mautic stops fetching GeoLite2 data](https://forum.mautic.org/t/mautic-stops-fetching-geolite2-data/11626/5):

**Your software**  
My Mautic version is: 3.3 and 4.1  
My PHP version is: 7.4  
My Database type and version is:

**Your problem**  
My problem is: The fetch lookup db fails to load in mautic

Is [this solution](https://mauteam.org/mautic/mautic-admins/solved-maxmind-geolite2-database-not-updating/) still working in 2022?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 21, 2022, 12:39pm UTC](https://forum.mautic.org/t/maxmind-geolite-2-and-geoip-auto-update/22754/2 "2022-02-21T12:39:42Z")

</div>

Please read the official documentation:

> **[Maxmind license](https://docs.mautic.org/en/setup/maxmind-license)**
>
> . From the 2.16 release, Mautic has supported using a license key to access the MaxMind IP lookup service.. . . . From the 3.2 release the format for the license key needs to be AccountID:Licensekey. You can locate the Account ID directly preceding...

---

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [February 21, 2022, 12:51pm UTC](https://forum.mautic.org/t/maxmind-geolite-2-and-geoip-auto-update/22754/3 "2022-02-21T12:51:02Z")

</div>

I already did and didn’t help. That is why I’m asking whether that solution still works.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 23, 2022, 2:09pm UTC](https://forum.mautic.org/t/maxmind-geolite-2-and-geoip-auto-update/22754/4 "2022-02-23T14:09:50Z")

</div>

Perhaps you could share the logs from your Mautic instance when you try to fetch the database? Otherwise we can’t really help you.

---

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [February 23, 2022, 2:50pm UTC](https://forum.mautic.org/t/maxmind-geolite-2-and-geoip-auto-update/22754/5 "2022-02-23T14:50:42Z")

</div>

Ok, I can confirm that the solution still works in 2022.  
I’ve managed to install the database and the contact’s location is showing up within the dashboard, the issue is that the dynamic content feature I’m testing doesn’t seem to work yet.  
Am I missing something?

---

<div class="post-metadata">

**Author:** ![arthur\_leite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/arthur_leite/32/6698_2.png) [@arthur\_leite](https://forum.mautic.org/u/arthur_leite)\
**Post date:** [January 3, 2023, 10:56pm UTC](https://forum.mautic.org/t/maxmind-geolite-2-and-geoip-auto-update/22754/6 "2023-01-03T22:56:41Z")

</div>

Hi, @silavapi

I followed the tutorial, created the Maxmind account, generated the key, put the key in the AccountID:Licensekey format and nothing happens when I click on Fetch IP Lookup Data Store.

Actually something happens on the backend. The ajax request returns 200 but with response {“success”:0}.

Request: https://{mautic.mydomain}/s/ajax?action=downloadIpLookupDataStore&service=maxmind\_download&auth={MyAccountID}%3{MyLicensekey}&\_={UnknownNumber}&mauticUserLastActive=705&mauticLastNotificationId=  
Request Method: GET  
Status Code: 200

What could be happening?

Best Regards,

Arthur

---

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [January 6, 2023, 9:39pm UTC](https://forum.mautic.org/t/maxmind-geolite-2-and-geoip-auto-update/22754/7 "2023-01-06T21:39:31Z")

</div>

Which version are you running?

---

<div class="post-metadata">

**Author:** ![arthur\_leite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/arthur_leite/32/6698_2.png) [@arthur\_leite](https://forum.mautic.org/u/arthur_leite)\
**Post date:** [January 7, 2023, 2:21pm UTC](https://forum.mautic.org/t/maxmind-geolite-2-and-geoip-auto-update/22754/8 "2023-01-07T14:21:10Z")

</div>

Mautic 4.4.5

---

<div class="post-metadata">

**Author:** ![promes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/promes/32/9049_2.png) [@promes](https://forum.mautic.org/u/promes)\
**Post date:** [January 10, 2023, 12:46pm UTC](https://forum.mautic.org/t/maxmind-geolite-2-and-geoip-auto-update/22754/9 "2023-01-10T12:46:34Z")

</div>

I had the same problem. I solved it by running the command  
`php /opt/bitnami/mautic/bin/console mautic:iplookup:download`  
as sudo (otherwise it produces a permissions’ error).  
Hope it helps!

---

<div class="post-metadata">

**Author:** ![arthur\_leite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/arthur_leite/32/6698_2.png) [@arthur\_leite](https://forum.mautic.org/u/arthur_leite)\
**Post date:** [January 12, 2023, 3:30pm UTC](https://forum.mautic.org/t/maxmind-geolite-2-and-geoip-auto-update/22754/10 "2023-01-12T15:30:56Z")

</div>

Cool, it helped a lot. The button still doesn’t work, but with this command I created a cron job that periodically updates the file. A better solution than having to update manually via button. Thanks!
