I have an Alfresco installation where i use rules in order to fire workflows when user loads document in a specific folder.
The system has been in exercise for about two months, having about 20 concurrent users every day. Now there are about 20000 documents.
What is happen now is that occasionally rules don't fire when user upload a document; "occasionally" means that doessn't depend on which document is loaded or in what folder, and neither what rule is associated to a folder.
In order to debug it I've created a folder having a simple rule that converts a document in pdf, this way i can stress-test it loading many documents at a time in that folder expecting to two-folde the number, for example i load five file .doc and i wait to see in the folder five .doc and five .pdf.
what happens is that sometimes i have four .pdf, sometimes two, sometimes none. I have also added another rule executing a log script and what i see is that neither this rule is triggered.
If i upload my files in another folder (having no rules) and then a move those in the "ruled" folder rules are always triggered.
It seems that sometimes Alfresco doesn't catch the upload event.
When i restart Alfresco rules start working again for a period that i think depends on the workload of the system.
This happens only in production, in development and test environment has never happened.
What could be the cause of this behaviour?
Thanks
Alfresco Community 6.0.7
Ubuntu 18.04.2
Those 20,000 documents are stored on the same folder? On the folder where the rule is defined?
What is doing that rule?
Thanks angelborroy,
20000 are about all the documents stored in the system, not only in a folder, moreover the fault doesn't depend on the folder or on a specific rule, I also tried creating a simple rule that just call a script that logs the name of the document uploaded; what happens is that sometimes the rule doesn't trigger when i upload a file via Share or webdav, regardless of the document type or extension or size, while if I upload the file in another folder with no rules, and then move the document in the "ruled" folder using Share, rules always trigger. I don't know if there is a way to log the upload event; it seems that sometimes the upload event is not catched.
What i've noticed enabling specific logs is that when rule doesn't work o.a.r.r.ruletrigger.CreateNodeRuleTrigger doesn't log anything.
This fault has become very important to solve because the whole project is based on alfresco rules.
Do you have any idea for debug it?
Is there any updates for this?
Hi there,
I'm facing similar issue here on my dev environment where some rule doesn't get fired even the condition matches.
I would like to debug but I"m not sure how to debug.
I've tried searching for "rule" in log4j config of OOTB tool without luck.
Do you have any idea?
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.