SOLVED Incredible PBX 3.11.12 for Raspberry Pi B "Reset failed"

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!
 

Trimline2

Guru
Joined
May 23, 2013
Messages
524
Reaction score
96
I had the same thing just happen on a new install on Centos - reseet failed (Incredible PBX).

I located something similar issue in this thread: http://pbxinaflash.com/community/index.php?threads/configedit-bug-fix.85/

And only performed the following extracted steps:
Code:
nano -w /var/www/html/maint/configedit/cls_phpconfig.php
Scroll down to line 29 and make it look like this:
Code:
var $_OC_reset_cmd = "asterisk -rx reload";
Save your change: Ctrl-X, Y, then press Enter. - Added - do an amportal restart.

See if that fixes your issue.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
cls_phpconfig.php patch has been pushed out to all. Thanks!
 

Members online

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top