# Segment Cron Job Error

**URL:** https://forum.mautic.org/t/segment-cron-job-error/8101
**Category:** Product Support
**Created:** [April 4, 2017, 5:22pm UTC](https://forum.mautic.org/t/segment-cron-job-error/8101 "2017-04-04T17:22:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![LogPyx](https://avatars.discourse-cdn.com/v4/letter/l/f1d935/32.png) [@LogPyx](https://forum.mautic.org/u/LogPyx)
#### Post date: [April 4, 2017, 5:22pm UTC](https://forum.mautic.org/t/segment-cron-job-error/8101/1 "2017-04-04T17:22:05Z")

</div>

Hello there,  
  
  
  
We are having trouble to execute the cron job command that update segments list.  
  
  
  
When we execute the following:

Code:

php /var/www/patch.com/htdocs/app/console mautic:segments:update --force --batch-limit=300

  
The following error are returned:

Code:

0/1 [\>---------------------------] 0%PHP Warning: require(/var/www/patch.com/htdocs/app/cache/prod/doctrine/orm/Proxies/\_\_CG\_\_MauticLeadBundleEntityLead.php): failed to open stream: No such file or directory in /var/www/patch.com/htdocs/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 209 PHP Fatal error: require(): Failed opening required '/var/www/patch.com/htdocs/app/cache/prod/doctrine/orm/Proxies/\_\_CG\_\_MauticLeadBundleEntityLead.php' (include\_path='.:/usr/share/php:/usr/share/pear') in /var/www/patch.com/htdocs/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 209

[SymfonyComponentDebugExceptionFatalErrorException]  
Compile Error: require(): Failed opening required ‘/var/www/patch.com/htdocs/app/cache/prod/doctrine/orm/Proxies/\_\_CG\_\_MauticLeadBundl  
eEntityLead.php’ (include\_path=’.:/usr/share/php:/usr/share/pear’)

  
Does anyone have any clues?  
  
Thank you!

---

<div class="post-metadata">

### Author: ![LogPyx](https://avatars.discourse-cdn.com/v4/letter/l/f1d935/32.png) [@LogPyx](https://forum.mautic.org/u/LogPyx)
#### Post date: [April 4, 2017, 5:22pm UTC](https://forum.mautic.org/t/segment-cron-job-error/8101/2 "2017-04-04T17:22:05Z")

</div>

Hello there,

We are having trouble to execute the cron job command that update segments list.

When we execute the following:

```auto
php /var/www/patch.com/htdocs/app/console mautic:segments:update --force --batch-limit=300
```

The following error are returned:

[code] 0/1 [\>---------------------------] 0%PHP Warning: require(/var/www/patch.com/htdocs/app/cache/prod/doctrine/orm/Proxies/\_\_CG\_\_MauticLeadBundleEntityLead.php): failed to open stream: No such file or directory in /var/www/patch.com/htdocs/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 209  
PHP Fatal error: require(): Failed opening required ‘/var/www/patch.com/htdocs/app/cache/prod/doctrine/orm/Proxies/\_\_CG\_\_MauticLeadBundleEntityLead.php’ (include\_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/patch.com/htdocs/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 209

[SymfonyComponentDebugExceptionFatalErrorException]  
Compile Error: require(): Failed opening required ‘/var/www/patch.com/htdocs/app/cache/prod/doctrine/orm/Proxies/\_\_CG\_\_MauticLeadBundl  
eEntityLead.php’ (include\_path=’.:/usr/share/php:/usr/share/pear’)  
[/code]

Does anyone have any clues?

Thank you!
