# Automatically fetching IP lookup data failed

**URL:** https://forum.mautic.org/t/automatically-fetching-ip-lookup-data-failed/23557
**Category:** Product Support
**Tags:** mautic-4
**Created:** [April 4, 2022, 12:53pm UTC](https://forum.mautic.org/t/automatically-fetching-ip-lookup-data-failed/23557 "2022-04-04T12:53:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ottoste](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ottoste/32/7296_2.png) [@ottoste](https://forum.mautic.org/u/ottoste)
#### Post date: [April 4, 2022, 12:53pm UTC](https://forum.mautic.org/t/automatically-fetching-ip-lookup-data-failed/23557/1 "2022-04-04T12:53:31Z")

</div>

**Your software**  
My Mautic version is: **4.1.0**  
My PHP version is: **PHP 7.4.28**  
My Database type and version is: **MariaDB 10.7.3**

**Your problem**  
After creating the Maxmind account and license key according Mautic [official documentation](https://docs.mautic.org/en/setup/maxmind-license) the “Fetch IP Lookup Datastore” gives me the following error on the browser console:  
`POST https://mautic.itagency.it/s/ajax?action=downloadIpLookupDataStore&mauticUserLastActive=7&mauticLastNotificationId= 500 (Internal Server Error) - libraries.js?v7dde1804:766`

Also, running manually the cli command  
`php /var/www/html/mautic/bin/console mautic:iplookup:download`  
I get the error  
`Automatically fetching IP lookup data failed.`
