Several issues being encountered and the fact that itâs working very inconsistently is whatâs stumping me.
- Workflow actions are not occurring
- Change logs do not contain all data
First off, the overview:
The design relies heavily on automatic calculations so workflows flow into workflows multiple times. Some of this is due to lack of âORâ options on workflow triggers, and some is due to places where logic tests need to occur so multiple workflows happen, or multiple states flow into one other workflow.
There is also a scheduled workflow that is supposed to run against all records in a custom module once per day, and that is working just fine aside from the fact that it takes 17 cron runs to get through all the records.
Everything was working perfectly fine for a month, and then things started sometimes not working.
A workflow fires that updates âdate checkedâ to now() when a checkbox is checked and unchecks the checkbox. There is also a recalculation workflow that should fire when the âdate checkedâ changes to set an expiration date, but it is sometimes not firing when the first workflow makes the change. Two records changed within three minutes of each other. On one, the quick check workflow fired and changed the Date Checked value, and the recalc workflow did not fire. On the second, the recalc workflow did fire.
I set nearly all of the fields in the module to be Audited in order to try to diagnose the problem.
When workflows change multiple field values, only ONE field will be audited into the Change Log. Itâs always the same one on a given record, but not the same one on all records.
When a user changes multiple fields, sometimes more than one field will make it into the change log. Sometimes only one will be recorded. Sometimes none will be recorded. Never all of them (for example, the Quick Check checkbox is set to be audited and this never audits).
There are some records that audits never work on at all. There are no rows in the audit table for those records whatsoever, despite changes being made for example yesterday and the oldest rows in the audit table being May.
So a combination of inconsistent workflow triggering and pseudo-inconsistent auditing is making it so that the data is getting corrupted and users do not trust the system at all now.
This is running on ubuntu 20.04, shared hosting system VM.
MariaDB 10.3
PHP 8.1 (I need to see about downgrading this to 8.0 for proper compatibility.)
SuiteCRM v 7.12.5 (And I need to see about upgrading this to .6)
No errors in the instance logs other than the failed workflow scheduler sixteen times every night at midnight (because it canât complete everything).
No PHP/Apache errors associated with any of the issues.
If things were failing in a reliable manner, that would be one thing. The fact that they are failing differently each time leaves me with no good idea what the confounding factor is, and the audit/change log issue makes it much more difficult to diagnose.
Any insight on things to check or known issues would be appreciated.