# Mautic fails to send segment email error due to IP data doesnt exist

**URL:** <https://forum.mautic.org/t/mautic-fails-to-send-segment-email-error-due-to-ip-data-doesnt-exist/20020>\
**Category:** Product Support\
**Created:** [June 30, 2021, 5:30am UTC](https://forum.mautic.org/t/mautic-fails-to-send-segment-email-error-due-to-ip-data-doesnt-exist/20020 "2021-06-30T05:30:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![duplexcleaning](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/duplexcleaning/32/7211_2.png) [@duplexcleaning](https://forum.mautic.org/u/duplexcleaning)\
**Post date:** [June 30, 2021, 5:30am UTC](https://forum.mautic.org/t/mautic-fails-to-send-segment-email-error-due-to-ip-data-doesnt-exist/20020/1 "2021-06-30T05:30:45Z")

</div>

**Your software**  
My Mautic version is: v2.12.1  
My PHP version is: 7.4.20  
My Database type and version is: MySQL 5.7.34

**Your problem**  
My problem is: Mautic cannot send segment email, 0 out of xxx sent error

These errors are showing in the log:  
[2021-06-30 14:09:55] mautic.WARNING: IP LOOKUP: The file “/home/public\_html/app/cache/prod/…/ip\_data/GeoLite2-City.mmdb” does not exist or is not readable. ]

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [June 30, 2021, 6:36am UTC](https://forum.mautic.org/t/mautic-fails-to-send-segment-email-error-due-to-ip-data-doesnt-exist/20020/2 "2021-06-30T06:36:56Z")

</div>

Hi,  
Make sure it’s readable.  
Check the file ownership in the respective folder.  
J

---

<div class="post-metadata">

**Author:** ![duplexcleaning](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/duplexcleaning/32/7211_2.png) [@duplexcleaning](https://forum.mautic.org/u/duplexcleaning)\
**Post date:** [June 30, 2021, 7:14am UTC](https://forum.mautic.org/t/mautic-fails-to-send-segment-email-error-due-to-ip-data-doesnt-exist/20020/3 "2021-06-30T07:14:00Z")

</div>

Hi J

I checked, the following folder has missing data file  
/public\_html/app/cache/ip\_data

But the log showed it’s located in  
/public\_html/app/cache/prod/…/ip\_data/

I am not sure the “/…/” denotes where after “prod” subfolder or why that changes path?

Can anyone assist? Thank you in advance.

---

<div class="post-metadata">

**Author:** ![fercabr](https://avatars.discourse-cdn.com/v4/letter/f/6de8d8/32.png) [@fercabr](https://forum.mautic.org/u/fercabr)\
**Post date:** [March 24, 2023, 8:30pm UTC](https://forum.mautic.org/t/mautic-fails-to-send-segment-email-error-due-to-ip-data-doesnt-exist/20020/4 "2023-03-24T20:30:51Z")

</div>

Hi there!

Try going to the mautic/app/config folder. Edit local.php file and fix the “/…/” in every folder you find there.  
And make sure the folder permissions are ok.

This should fix the problem.

Regards

---

<div class="post-metadata">

**Author:** ![asad786](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/asad786/32/8990_2.png) [@asad786](https://forum.mautic.org/u/asad786)\
**Post date:** [April 12, 2023, 9:53am UTC](https://forum.mautic.org/t/mautic-fails-to-send-segment-email-error-due-to-ip-data-doesnt-exist/20020/5 "2023-04-12T09:53:56Z")

</div>

You can clear your mautic cache and then tray again sending segment emails
