# GeoLite2-City update doesn't work.

**URL:** https://forum.mautic.org/t/geolite2-city-update-doesnt-work/8700
**Category:** Product Support
**Created:** [June 10, 2017, 12:08am UTC](https://forum.mautic.org/t/geolite2-city-update-doesnt-work/8700 "2017-06-10T00:08:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cStuartHardwick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cstuarthardwick/32/5695_2.png) [@cStuartHardwick](https://forum.mautic.org/u/cStuartHardwick)
#### Post date: [June 10, 2017, 12:08am UTC](https://forum.mautic.org/t/geolite2-city-update-doesnt-work/8700/1 "2017-06-10T00:08:53Z")

</div>

I've never been able to get the IP-database to work. My log is always full of errors like these:  
  
[2017-06-09 20:02:05] mautic.WARNING: PHP Warning - gzdecode(): data error - in file /home/cstukfps/email/app/bundles/CoreBundle/IpLookup/AbstractLocalDataLookup.php - at line 91 [] []  
[2017-06-09 20:04:56] mautic.WARNING: IP LOOKUP: Error opening database file (/home/cstukfps/email/app/cache/prod/../ip\_data/GeoLite2-City.mmdb). Is this a valid MaxMind DB file? [] []  
  
When I look, the mmdb file exists, but has zero bytes.  
If I go to the configuration screen and click "Update IP Lookup Data Store" it will fail without giving a reason or logging anything, but it prints out instructions on updating manually. I can follow those instructions and everything's fine--then a few hours later, if I check, the mmdb file is back to zero bytes and the log is filling with errors.  
  
What's going on here?

---

<div class="post-metadata">

### Author: ![cStuartHardwick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cstuarthardwick/32/5695_2.png) [@cStuartHardwick](https://forum.mautic.org/u/cStuartHardwick)
#### Post date: [June 10, 2017, 12:08am UTC](https://forum.mautic.org/t/geolite2-city-update-doesnt-work/8700/2 "2017-06-10T00:08:53Z")

</div>

I’ve never been able to get the IP-database to work. My log is always full of errors like these:

[2017-06-09 20:02:05] mautic.WARNING: PHP Warning - gzdecode(): data error - in file /home/cstukfps/email/app/bundles/CoreBundle/IpLookup/AbstractLocalDataLookup.php - at line 91 [] []  
[2017-06-09 20:04:56] mautic.WARNING: IP LOOKUP: Error opening database file (/home/cstukfps/email/app/cache/prod/…/ip\_data/GeoLite2-City.mmdb). Is this a valid MaxMind DB file? [] []

When I look, the mmdb file exists, but has zero bytes.  
If I go to the configuration screen and click “Update IP Lookup Data Store” it will fail without giving a reason or logging anything, but it prints out instructions on updating manually. I can follow those instructions and everything’s fine–then a few hours later, if I check, the mmdb file is back to zero bytes and the log is filling with errors.

What’s going on here?
