Daily maintenence

alt=
DannyA
@dannya
9 years ago
584 posts
I have noticed my daily maintenance has not been executing. There is nothing in the activity log confirming execution or failure. Nothing. How can I troubleshoot maintenance tasks.
updated by @dannya: 11/01/15 06:31:43PM
michael
@michael
9 years ago
7,715 posts
Daily maintenance fires off once per day, when the site is opened after the period has expired. So you can fire it by having cron open the webpage once per day.

The code for it is at the bottom of router.php which controls the routing system if you want to see whats happening.

/modules/jrCore/router.php

Its happening in the 'process_exit' event and the actual function is jrCore_process_exit_listener() found in /modules/jrCore/include.php

So as long as something happens during the day then maintenance should fire. If nothing at all is happening on your server and you want to force it, open the page with cron should do it.
alt=
DannyA
@dannya
9 years ago
584 posts
Is there any additional considerations when using the cloud cron server?
brian
@brian
9 years ago
10,148 posts
DannyA:
Is there any additional considerations when using the cloud cron server?

Not really - the Cron server just "pings" cloud connected servers that are not user facing. As long as you are pinging the server with Cloud Cron, daily maintenance will run. If it is not, check your error log. ALSO - daily maintenance messages come in as INF level messages - if you are centralizing your logging via the Log Server, make sure all your servers are sending INF level logs to the log server.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags