Segments don't load contacts

Hey!

I manually added a couple of contacts, then went to Segments and created a segment with a filter for “Email” - “equals” - “contact’s email”, but the segment doesn’t load the contact. I also tried to filter by country (equal / not-equal), but nothing works.

As I’m a software developer myself, I briefly debugged it and found that it tried to retrieve contacts from lead_lists_leads, but that table is empty. But the Segments page shows one segment.

PHP 8.3.6
Mariadb 15.1
Ubuntu 24.04.2

Could you please help? Thank you!

Did you rebuild the segments using the cron job?

Thanks @rcheesley ! This fixed the problem.
I couldn’t find the correct or recommended intervals for cron jobs, though. IMO, it would be great if Mautic only needed one cron job that runs every 1 or 5 minutes and automatically decides which jobs to call and when, based on recent data in the DB. But that’s just my suggestion. Would simplify the installation.

Great, glad to hear it.

Thanks for the suggestions - timings for cron jobs are something that an org will set depending on their own needs, both from the infrastructure side of things and from the marketer side of things (e.g. rebuilding specific segments and campaigns more frequently than others as required.)

There’s several resources posted here in the forums where folks have created scripts to do what you’re suggesting, tweaked to their specific requirements, it’s quite bespoke to each instance but I seem to recall that consolidating or at least helping by centralising into smaller number of crons is something we have talked about in the past, so definitely worth checking the ideas suggested in Ideas and Feature Requests and if you have others to propose, please do make a post there!

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.