# CRON Jobs not working in 2.1.1

**URL:** <https://forum.mautic.org/t/cron-jobs-not-working-in-2-1-1/6423>\
**Category:** Product Support\
**Created:** [November 2, 2016, 3:37pm UTC](https://forum.mautic.org/t/cron-jobs-not-working-in-2-1-1/6423 "2016-11-02T15:37:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blancher](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@Blancher](https://forum.mautic.org/u/Blancher)\
**Post date:** [November 2, 2016, 3:37pm UTC](https://forum.mautic.org/t/cron-jobs-not-working-in-2-1-1/6423/1 "2016-11-02T15:37:27Z")

</div>

Hi,  
  
  
  
I have a problem with my cron jobs. All was working fine since October 28 and apparently stop.  
  
I set up external cron jobs with [cron-job.org](http://cron-job.org) and since octobre 28, the 3 main cron jobs are down (failed) with error 500 Internal error. What is really strange is, just the 3 main cron jobs doesn’t work, other yes. I mean mautic:campaigns:rebuild, mautic:campaigns:trigger and mautic:segments:update don’t work, other seems to be ok.  
  
  
  
I check on my server log and it’s appear since the 28 of october this error:

Code:

[Tue Nov 01 19:22:07 2016] [error] [client 136.243.171.254] PHP Fatal error: Call to undefined method Mautic\LeadBundle\Command\UpdateLeadListsCommand::writeln() in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 103 [Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: fopen(/var/www/html/marketingdashboard/app/cache/prod/../script\_executions.json): failed to open stream: Permission denied in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 50 [Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 52 [Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 56 [Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: ftruncate() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 80 [Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: rewind() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 81 [Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: fputs() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 83 [Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: fflush() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 84 [Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 86 [Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 87 [Tue Nov 01 19:24:08 2016] [error] [client 136.243.171.254] PHP Warning: fopen(/var/www/html/marketingdashboard/app/cache/prod/../script\_executions.json): failed to open stream: Permission denied in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 97 [Tue Nov 01 19:24:08 2016] [error] [client 136.243.171.254] PHP Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 99 [Tue Nov 01 19:24:08 2016] [error] [client 136.243.171.254] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 101

  
  
It's look like there is a parameter missing but all was working before and I change nothing. Anyone have an idea?  
  
Thanks

---

<div class="post-metadata">

**Author:** ![Blancher](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@Blancher](https://forum.mautic.org/u/Blancher)\
**Post date:** [November 2, 2016, 3:37pm UTC](https://forum.mautic.org/t/cron-jobs-not-working-in-2-1-1/6423/2 "2016-11-02T15:37:27Z")

</div>

Hi,

I have a problem with my cron jobs. All was working fine since October 28 and apparently stop.  
I set up external cron jobs with [cron-job.org](http://cron-job.org) and since octobre 28, the 3 main cron jobs are down (failed) with error 500 Internal error. What is really strange is, just the 3 main cron jobs doesn’t work, other yes. I mean mautic:campaigns:rebuild, mautic:campaigns:trigger and mautic:segments:update don’t work, other seems to be ok.

I check on my server log and it’s appear since the 28 of october this error:

`[Tue Nov 01 19:22:07 2016] [error] [client 136.243.171.254] PHP Fatal error: Call to undefined method Mautic\LeadBundle\Command\UpdateLeadListsCommand::writeln() in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 103
[Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: fopen(/var/www/html/marketingdashboard/app/cache/prod/../script_executions.json): failed to open stream: Permission denied in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 50
[Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 52
[Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 56
[Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: ftruncate() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 80
[Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: rewind() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 81
[Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: fputs() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 83
[Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: fflush() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 84
[Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 86
[Tue Nov 01 19:24:07 2016] [error] [client 136.243.171.254] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 87
[Tue Nov 01 19:24:08 2016] [error] [client 136.243.171.254] PHP Warning: fopen(/var/www/html/marketingdashboard/app/cache/prod/../script_executions.json): failed to open stream: Permission denied in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 97
[Tue Nov 01 19:24:08 2016] [error] [client 136.243.171.254] PHP Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 99
[Tue Nov 01 19:24:08 2016] [error] [client 136.243.171.254] PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /var/www/html/marketingdashboard/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 101
`

It’s look like there is a parameter missing but all was working before and I change nothing. Anyone have an idea?

Thanks
