We have an HA cluster which works well.
One problem I have is that the cron jobs on the standby node still try to run but because the file systems are not mounted on that node they just error and send an email.
Cron Daemon [email protected]
Cron [email protected] /var/lib/asterisk/bin/schedtc.php
/bin/sh: /var/lib/asterisk/bin/schedtc.php: No such file or directory
Is this the expected behaviour, I suspect it is?
If so perhaps it’s worth putting in a simple local script on each node for each crontab entry that is run and that looks for the real script if its currently on the local node and runs it, otherwise it just silently returns without error? It might be a simple way of removing some of the emails the systems send.
The next major version (14) is slated to have cron jobs for HA reworked. But this is a bug in time conditions, most cron job are set to redirect output to
/dev/nul but the schedtc.php does not do this. Suggest you file a ticket at issues.freepbx.org.
we have the same issue.
and get emails every minute from the standby until crontab is edited.
Most cronjobs check for file existence then run.
@daily [ -x /var/lib/asterisk/agi-bin/update_license.php ] && /var/lib/asterisk/agi-bin/update_license.php --delay
some newer jobs do not adhere to the that method:
* * * * * /var/lib/asterisk/bin/schedtc.php
It would be nice to have this fixed before the next major release. I’ll check issues.freepbx.org and file a suggestion…
Beat you to it 8) - timeconditions 13.0.28
How can I ever catch up to you, you are timezones ahead .