CentOS 7 install failure

Installing FreePBX/Asterisk on CentOS 7 fails at the point of enabling mariadb. To be clear, this is not a FreePBX or Asterisk issue. It’s an issue with an rpm package in the CentOS yum repository that breaks the systemctl command, so services can’t be stopped or started. Consider the following manual installation recipe.

https://wiki.freepbx.org/display/FOP/Installing+FreePBX+14+on+CentOS+7

Everything goes fine up until the “systemctl enable mariadb.service” step, which returns an error saying that systemctl failed to run because polkit wasn’t able to get necessary authorization. Of course, the problem isn’t limited to mariadb because systemctl won’t work for any application.

The problem is created when the “Development Tools” groupinstall runs, which installs a bogus polkit rpm (it’s actually two rpms). Fortunately polkit isn’t required for either FreePBX or Asterisk so it can be fixed by simply uninstalling polkit after the groupinstall runs. To do that you can issue the following command anytime after the “Development Tools” groupinstall but before issuing the “systemctl enable mariadb.service” command.

yum remove polkit

Hopefully the Red Hat people will recognize the polkit problem before long and correct the rpm in the repository, but in the meantime installing the “Development Tools” group will break systemctl.

Did you submit a ticket on this?

No. Since it’s not a FreePBX or Asterisk issue I wasn’t sure that submitting a ticket was appropriate. I considered leaving a comment on the wiki page with the instructions, but I didn’t see a way to do that. I see comments, but I don’t know how they got there.

If you would be kind enough to leave a comment or submit a ticket I’m sure it would save a lot of people considerable grief.

I’m no more capable than you - it’s just us chickens. Click on the “Issues” tab at the top of the page and fill out an issues ticket. The developers will look at it and adjust, as required, the procedures on the Wiki.

Ticket submitted.

https://issues.freepbx.org/browse/FREEPBX-17582

Evidently opening a ticket didn’t do any good. The ticket was closed as a third party issue, and no correction or comment appears at the install instruction page.

https://issues.freepbx.org/browse/FREEPBX-17582

https://wiki.freepbx.org/display/FOP/Installing+FreePBX+14+on+CentOS+7

At least I tried…

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.