Broken Sysadmin module

my Freepbx is v14.1… A message from the server to update modules.

The Sysadmin upgrade was required. Instead of clicking the “purchase” button, I clicked the upgrade. Now the sysadmin modules is disabled (Disabled; Pending Upgrade to 14.0.11). It won’t let me do anything recover the error. Only options available from the module manage, “Upgrade to 14.0.11 and Enable” and “Uninstall”. Clicked the “upgrade…” the server gets an error and hangs the GUI. It’s won’t let me uninstall the module.

How can I recover from this situation?

Log in to the console and enter “fwconsole ma install sysadmin” and tell us what happens.

Please see below…

[[email protected] ~]# fwconsole ma install sysadmin

In install.php line 17:

/etc/sangoma does not exist. Can’t continue

ma [-f|–force] [-d|–debug] [–edge] [–color] [–skipchown] [-e|–autoenable] [–skipdisabled] [–snapshot SNAPSHOT] [–format FORMAT] [-R|–repo REPO] [-t|–tag TAG] [–onlystdout] [–willupdate] [–securityonly] [–sendemails] [–] []…

Is this a Distro install or was it installed by some other method?

It’s a distro…

The /etc/sangoma folder should exist on a distro. Is the os up to date, run:

yum update

It’s up to date…

[[email protected] ~]# yum update
Loaded plugins: fastestmirror, versionlock
sng-base | 3.6 kB 00:00
sng-epel | 4.7 kB 00:00
sng-extras | 3.4 kB 00:00
sng-pkgs | 2.9 kB 00:00
sng-updates | 3.4 kB 00:00
Loading mirror speeds from cached hostfile
No packages marked for update

yum install sangoma-pbx


yum reinstall sangoma-pbx

The error is resolved!


yum install sangoma-pbx…

[[email protected] ~]# yum install sangoma-pbx
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
Resolving Dependencies
–> Running transaction check
—> Package sangoma-pbx.noarch 0:1801-3.sng7 will be installed
–> Processing Dependency: kmod-forcedeth for package: sangoma-pbx-1801-3.sng7.noarch
–> Running transaction check
—> Package kmod-forcedeth.x86_64 0:0.64-4.sng7 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size

sangoma-pbx noarch 1801-3.sng7 sng-pkgs 16 k
Installing for dependencies:
kmod-forcedeth x86_64 0.64-4.sng7 sng-pkgs 45 k

Transaction Summary

Install 1 Package (+1 Dependent package)

Total download size: 61 k
Installed size: 140 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): sangoma-pbx-1801-3.sng7.noarch.rpm | 16 kB 00:00
(2/2): kmod-forcedeth-0.64-4.sng7.x86_64.rpm | 45 kB 00:01

Total 50 kB/s | 61 kB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : kmod-forcedeth-0.64-4.sng7.x86_64 1/2

Working. This may take some time …
Installing : sangoma-pbx-1801-3.sng7.noarch 2/2
warning: /etc/schmooze/pbx-brand created as /etc/schmooze/pbx-brand.rpmnew
Redirecting to /bin/systemctl restart httpd.service
Redirecting to /bin/systemctl restart xinetd.service
Machine not eligible for ftp configuration.
Verifying : kmod-forcedeth-0.64-4.sng7.x86_64 1/2
Verifying : sangoma-pbx-1801-3.sng7.noarch 2/2

sangoma-pbx.noarch 0:1801-3.sng7

Dependency Installed:
kmod-forcedeth.x86_64 0:0.64-4.sng7


reboot the server and click “Upgrade to 14.0.11 and Enable” button again. The Sysadmin module is re-enabled.

Thank you for all your help

I have no idea how that managed to be deleted - it is, in fact, a protected RPM, you shouldn’t be able to delete it at all. What’s the history of this machine? Did you install it from 6 and then upgrade? Or was it installed as 7 from an ISO (and if, so, do you know which ISO?)

It would be SUPER handy if you could run this command and send me a PM with the output:

pastebin /var/log/yum.log
1 Like

I did exactly as mentioned at the beginning of my post. It’s definitely a bug in the software. I installed the freepbx from the Sangome download site (SNG7-FPBX-64bit-1707-1). It’s a vanilla installation on a Hyper-v server.


[[email protected] ~]# uname -a
Linux freepbx.xxxxxxx.local 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

[[email protected] ~]# cat /etc/sangoma-release
Sangoma Linux release 7.4.1712 (Core)

[[email protected] ~]# cat /etc/sangoma/pbx-version

@kyiu can you please do what was requested

That is quite an old ISO, and because of a couple of reports of people accidentally removing sangoma-pbx, I protected that specific package in 1711-1.

If you had typed ‘yum remove nodejs’ (or any one of 15 other RPMs that you thought you didn’t need) it would have removed that RPM, and almost nothing would have broken, until 6 months later - now - when we’re sure that everyone has upgraded, we can start relying on that RPM existing, and… whoops, you were one of the ones that deleted it, and didn’t notice.

Just install it, and everything will be fine.

yum install sangoma-pbx

If it errors, you might need to rm -rf /etc/sangoma and then try the install again.

[[email protected] ~]# pastebin /var/log/yum.log
title: Automatic Pastebin from Sangoma OS 7
name: [email protected]
private: 1
expire: 0

I recalled recently I had trouble updating the system update. I had to comment out sangoma-pbx in the /etc/yum/protected.d/sngoma-pbx.conf in order to perform the update. The system update must have erased the /etc/sangoma directory

Yes, that means you uninstalled it. You’ll need to reinstall it 8)

It’s good to know.

Thanks again…

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