09-29-2019 09:24 AM
Hello,
I am trying to set up ActivitiesFeed. Firstly, I run into an error connected with bad email template (Alfresco bug, I fixed it by editing an activities-email.ftl). Since then, nothing in logs appeared but I also didn't receive any emails..
Email is configured correctly (I get test-emails on system start and user-joined-site emails), so why Alfresco's cron is not working?
On alfresco start, ActivitiesFeed is starting successfully.
2019-09-29 09:15:20,228 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [main] Starting 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default] 2019-09-29 09:15:20,700 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [main] Startup of 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default] complete
These are my settings in alfresco-global.properties:
activities.feed.notifier.repeatIntervalMins=1440 activities.feed.notifier.enabled=true activities.feed.max.size=100 activities.feed.max.ageMins=44640 subscriptions.enabled=true activities.feed.notifier.cronExpression=0 30 8 * * ?
It should send emails every day at 8:30 (today, on Sunday also, am I right?) but it does not.
What can be wrong?
Should I restart the machine?
Should I add activities.feed.notifier.startDelayMins=${system.cronJob.startDelayMinutes} or any other property?
10-01-2019 01:44 AM
Any errors in activities-email.ftl brake notifier process. So first of all revert version of activities-email.ftl to 1.0.
Second remove all additional notifier properties exept crone.
activities.feed.notifier.cronExpression=0 30 8 * * ?
To aply any alfresco-global.properties changers Alfresco repo should be restarted.
Make some activities in Share and run manualy feedNotifierTrigger.
Does it works now?
To discover solution deeper set Log4J seting of o.a.r.a.feed.FeedNotifier to TRACE.
09-30-2019 12:27 PM
There seems to be some confusion over configurations of activiti feeds.
Checkout following post. It looks like you need to add activities.feed.notifier.startDelayMins=${system.cronJob.startDelayMinutes}
https://hub.alfresco.com/t5/ecm-archive/activities-feed-notifier/m-p/69281
09-30-2019 07:05 PM
Well, I also tried with this option but with no results 😕
10-01-2019 01:44 AM
Any errors in activities-email.ftl brake notifier process. So first of all revert version of activities-email.ftl to 1.0.
Second remove all additional notifier properties exept crone.
activities.feed.notifier.cronExpression=0 30 8 * * ?
To aply any alfresco-global.properties changers Alfresco repo should be restarted.
Make some activities in Share and run manualy feedNotifierTrigger.
Does it works now?
To discover solution deeper set Log4J seting of o.a.r.a.feed.FeedNotifier to TRACE.
10-01-2019 05:32 AM
I edited the activities-email.ftl (reverted it back to the up-to-date 1.0 version from github) and IT IS WORKING!! Thank you very much for the clue!
There were no logs, no errors, it was almost impossible to find out what's going on.
Anyway, for the next time, how can I manually run feedNotifierTrigger ? And which log4j.properties should I edit, in the Alfresco or Share webapps? (there is no such a setting as o.a.r.a.feed.FeedNotifier preconfigured in any of them)
10-01-2019 12:31 PM
Pay attention to very usefull tools OOTBee Support Tools
It makes posible run trigers, change log settings on the fly and many more without writing scripts or use api.
Explore our Alfresco products with the links below. Use labels to filter content by product module.