FreePBX Version: 14.0.13.34
Today I made some standard GUI Applications changes, then clicked Submit, then clicked Apply Config, and I’m receiving the following error:
Reload failed because retrieve_conf encountered an error: 1
exit: 1
Unable to continue. Cron line added didn’t remain in crontab on final check. Check /tmp/cron.error for reason. in /var/www/html/admin/libraries/BMO/Cron.class.php on line 126
#0 /var/www/html/admin/libraries/BMO/Cron.class.php(203): FreePBX\Cron->addLine(’* * * * * [ -e …’)
#1 /var/www/html/admin/libraries/BMO/Job.class.php(246): FreePBX\Cron->add(’* * * * * [ -e …’)
#2 /var/www/html/admin/libraries/BMO/Job.class.php(91): FreePBX\Job->init()
#3 /var/www/html/admin/libraries/BMO/Job.class.php(73): FreePBX\Job->add(‘timeconditions’, ‘schedtc’, NULL, ‘FreePBX\modules…’, ‘* * * * ', 30, true, 100)
#4 /var/www/html/admin/modules/timeconditions/Timeconditions.class.php(168): FreePBX\Job->addClass(‘timeconditions’, ‘schedtc’, ‘FreePBX\modules…’, ’ * * * *’)
#5 /var/www/html/admin/modules/timeconditions/functions.inc.php(227): FreePBX\modules\Timeconditions->updateCron()
#6 /var/www/html/admin/libraries/BMO/DialplanHooks.class.php(95): timeconditions_get_config(‘asterisk’)
#7 /var/lib/asterisk/bin/retrieve_conf(860): FreePBX\DialplanHooks->processHooks(‘asterisk’, Array)
#8 {main}
1 error(s) occurred, you should view the notification log on the dashboard or main screen to check for more details.
It seemed to start (coincidentally or not) this afternoon about the time when I found out all our scheduled page groups were not playing. Manual tests confirmed the page groups worked, just not the schedules. I made some changes, clicked Submit then received the above error. It was all working last Friday 9/4/20.
I’ve attempted many things based on other posts including:
Checked the /tmp/cron.error file but the file is blank
fwconsole reload
fwconsole restart
Rebooting physical server
Renamed /var/spool/cron/asterisk the fwconsole reload then fwconsole restart to have it recreate the file
chown -R asterisk /var/spool/cron then Apply Config
chmod -R 777 /var/spool/cron then Apply Config
Downloaded the timeconditions module via command line to re-install (it upgraded it).
Many more reloads, restarts, reboots.
Still the same error
Commands outputs:
Contents of /var/spool/cron/asterisk on both this system and from a backup from about two weeks ago when it was all working:
[root@pbx ~]# crontab -e -u asterisk
@daily [ -e /var/www/html/admin/modules/sysadmin/bin/check_portal.php ] && /var/www/html/admin/modules/sysadmin/bin/check_portal.php
@daily [ -x /var/lib/asterisk/agi-bin/ddns_client.php ] && /var/lib/asterisk/agi-bin/ddns_client.php
@daily /usr/sbin/fwconsole pms mk_dirty > /dev/null 2>&1
-
-
-
-
- /usr/sbin/fwconsole pms wu_alert > /dev/null 2>&1
*/15 * * * * [ -e /etc/asterisk/firewall.enabled ] && touch /var/spool/asterisk/incron/firewall.firewall
@daily [ -x /var/lib/asterisk/bin/freepbx_sipstation_check ] && /var/lib/asterisk/bin/freepbx_sipstation_check 2>&1 > /dev/null
0 0 25 12 * /usr/sbin/fwconsole pagingpro --calendarpage 702 -t 1545714000 2>&1 >/dev/null
0 0 25 12 * /usr/sbin/fwconsole pagingpro --calendarpage 612 -t 1545714000 2>&1 >/dev/null
@daily [ -e /var/www/html/admin/modules/sysadmin/bin/check_portal.php ] && /var/www/html/admin/modules/sysadmin/bin/check_portal.php >/dev/null 2>&1
@monthly ID=freepbx_backup_1 /var/lib/asterisk/bin/backup.php --id=1 >/dev/null 2>&1
1 1 1,2,3,4,5,6,7,15,16,17,18,19,20,21,29,30,31 * * ID=freepbx_backup_2 /var/lib/asterisk/bin/backup.php --id=2 >/dev/null 2>&1
1 2 8,9,10,11,12,13,14,22,23,24,25,26,27,28 * * ID=freepbx_backup_3 /var/lib/asterisk/bin/backup.php --id=3 >/dev/null 2>&1
@hourly [ -x /var/lib/asterisk/bin/storage.php ] && /var/lib/asterisk/bin/storage.php >/dev/null 2>&1
- /usr/sbin/fwconsole pms wu_alert > /dev/null 2>&1
-
-
-
-
-
-
-
- /usr/sbin/fwconsole queuestats --syncall >> /tmp/reader.log 2>&1
28 0 * * * /usr/sbin/fwconsole certificates --updateall -q 2>&1 >/dev/null
0 1 * * * /var/www/html/admin/modules/iotserver/bin/check_license.php
0 2 * * * /var/www/html/admin/modules/iotserver/bin/check_certificates.php
0 4 * * * /var/www/html/admin/modules/iotserver/bin/refresh_tzoffsets.php
59 23 * * 0 /var/lib/asterisk/bin/queue_reset_stats.php --id=1320
- /usr/sbin/fwconsole queuestats --syncall >> /tmp/reader.log 2>&1
-
-
-
- 4 * * * /usr/sbin/fwconsole util cleanplaybackcache -q
15 22 * * 5 [ -e /usr/sbin/fwconsole ] && /usr/sbin/fwconsole ma listonline --sendemail -q > /dev/null 2>&1
15 23 * * 5 [ -e /usr/sbin/fwconsole ] && /usr/sbin/fwconsole sys upgradeall --sendemail -q > /dev/null 2>&1
15 0 * * 6 [ -e /usr/sbin/fwconsole ] && /usr/sbin/fwconsole ma upgradeall --sendemail -q > /dev/null 2>&1 -
-
-
-
- [ -e /usr/sbin/fwconsole ] && sleep $((RANDOM%30)) && /usr/sbin/fwconsole job --run --quiet 2>&1 > /dev/null
-
-
-
[root@pbx ~]# fwconsole job --list
±—±-----------------±--------------±-------------±--------------------±---------------------------------------------------------------------------------------------------------------------------------------±--------+
| ID | Module | Job | Cron | Next Run | Action | Enabled |
±—±-----------------±--------------±-------------±--------------------±---------------------------------------------------------------------------------------------------------------------------------------±--------+
| 12 | pagingpro | scheduler | * * * * * | 2020-09-08 23:08:00 | Class: FreePBX\modules\Pagingpro\Job | Yes |
| 1 | calendar | sync | * * * * * | 2020-09-08 23:08:00 | Class: FreePBX\modules\Calendar\Job | Yes |
| 2 | qxact_reports | sync | */5 * * * * | 2020-09-08 23:10:00 | Command: /usr/sbin/fwconsole qxactreports --sync -q 2>&1 > /dev/null | Yes |
| 3 | recording_report | clean | 30 22 * * * | 2020-09-09 22:30:00 | Command: /usr/sbin/fwconsole recordingreports -s -c | Yes |
| 4 | recording_report | backup | 0 0 1 * * | 2020-10-01 00:00:00 | Command: php /var/lib/asterisk/agi-bin/backuprecordings.php | Yes |
| 5 | sysadmin | checkportal | @daily | 2020-09-09 00:00:00 | Command: [ -e /var/www/html/admin/modules/sysadmin/bin/check_portal.php ] && /var/www/html/admin/modules/sysadmin/bin/check_portal.php | Yes |
| 6 | sysadmin | ddnsupdate | @daily | 2020-09-09 00:00:00 | Class: FreePBX\modules\Sysadmin\Job\DdnsUpdate | Yes |
| 7 | sysadmin | checkstorage | @hourly | 2020-09-09 00:00:00 | Command: [ -x /var/lib/asterisk/bin/storage.php ] && /var/lib/asterisk/bin/storage.php | Yes |
| 8 | timeconditions | schedtc | * * * * * | 2020-09-08 23:08:00 | Class: FreePBX\modules\Timeconditions\Job | Yes |
| 9 | userman | syncall | */15 * * * * | 2020-09-08 23:15:00 | Class: FreePBX\modules\Userman\Job | Yes |
| 10 | sysadmin | updatelicense | @daily | 2020-09-09 00:00:00 | Command: [ -x /var/lib/asterisk/agi-bin/update_license.php ] && /var/lib/asterisk/agi-bin/update_license.php --delay | Yes |
| 11 | dashboard | scheduler | * * * * * | 2020-09-08 23:08:00 | Class: FreePBX\modules\Dashboard\Job | Yes |
| 13 | pms | wu_alert | * * * * * | 2020-09-08 23:08:00 | Class: FreePBX\modules\Pms\Job | No |
±—±-----------------±--------------±-------------±--------------------±---------------------------------------------------------------------------------------------------------------------------------------±--------+
I don’t see any errors or corruption in the /var/spool/cron/asterisk file but maybe I’m missing it so am now at a loss what to do next. Please advise. See any errors or corruption? Thoughts? Suggestions?
Thanks!
Patrick