BUG retrieve_conf failed, config not applied

Ramblin

Guru
Joined
Oct 28, 2010
Messages
138
Reaction score
9
I have just installed IncrediblePBX Lean on a CentOS 6.7 (minimal) base using the instructions at
http://nerdvittles.com/?p=14208
with the installer file
incrediblepbx13-12L.2-centos
uploaded on 2016-02-09

The installation went well and I rebooted the server.

When I went to the admin GUI panel, I am showing an error
retrieve_conf failed, config not applied

and when I try to save an extension,I get an error
exit: 255
PHP Fatal error: Call to undefined function posix_getpwnam() in /var/www/html/admin/libraries/BMO/GPG.class.php on line 583

Any ideas what I need to do to remove the error?

Ramblin
 

Ramblin

Guru
Joined
Oct 28, 2010
Messages
138
Reaction score
9
I compared the two installer files uploaded on 2016-02-09
Lean: incrediblepbx13-12L.2-centos
Full: incrediblepbx13-12.2-centos

In the Full installer, the following code was present starting on line 1081:

# remove module signature checking
cd /root
wget http://incrediblepbx.com/GPG-patch.tar.gz
tar zxvf GPG-patch.tar.gz
rm -f GPG-patch.tar.gz
./GPG-patch

In the Lean installer there was no such code

I manually ran the code from the CLI on my installation (installed with the Lean installer) and got the following response

[root@incredpbx4bu ~]# ./GPG-patch
--2016-02-15 11:36:36-- http://incrediblepbx.com/GPG74.class.tar.gz
Resolving incrediblepbx.com... 107.158.44.25
Connecting to incrediblepbx.com|107.158.44.25|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9091 (8.9K) [application/x-gzip]
Saving to: âGPG74.class.tar.gzâ

100%[==========================================================>] 9,091 --.-K/s in 0.01s

2016-02-15 11:36:36 (621 KB/s) - âGPG74.class.tar.gzâ

libraries/BMO/GPG.class.php
modules/configedit/module.sig
modules/sysinfo/module.sig
modules/phpmyadmin/module.sig
modules/phpagiconf/module.sig
modules/incrediblepbx/module.sig
modules/lenny/module.sig

Please wait...

PHP Fatal error: Call to undefined function posix_getpwuid() in /var/lib/asterisk/bin/gen_amp_conf.php on line 6
Error(s) have occured, the following is the retrieve_conf output:
exit: 255
PHP Fatal error: Call to undefined function posix_getpwnam() in /var/www/html/admin/libraries/BMO/GPG.class.php on line 583

Please wait...

PHP Fatal error: Call to undefined function posix_getpwuid() in /var/lib/asterisk/bin/gen_amp_conf.php on line 6

STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully...

Asterisk Stopped

SETTING FILE PERMISSIONS.................Done
Removing any dangling symlinks
Dangling symlinks removed

STARTING ASTERISK
Asterisk Started



I rebooted the server

When I went to the GUI, the error message
retrieve_conf failed, config not applied
was still there

BTW, when I did a compare on the two installer scripts (Lean and Full) here were other things in the Full but NOT in the Lean that did not appear to be related to the additional applications, but I was not sure.

I do not want Google Voice or some of the other applications on my server but I do want the Lean (basic PBX) to be fully functional. Is there code from the full installer I should be running after the Lean installer?
 
Last edited:

Ramblin

Guru
Joined
Oct 28, 2010
Messages
138
Reaction score
9
I am not getting email updates to this thread - I did check the Options to watch this thread and receive email notifications - so perhaps others are not either.
(I have javascript disabled and have to manually enable for each site so maybe that is my issue with notifications)

At any rate, @wardmundy does anyone have any ideas what I do now re the original bug reported above?

I did manually run the recommended script and reboot my server but it did not change anything.

Any other ideas?

I did find a posting at
http://www.sheepguardingllama.com/2011/03/php-fatal-error-call-to-undefined-function-posix_getpwuid/

which said to either:

1 Disable the following lines of /var/lib/asterisk/bin/gen_amp_conf.php

// $current_user = posix_getpwuid(posix_geteuid());
// if ($current_user[‘uid’] !== 0) {
// die(‘Forbidden – must be root’);
// }

2) install posix with
yum -y install php-posix


Do you recommend either?

R
 
Last edited:

Members online

Forum statistics

Threads
25,838
Messages
167,925
Members
19,260
Latest member
lucky
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