After the latest round of updates to the GUI, it seems something is wonky with the asterisk crontab entry. It’s now sending me an email every minute with the following (identifying info removed):
From: "(Cron Daemon)" <asterisk@XXX>
To: asterisk@XXX
Subject: Cron <asterisk@uc-80353323> [ -e /usr/sbin/fwconsole ] && sleep $(( ( RANDOM
/bin/sh: -c: line 0: unexpected EOF while looking for matching `)'
/bin/sh: -c: line 1: syntax error: unexpected end of file
I have looked at the crontab for asterisk and it appears to be this line:
* * * * * [ -e /usr/sbin/fwconsole ] && sleep $(( ( RANDOM % 30 ) + 1 )) && /usr/sbin/fwconsole job --run --quiet 2>&1 > /dev/null
It looks good from what I can see, you can run it manually and it’s happy, but I removed the RANDOM delay call and then all seemed fine.
Seems simple enough, but apparently making any change in the GUI results in it re-writing the cron entry and it puts it all back.
This is a current PBXact server, and I would say roll back the update, but this last batch was a huge round up updates, so not sure what th is would even be related too.
If any one has any ideas it would be a great help, and if not I guess it’s time to burn some support credits as getting thousands of failure messages a day is not a lot of fun…