ALL Schedulers "Forced failure on timeout" after 8.0.1 upgrade

I upgraded from Sugar PRO 7.9.4 to Sugar PRO 8.0.1 and ALL schedulers fail with message "Forced failure on timeout".

I also get:

/bin/sh: line 1: 21425 Segmentation fault      /usr/bin/php -f cron.php > /dev/null 2>> logs/Cron/cron.raw.err

there are no errors in PHP or Cron log

Scheduler Configs look correct to me:

 

  'cron' =>

  array (

    'max_cron_jobs' => 25,

    'max_cron_runtime' => 1800,

    'min_cron_interval' => 30,

    'enforce_runtime' => false,

  ),

 

  'jobs' =>

  array (

    'min_retry_interval' => 30,

    'max_retries' => 5,

    'timeout' => 3600,

  ),

 

Crontab is set up as follows:

* 0-20 * * 6 cd /var/www/html/sugarcrm; /usr/bin/php -f cron.php >/dev/null 2>>logs/Cron/cron.raw.err

* * * * 0-5  cd /var/www/html/sugarcrm;  /usr/bin/php -f cron.php >/dev/null 2>>logs/Cron/cron.raw.err

 

Permissions from root down have been set to apache owner/group, 755 for all dirs and 664 for all files, as follows:

sudo chown -R  apache:apache *

sudo find . -type d -exec chmod 775 {} \;

sudo find . -type f -exec chmod 664 {} \;

 

Any thoughts on where to start to debug?

thanks,
FrancescaS

  • Did you get any solution for this issue

    Regards,

    Omair Nalkhande

  • This is probably because there were still jobs left in "Running" state after the upgrade.

    Try clearing the  job status in your job_queue table with status = done and see if that fixes the issue. 

  • Thank you for your response.

    I cleared the job_queue table and tested this. Other schedulers are working OK. "Inbound Mailbox" scheduler remains in running stage for an hour and then fails with the message "Forced failure on timeout"

    No Fatal or error logs present.

    Email sent on the mailbox during that 1hours time gets sycned in CRM.

    Regards,

    Omair Nalkhande

  • Something is going wrong with the Inbound Mailbox scheduled job, it definitely shouldn't run for an hour. Maybe try enabling warn/debug logs and trace out what's happening? Also check the php error logs, usually those logs are absent in sugarcrm.log.