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

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. ]

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

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.

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

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