-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 16.0.6
-
Fix Version/s: 16.0.6.4
-
Component/s: System Admin (Commercial)
-
Labels:None
-
ToDo:
-
Distro Version:16.0.10.40
-
Distro:FreePBX Distro
-
Module Fix Version:
After updating to the FreePBX 16 between 00:02 and 00:10 I get two emails of errors that occur in the system:
This is the first error that occurs:
Message Subject: Cron <asterisk@pbx> [ -x /var/lib/asterisk/agi-bin/ddns_client.php ] && /var/lib/asterisk/agi-bin/ddns_client.php
Message content: sh: ifconfig: command not found
This is the second error that occurs:
Message Subject: Cron <asterisk@pbx> [ -e /usr/local/sbin/fwconsole ] && sleep $((RANDOM%30)) && /usr/local/sbin/fwconsole job --run --quiet 2>&1 > /dev/null
Message content: sh: ifconfig: command not found
# locate ddns_client.php
/var/lib/asterisk/agi-bin/ddns_client.php
/var/www/html/admin/modules/sysadmin/agi-bin/ddns_client.php
The two files are identical, md5sum generates the same md5.
# /usr/local/sbin/fwconsole job --list
+----+----------------+---------------+--------------+---------------------+----------------------------------------------------------------------------------------------------------------------------------------+------------+
| ID | Module | Job | Cron | Next Run | Action | Habilitado |
+----+----------------+---------------+--------------+---------------------+----------------------------------------------------------------------------------------------------------------------------------------+------------+
| 1 | calendar | sync | * * * * * | 2021-10-27 21:47:00 | Class: FreePBX\modules\Calendar\Job | Yes |
| 4 | dashboard | scheduler | * * * * * | 2021-10-27 21:47:00 | Class: FreePBX\modules\Dashboard\Job | Yes |
| 5 | sysadmin | checkportal | @daily | 2021-10-28 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 | 2021-10-28 00:00:00 | Class: FreePBX\modules\Sysadmin\Job\DdnsUpdate | Yes |
| 7 | sysadmin | checkstorage | @hourly | 2021-10-27 22:00:00 | Command: [ -x /var/lib/asterisk/bin/storage.php ] && /var/lib/asterisk/bin/storage.php | Yes |
| 9 | timeconditions | schedtc | * * * * * | 2021-10-27 21:47:00 | Class: FreePBX\modules\Timeconditions\Job | Yes |
| 10 | userman | syncall | */15 * * * * | 2021-10-27 22:00:00 | Class: FreePBX\modules\Userman\Job | Yes |
| 11 | pms | wu_alert | * * * * * | 2021-10-27 21:47:00 | Class: FreePBX\modules\Pms\Job | Yes |
| 13 | sysadmin | updatelicense | @daily | 2021-10-28 00:00:00 | Command: [ -x /var/lib/asterisk/agi-bin/update_license.php ] && /var/lib/asterisk/agi-bin/update_license.php --delay | Yes |
| 14 | sysadmin | checkcert | */1 * * * * | 2021-10-27 21:47:00 | Class: FreePBX\modules\Sysadmin\Job\CheckCert | Yes |
+----+----------------+---------------+--------------+---------------------+----------------------------------------------------------------------------------------------------------------------------------------+------------+
Locate ifconfig:
# locate ifconfig
/usr/sbin/ifconfig
SO Version:
# cat /etc/os-release
NAME="Sangoma Linux"
VERSION="7 (Core)"
ID="sangoma"
ID_LIKE="centos rhel fedora"
VERSION_ID="7"
PRETTY_NAME="Sangoma Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:sangoma:sng:7::server:utf8"
HOME_URL="https://distro.sangoma.net/"
BUG_REPORT_URL="https://issues.sangoma.net/"
CENTOS_MANTISBT_PROJECT="Sangoma-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="sangoma"
REDHAT_SUPPORT_PRODUCT_VERSION="7"