FreePBX | Register | Issues | Wiki | Portal | Support

Errors after Upgrade to 14

freepbx
configuration
Tags: #<Tag:0x00007fb90248c908> #<Tag:0x00007fb90248c750>

(Andrew Nagy) #22

yum install zend-guard-loader
yum install sangoma-pbx


(Eric Pace) #23

Those both worked with no errors.

I was looking at the modules in the fwconsole ma list and still saw sysadmin and endpoint disabled, pending upgrade.

Trying to upgrade them just throws a Sysadmin RPM not up to date exception and says to run yum update sysadmin as root to continue. When doing that, it gives me Package sysadmin available, but not installed. No packages marked for update


(Andrew Nagy) #24

Up to this whole point the problem you are having is missing packages. Don’t you think that if it’s missing you should install it?

yum install sysadmin


(Eric Pace) #25

Ok, I have all the modules in Enabled status, now trying to get the webpage working. It looks like the httpd service is most likely the culprit for it not working.

That service fails to start saying it exited with an error code.

Is there another step after getting all the packages enabled and working?


(Eric Pace) #26
systemctl status httpd.service -l
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2017-09-11 16:12:40 MDT; 2min 56s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 22868 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 22866 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 22866 (code=exited, status=1/FAILURE)

Sep 11 16:12:40 voip.hycomp.local systemd[1]: Starting The Apache HTTP Server...
Sep 11 16:12:40 voip.hycomp.local httpd[22866]: httpd: Syntax error on line 153 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_authn_alias.so into server: /etc/httpd/modules/mod_authn_alias.so: cannot open shared object file: No such file or directory
Sep 11 16:12:40 voip.hycomp.local systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 11 16:12:40 voip.hycomp.local kill[22868]: kill: cannot find process ""
Sep 11 16:12:40 voip.hycomp.local systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 11 16:12:40 voip.hycomp.local systemd[1]: Failed to start The Apache HTTP Server.
Sep 11 16:12:40 voip.hycomp.local systemd[1]: Unit httpd.service entered failed state.
Sep 11 16:12:40 voip.hycomp.local systemd[1]: httpd.service failed.

That is what I get with the httpd service


(Andrew Nagy) #27

yum remove httpd
yum install httpd


(Eric Pace) #28

Only slightly different:

● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2017-09-11 16:20:02 MDT; 10s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 23338 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 23333 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 23333 (code=exited, status=1/FAILURE)

Sep 11 16:20:02 voip.hycomp.local httpd[23333]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Sep 11 16:20:02 voip.hycomp.local httpd[23333]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:81
Sep 11 16:20:02 voip.hycomp.local httpd[23333]: no listening sockets available, shutting down
Sep 11 16:20:02 voip.hycomp.local httpd[23333]: AH00015: Unable to open logs
Sep 11 16:20:02 voip.hycomp.local systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 11 16:20:02 voip.hycomp.local kill[23338]: kill: cannot find process ""
Sep 11 16:20:02 voip.hycomp.local systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 11 16:20:02 voip.hycomp.local systemd[1]: Failed to start The Apache HTTP Server.
Sep 11 16:20:02 voip.hycomp.local systemd[1]: Unit httpd.service entered failed state.
Sep 11 16:20:02 voip.hycomp.local systemd[1]: httpd.service failed.

(Andrew Nagy) #29

Different in that httpd is already running so stop it and restart it.


(Eric Pace) #30

I can stop it with no errors coming up, but starting it gets the same error as above.


(Andrew Nagy) #31

Because it’s still running. You need to kill the process that is bound to those addresses. That is your issue. Something is already bound to those addresses. It’s probably apache.


(Matthias Binder) #32

Try to reboot the server maybe some service stucks. Then try again! Regards,


(Eric Pace) #33

Using ps aux I am able to see all the processes and PIDs right? I don’t see anything there with 23333 as the PID, and trying to just kill that PID comes back with no such process.


(Matthias Binder) #34

maybe you can see them with “top”


(Andrew Nagy) #35

That is because 23333 is the one TRYING to start. you won’t see it because it already died because it couldn’t start.

Did you even reboot the system like previously mentioned?

ps aux | grep httpd


(Eric Pace) #36

A reboot killed my phones again, and all the same modules I had problems with before had problems again. I am in the process of at least getting things back up so my people can make phone calls again.


(Eric Pace) #37
ps aux | grep httpd
root      4329  0.0  0.0 112648   956 pts/0    S+   07:56   0:00 grep --color=auto httpd

This is what I get with that command, now that phones are working again.


(Eric Pace) #38

Ok, I finally got my httpd service to run and I can get to the server with my browser, however I get an error page saying:


(Andrew Nagy) #39

yum install php56w-xml


(Eric Pace) #40
 yum install php56w-xml
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
Package php56w-xml-5.6.31-2.sng7.x86_64 already installed and latest version
Nothing to do

It appears that it is already installed


(Eric Pace) #41

Ok, looks like a restart of httpd resolved it, even though it had been installed.

I am not able to get the GUI.

One problem I see is it is saying it is Unable to Find Asterisk results, but has no critical issues in the list, so there is nothing for me to go on to fix it.