Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Warning]: cron Task(s) exceed time threshold
#1
After I moved my installation to another server, system send this message many times, and when I go to Scheduler Manager in admin panel, Workflow shows Running, but task is marked as inactive

How I can solve that?
Ranieri
eCRM Web
Reply
#2
activate the workflow task and then deactivate it again
Joe
TSolucio
Reply
#3
I did this several times....

Sad
Ranieri
eCRM Web
Reply
#4
If you set it INACTIVE it should not go back in to Active nor Running (this is what I understood you wanted to do)
If you leave it active and it gets stuck on Running then it is because there is an error in one or more of your workflows and you have to debug which one it is and why
Joe
TSolucio
Reply
#5
PHP Fatal error: Uncaught Error: Call to a member function getFieldDataType() on null in /usr/share/coreBOS/corebos-master/modules/com_vtiger_workflow/VTWorkflowUtils.php:41
Stack trace:
#0 /usr/share/coreBOS/corebos-master/modules/com_vtiger_workflow/tasks/VTUpdateFieldsTask.inc(93): VTWorkflowUtils::fieldvaluebytype(Array, 'expression', 'sub_days(get_da...', 'cf_1118', Object(Activity), Object(VTWorkflowEntity), Object(VtigerCRMObjectMeta))
#1 /usr/share/coreBOS/corebos-master/cron/modules/com_vtiger_workflow/com_vtiger_workflow.service(83): VTUpdateFieldsTask->doTask(Object(VTWorkflowEntity))
#2 /usr/share/coreBOS/corebos-master/cron/modules/com_vtiger_workflow/com_vtiger_workflow.service(98): vtRunTaskJob(Object(PearDatabase))
#3 /usr/share/coreBOS/corebos-master/vtigercron.php(62): require_once('/usr/share/core...')
#4 {main}
thrown in /usr/share/coreBOS/corebos-master/modules/com_vtiger_workflow/VTWorkflowUtils.php on line 41
[root@acomip cron]#
Ranieri
eCRM Web
Reply
#6
I removed and recreate a workflow, sees works now ...
Ranieri
eCRM Web
Reply
#7
a similar situation is occurring now

in the apache log there are no messages

I activated the coreBOS debug but I don't see an error message

what message pattern should I look for? the literal "error" or "workflow?
Ranieri
eCRM Web
Reply
#8
I try

php -f /usr/share/coreBOS/corebos-master/build/HelperScripts/runwftask.php
Invalid task

how i can found what task is invalid?

On account save
----------------------

[Mon Feb 10 17:29:11 2020] [error] [client 192.168.0.188] File does not exist: /usr/share/coreBOS/corebos-master/themes/images/s.gif, referer: /index.php?action=index&module=cbCalendar

[Mon Feb 10 17:36:14 2020] [error] [client ::1] PHP Fatal error: Uncaught Error: Call to a member function getId() on string in /usr/share/coreBOS/corebos-master/modules/com_vtiger_workflow/VTWorkflow.php:245\nStack trace:\n#0 /usr/share/coreBOS/corebos-master/modules/com_vtiger_workflow/VTEventHandler.inc(96): Workflow->performTasks('12')\n#1 /usr/share/coreBOS/corebos-master/include/events/VTEventTrigger.inc(146): VTWorkflowEventHandler->handleEvent('vtiger.entity.a...', '12')\n#2 /usr/share/coreBOS/corebos-master/include/events/VTEventsManager.inc(114): VTEventTrigger->trigger(Object(VTEntityData))\n#3 /usr/share/coreBOS/corebos-master/data/CRMEntity.php(1185): VTEventsManager->triggerEvent('vtiger.entity.a...', Object(VTEntityData))\n#4 /usr/share/coreBOS/corebos-master/modules/Accounts/Accounts.php(108): CRMEntity->save('Accounts', '')\n#5 /usr/share/coreBOS/corebos-master/modules/Vtiger/Save.php(131): Accounts->save('Accounts')\n#6 /usr/share/coreBOS/corebos-master/modules/Accounts/Save.php(30): require_once('/usr/share/core...')\n#7 /usr/share/coreBOS/corebos-master/index.ph in /usr/share/coreBOS/corebos-master/modules/com_vtiger_workflow/VTWorkflow.php on line 245, referer: https://localhost:1234/index.php

[Mon Feb 10 17:36:14 2020] [error] [client ::1] File does not exist: /usr/share/coreBOS/corebos-master/favicon.ico, referer: https:index.php
Ranieri
eCRM Web
Reply
#9
runwftask.php needs you to set the task you want to execute, the one that is hardcoded there is invalid in your install
the same happens with evalwf.php which is much more interesting fro debugging
Joe
TSolucio
Reply
#10
favicon notification is not important as from within the application it is set correctly. If you want to eliminate it just copy the favicon.ico to the top of the install
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)