(Process Workflow Tasks) failed in CRON run

I’m getting this error (Process Workflow Tasks) failed in CRON run, I have no data in audit log. How to fix this issue

*/2 * * * * php -f cron.php > /dev/null 2>&1

Thanks

Hi,

What line did you enter into your Cron tab file?
You can find the correct line by going into Admin > Schedulers.
The line will be at the bottom of the page in bold text. I have attached a screenshot of an example of one, keep in mind that yours may look different, but it will be in the same place.
Copy this bold line and paste it into your Cron tab file.

Crontab - l

*/2 * * * * cd /var/www/html/crm; php -f cron.php > /dev/null 2>&1

in Schedulers :

          • cd /var/www/html/crm; php -f cron.php > /dev/null 2>&1

additional logs in suitecrm log

Mon Oct 12 18:23:02 2015 [15788][-none-][FATAL] Configuration variable date.timezone is not set, guessed timezone Asia/Colombo. Please set date.timezone=“Asia/Colombo” in php.ini!
Mon Oct 12 18:23:02 2015 [15788][1][FATAL] Job d159c1c1-6c72-cf59-cf51-561bace6e08b (Run Report Generation Scheduled Tasks) failed in CRON run
Mon Oct 12 18:23:02 2015 [15788][1][FATAL] Job de208631-c6e5-5362-15a8-561bac4bb2c0 (Run Report Generation Scheduled Tasks) failed in CRON run
Mon Oct 12 18:23:02 2015 [15787][1][FATAL] Job d8a52033-bced-c0a0-67a1-561bac5329da (Run Report Generation Scheduled Tasks) failed in CRON run
Mon Oct 12 18:23:02 2015 [15788][1][FATAL] Job 606d35ef-5397-5ba7-99dd-561bade9a20e (Process Workflow Tasks) failed in CRON run
Mon Oct 12 18:23:02 2015 [15787][1][FATAL] Job 641bb92c-e86f-4bc9-2007-561badae97cc (Process Workflow Tasks) failed in CRON run

Hi,
To clarify, you want your Cron to run every 2 minutes, right?

Are there any Schedulers Jobs that are stuck at “Running” ? If so, they may have gotten stuck and caused some issues.
Also, Who is the host of your Instance? Or is it self-hosted?

It may also be worth re-checking your permissions are correct on your instance. We usually recommend:
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload config_override.php

and in config.php, look for the default_permissions array.
What values do you have set for dir_mode, file_mode, user and group?

Self hosted and i did change the permissions.

array (
‘dir_mode’ => 1528,
‘file_mode’ => 432,
‘user’ => ‘’,
‘group’ => ‘’,
),

To clarify, you want your Cron to run every 2 minutes, right?
Are there any Schedulers Jobs that are stuck at “Running” ?
Does the “Process Workflow Tassk” scheduler have a “Last Successful Run” date? Or is it never?

Also,

The best settings may differ depending on your system/instance but the following is a commonly recommended setting:
array (
‘dir_mode’ => 1517,
‘file_mode’ => 420,

‘User’ and ‘group’ could be different depending on your server setup but a safe bet would be ‘www-data’ or ‘apache’

To clarify, you want your Cron to run every 2 minutes, right? — yes , bt currently running at 1 min
Are there any Schedulers Jobs that are stuck at “Running” ? — No idea , how to check that
Does the “Process Workflow Tassk” scheduler have a “Last Successful Run” date? Or is it never? — its running

Process Workflow Tasks done 10/12/2015 07:00pm 10/12/2015 07:00pm
Process Workflow Tasks done 10/12/2015 06:59pm 10/12/2015 06:59pm
Process Workflow Tasks done 10/12/2015 06:58pm 10/12/2015 06:58pm

settings updated.

Hi,

Could you post a screenshot of your “Process Workflow Tasks” scheduler? It sounds like it is running fine despite the Error message.

You also mentioned that: “I have no data in audit log.”
By this, do you mean the “Job Log” on the “Process Workflow Tasks” or the “Process Audit” on a Workflow record?

“Job Log” on the "Process Workflow Tasks :

No Audit Log in “Process Audit” on a Workflow record … below are old data not today’s run

Hey rxrider,
Sorry, I meant a screenshot of just the top-half of the “Process Workflow Tasks” scheduler, so I can see if there are any noticeable issues.

However, has your issue been resolved? Or if it is another issue you want resolved, could you please specify it?
From the information so far, it looks like the Cron job and Scheduler are running fine.

No errors .

Still there is error in log

Mon Oct 12 19:37:02 2015 [18421][-none-][FATAL] Configuration variable date.timezone is not set, guessed timezone Asia/Colombo. Please set date.timezone=“Asia/Colombo” in php.ini!
Mon Oct 12 19:37:03 2015 [18420][1][FATAL] Job a060710e-6e0a-cb5f-a06b-561bbe625e5a (Process Workflow Tasks) failed in CRON run
Mon Oct 12 19:37:03 2015 [18421][1][FATAL] Job a861b372-6535-dff8-ccfd-561bbea01d58 (Process Workflow Tasks) failed in CRON run

Just wonder, have you set the time zone correctly?

Arise dead thread!

Sorry for the necro post but this seems unfinished. Was there a resolution to your problem? My log and system files look very similar. I am getting that fatal error, and have tried all suggestions I could find to no avail.

If you are still getting the errors and live with them, cool, I have for a while now myself. If not, what fixed it for you?

Thanks in advance for your attention.

I would also pay attention to the timezone fatal error, if you have that on your system. That’s fatal, so it’s enough to break any cron job. Easy to fix, also, just edit your php.ini.

Time zone is good. The only error I am getting is the failed cron, but workflow seems to be running.

Thanks, for the response, though.

Then my suggestion is to start your own thread, tell us your versions of OS, Database, Web Server and PHP, and what you specifically have in your logs. Then we can work from there.