# Segments are not updating (1.4)

**URL:** <https://forum.mautic.org/t/segments-are-not-updating-1-4/3740>\
**Category:** Product Support\
**Created:** [May 12, 2016, 11:47am UTC](https://forum.mautic.org/t/segments-are-not-updating-1-4/3740 "2016-05-12T11:47:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lennaert](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@lennaert](https://forum.mautic.org/u/lennaert)\
**Post date:** [May 12, 2016, 11:47am UTC](https://forum.mautic.org/t/segments-are-not-updating-1-4/3740/1 "2016-05-12T11:47:14Z")

</div>

Hello,  
  
  
  
Just starting to set up mautic. Installed version 1.4 and most is working fine and I am very impressed with it so far. Installation is a bit challenging, but i am getting there… ![;-)]( ";-)")  
  
  
  
One problem for now:  
  
  
  
I can’t seem to get the segments automatically updated.  
  
  
  
\*I imported leads (about 12000)  
  
\*made a list/segment with a filter —\> “email” - “not empty” (so every contact with an email will go on that list/segment)  
  
\*Cron job ……/app/console mautic:segments:update \>/dev/null 2\>&1  
  
\*Cron job runs every 15min  
  
  
  
The cron job seems to work, but the list will not update. It says “no contacts”  
  
  
  
Looked at the forum but can’t find the answer I am looking for…;-(  
  
  
  
Anything i am missing here?  
  
  
  
Thanks!  
  
  
  
Lennaert

---

<div class="post-metadata">

**Author:** ![lennaert](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@lennaert](https://forum.mautic.org/u/lennaert)\
**Post date:** [May 12, 2016, 11:47am UTC](https://forum.mautic.org/t/segments-are-not-updating-1-4/3740/2 "2016-05-12T11:47:14Z")

</div>

Hello,

Just starting to set up mautic. Installed version 1.4 and most is working fine and I am very impressed with it so far. Installation is a bit challenging, but i am getting there…😉

One problem for now:

I can’t seem to get the segments automatically updated.

\*I imported leads (about 12000)  
\*made a list/segment with a filter —\> “email” - “not empty” (so every contact with an email will go on that list/segment)  
\*Cron job ……/app/console mautic:segments:update \>/dev/null 2\>&1  
\*Cron job runs every 15min

The cron job seems to work, but the list will not update. It says “no contacts”

Looked at the forum but can’t find the answer I am looking for…;-(

Anything i am missing here?

Thanks!

Lennaert

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [May 12, 2016, 12:32pm UTC](https://forum.mautic.org/t/segments-are-not-updating-1-4/3740/3 "2016-05-12T12:32:24Z")

</div>

What is the output of the mautic:segment:update command when you execute it manually?

---

<div class="post-metadata">

**Author:** ![lennaert](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@lennaert](https://forum.mautic.org/u/lennaert)\
**Post date:** [May 12, 2016, 12:45pm UTC](https://forum.mautic.org/t/segments-are-not-updating-1-4/3740/4 "2016-05-12T12:45:16Z")

</div>

Thanks for your quick reply.

Manually it gives:

$ /usr/local/bin/php /home/plxk346355/domains/nofruit.nl/public\_html/mautic/app/console mautic:segments:update  
Script in progress. Use -f or --force to force execution

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [May 12, 2016, 12:50pm UTC](https://forum.mautic.org/t/segments-are-not-updating-1-4/3740/5 "2016-05-12T12:50:24Z")

</div>

Ok, what is the output when you add the `-f` attribute at the end of the command?

---

<div class="post-metadata">

**Author:** ![lennaert](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@lennaert](https://forum.mautic.org/u/lennaert)\
**Post date:** [May 12, 2016, 1:03pm UTC](https://forum.mautic.org/t/segments-are-not-updating-1-4/3740/6 "2016-05-12T13:03:10Z")

</div>

It is:

$ /usr/local/bin/php /home/plxk346355/domains/nofruit.nl/public\_html/mautic/app/console mautic:segments:update --force  
Rebuilding contacts for segment 2  
12485 total contact(s) to be added in batches of 300  
0/12485 [\>---------------------------] 0%  
Warning: require(/home/plxk346355/domains/nofruit.nl/public\_html/mautic/app/cache/prod/doctrine/orm/Proxies/\_\_CG\_\_MauticLeadBundleEntityLead.php): failed to open stream: No such file or directory in /home/plxk346355/domains/nofruit.nl/public\_html/mautic/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 207

Fatal error: require(): Failed opening required ‘/home/plxk346355/domains/nofruit.nl/public\_html/mautic/app/cache/prod/doctrine/orm/Proxies/\_\_CG\_\_MauticLeadBundleEntityLead.php’ (include\_path=’.:/usr/local/lib/php’) in /home/plxk346355/domains/nofruit.nl/public\_html/mautic/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 207

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [May 12, 2016, 1:04pm UTC](https://forum.mautic.org/t/segments-are-not-updating-1-4/3740/7 "2016-05-12T13:04:54Z")

</div>

Ok, it’s failing on cache. Try to clear it. Remove the app/cache directory and run the command again. And make sure you are not running it as root.

---

<div class="post-metadata">

**Author:** ![lennaert](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@lennaert](https://forum.mautic.org/u/lennaert)\
**Post date:** [May 12, 2016, 1:17pm UTC](https://forum.mautic.org/t/segments-are-not-updating-1-4/3740/8 "2016-05-12T13:17:34Z")

</div>

That solved the problem!
