Home_Automation
New Member
- Joined
- Jan 13, 2015
- Messages
- 1
- Reaction score
- 0
Any thoughts on how the following can be resolved?
It appears there may be a problem with Incredible PBX 3.11.12 for Raspberry Pi B (Ast 11.11.0 FreePBX 2.11.0.30). When Re-Read Configs is selected within Config Edit it responds with "Reset failed.". When monitoring via the CLI the reload does not take place. I must manually execute asterisk -rx reload after making config file changes.
I've rebuilt the Pi from scratch several times to be sure it was not caused by something I did. The Reset Failed condition remained after each.
I found an old (but related) forum post that stated both phpconfig_init.php and cls_phpconfig.php should have $reset_cmd = "asterisk -rx reload"; and not $reset_cmd = "/bin/asterisk.reload"; within.
http://pbxinaflash.com/community/index.php?threads/configedit-bug-fix.85/#post-284
While the phpconfig_init.php file matched the recommended setting I found line 29 of cls_phpconfig.php had var $_OC_reset_cmd = "/bin/asterisk.reload"; instead of var $_OC_reset_cmd = "asterisk -rx reload";. I've since changed that line to reflect var $_OC_reset_cmd = "asterisk -rx reload"; but the problem remains. I've performed all the usual post change tasks including a full reboot. The Reset failed message is received regardless of which reload setting exists within cls_phpconfig.php.
Based on the Apache error.log (below) it appears an undefined variable and index may be involved with this condition. I've reviewed the files and associated lines referenced but couldn't sort out what might need to be changed.
On my system, the link associated with the Re-Read Configs selection performs the following.
http://192.168.1.75/maint/configedit/phpconfig.php?reset=reset
The Apache access.log file shows
192.168.1.4 - - [13/Jan/2015:07:40:00 -0500] "GET /maint/configedit/phpconfig.php HTTP/1.1" 200 3050 "http://192.168.1.75/admin/config.php?display=configedit" "Mozilla/5.0 (Windows NT 5.1; rv:34.0) Gecko/20100101 Firefox/34.0"
192.168.1.4 - - [13/Jan/2015:07:40:04 -0500] "GET /maint/configedit/phpconfig.php?reset=reset HTTP/1.1" 200 1476 "http://192.168.1.75/maint/configedit/phpconfig.php" "Mozilla/5.0 (Windows NT 5.1; rv:34.0) Gecko/20100101 Firefox/34.0"
The Apache error.log shows
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/cls_phpconfig.php on line 100, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/cls_phpconfig.php on line 100, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/cls_phpconfig.php on line 100, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/cls_phpconfig.php on line 100, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined index: file in /var/www/html/maint/configedit/phpconfig.php on line 66, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined index: reset in /var/www/html/maint/configedit/phpconfig.php on line 144, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/phpconfig.php on line 186, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/phpconfig.php on line 186, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/phpconfig.php on line 186, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/phpconfig.php on line 186, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/phpconfig.php on line 186, referer: http://192.168.1.75/admin/config.php?display=configedit
Any thoughts?
Thanks!
It appears there may be a problem with Incredible PBX 3.11.12 for Raspberry Pi B (Ast 11.11.0 FreePBX 2.11.0.30). When Re-Read Configs is selected within Config Edit it responds with "Reset failed.". When monitoring via the CLI the reload does not take place. I must manually execute asterisk -rx reload after making config file changes.
I've rebuilt the Pi from scratch several times to be sure it was not caused by something I did. The Reset Failed condition remained after each.
I found an old (but related) forum post that stated both phpconfig_init.php and cls_phpconfig.php should have $reset_cmd = "asterisk -rx reload"; and not $reset_cmd = "/bin/asterisk.reload"; within.
http://pbxinaflash.com/community/index.php?threads/configedit-bug-fix.85/#post-284
While the phpconfig_init.php file matched the recommended setting I found line 29 of cls_phpconfig.php had var $_OC_reset_cmd = "/bin/asterisk.reload"; instead of var $_OC_reset_cmd = "asterisk -rx reload";. I've since changed that line to reflect var $_OC_reset_cmd = "asterisk -rx reload"; but the problem remains. I've performed all the usual post change tasks including a full reboot. The Reset failed message is received regardless of which reload setting exists within cls_phpconfig.php.
Based on the Apache error.log (below) it appears an undefined variable and index may be involved with this condition. I've reviewed the files and associated lines referenced but couldn't sort out what might need to be changed.
On my system, the link associated with the Re-Read Configs selection performs the following.
http://192.168.1.75/maint/configedit/phpconfig.php?reset=reset
The Apache access.log file shows
192.168.1.4 - - [13/Jan/2015:07:40:00 -0500] "GET /maint/configedit/phpconfig.php HTTP/1.1" 200 3050 "http://192.168.1.75/admin/config.php?display=configedit" "Mozilla/5.0 (Windows NT 5.1; rv:34.0) Gecko/20100101 Firefox/34.0"
192.168.1.4 - - [13/Jan/2015:07:40:04 -0500] "GET /maint/configedit/phpconfig.php?reset=reset HTTP/1.1" 200 1476 "http://192.168.1.75/maint/configedit/phpconfig.php" "Mozilla/5.0 (Windows NT 5.1; rv:34.0) Gecko/20100101 Firefox/34.0"
The Apache error.log shows
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/cls_phpconfig.php on line 100, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/cls_phpconfig.php on line 100, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/cls_phpconfig.php on line 100, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/cls_phpconfig.php on line 100, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined index: file in /var/www/html/maint/configedit/phpconfig.php on line 66, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined index: reset in /var/www/html/maint/configedit/phpconfig.php on line 144, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/phpconfig.php on line 186, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/phpconfig.php on line 186, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/phpconfig.php on line 186, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/phpconfig.php on line 186, referer: http://192.168.1.75/admin/config.php?display=configedit
[Tue Jan 13 07:40:00 2015] [error] [client 192.168.1.4] PHP Notice: Undefined variable: PHP_SELF in /var/www/html/maint/configedit/phpconfig.php on line 186, referer: http://192.168.1.75/admin/config.php?display=configedit
Any thoughts?
Thanks!