FreePBX 14 Install Errors

Hey folks,

I’ve been banging my head for a while here and I typically figure things out, been doing these installs for over a decade (doesn’t make me an expert, just been following directives of smarter folks for that long)

I’m running CentOS 7, Asterisk 16.16.0 & FreePBX 14

I’ve done the prerequisite setup as per wiki, and all the packages, dependencies and software installed without a hitch, Asterisk compiled with no issues.

Asterisk started with ./start_asterisk all good.

It’s when I go to install FreePBX that the issues occur:

./install -n
Assuming you are Database Root
Checking if SELinux is enabled…Its not (good)!
Reading /etc/asterisk/asterisk.conf…Done
Checking if Asterisk is running and we can talk to it as the ‘asterisk’ user…Error!
Error communicating with Asterisk. Ensure that Asterisk is properly installed and running as the asterisk user
Asterisk appears to be running as asterisk
Try starting Asterisk with the ‘./start_asterisk start’ command in this directory

Asterisk is running with the correct ownership

root 30844 0.0 0.0 113420 988 ? S 20:28 0:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk

Any ideas, I’ve been digging but haven’t yet found a fix.

Thanks in advance for your help and all of you that have bravely been manning this forum for many years!

Why don’t you just install the distro and make you’re life a whole lot easier?

Is there an AWS ami?

https://aws.amazon.com/marketplace/pp/TheWebMachine-Networks-AWS-FreePBX-64bit-1278-2008/B00VMYY5UY

Thanks dicko, I may go that route but would be nice to give this problem a fair go in terms of resolving it before going to that extent. Don’t want to throw in the towel that easily.

1 Like

I would double check that you don’t have a mysql root password set before trying to install.

I didn’t create one during the mysql install script, left it blank as per the directives. Anything else you could think of? I wanted to check the logs but no full file in /var/log/asterisk/ for some reason.

try adding -vvv to the install

./install --help

for other options

cool thanks dicko, will give that a try and see what other options I can go with.

hmmm -vvv didn’t return any extra verbosity and same error. I tried to force the install with the same error as well.

Checking if Asterisk is running and we can talk to it as the ‘asterisk’ user…Error!
Error communicating with Asterisk. Ensure that Asterisk is properly installed and running as the asterisk user
Asterisk appears to be running as asterisk
Try starting Asterisk with the ‘./start_asterisk start’ command in this directory

Does this output look normal?

ps -ef |grep asterisk
root 1856 13785 0 23:42 pts/2 00:00:00 grep --color=auto asterisk
root 3564 1 0 20:46 ? 00:00:03 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk
root 7742 1 0 20:54 ? 00:00:03 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk
root 14110 1 0 23:10 pts/2 00:00:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk
asterisk 20080 19918 0 20:27 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
asterisk 20081 19918 0 20:27 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
asterisk 20082 19918 0 20:27 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
asterisk 20083 19918 0 20:27 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
asterisk 20084 19918 0 20:27 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
root 30844 1 0 20:28 ? 00:00:04 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk

No safe_asterisk should only end up with one process, but FreePBX prefers asterisk to be controlled by fwconsole , I would killall safe_asterisk for now and use ./start_asterisk start in the directory you put freepbx in.

appreciate the help on a Sunday evening dicko. So I think the issue is somehow with asterisk as when I try and connect I get:

asterisk]# asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)

I checked out /var/run/asterisk/ and asterisk.ctl is there with the right permissions far’s I can tell:

asterisk]# ll
total 4
srwxrwxr-x 1 asterisk asterisk 0 Jan 31 23:57 asterisk.ctl
-rw-r–r-- 1 asterisk asterisk 6 Jan 31 23:57 asterisk.pid

Will however kill the extra safe_asterisk jobs in the meantime but something’s fishy with asterisk

How did you build asterisk? as I say disabling safe_asterisk and a reboot should get you going, on a clean boot, before any install

asterisk -vvvvvc

should start asterisk, but read the start_asterisk for clues.

I built asterisk as per the wiki and nothing from what I could see went wrong during the install. I will however give the box a reboot and give it another try before retiring for the night, been at this far too long lol

Thanks again dicko! btw, I was referring to you when I was thanking you ahead of time and for those who have been here for years like true soldiers :wink:

1 Like

One last thing actually now that I think of it, for the first time, I skipped installing libpri thinking that it was just needed if you had related hardware. I’m just running a virtual box so am I ok without libpri or could that be the source of my problems?

Not needed unless you have TDM Dahdi T1/E1 hardware

ok thanks that was my assumption but wasn’t 100%

UPDATE
After re-compiling Asterisk 16 two more times without success, I thought I’d give the old v15 a go and see how that might play out. Low and behold, I was able to get FreePBX installed without any issues.

Digging into why Asterisk 16 was the issue is beyond my scope and interest frankly at this point in time, but thought people who experience the same issues might just skip the hours of head banging and frustrations.

Asterisk 15 the latest stable release:

https://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-15.7.4.tar.gz

Cheers!

FYI. Asterisk 15 is EOL

https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions

I have no trouble building FreePBX 15 and Asterisk 17 using similar a method in my case on Buster though.