New FreePBX Appliance problems with module updates during initial install


#1

Installing a new FreePBX 100 appliance

during the module update phase of the install I get:

"Unable to locate the FreePBX BMO Class 'Firewall’A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install firewall 2) fwconsole ma enable firewall :arrow_backward:

I switch to CLI and issue the commands and get:

Detected Missing Dependency of: sysadmin 15.0.21.3
Downloading Missing Dependency of: sysadmin 15.0.21.3
Processing sysadmin
Verifying local module download…Verified
Extracting…Done
Module sysadmin successfully downloaded
Installing Missing Dependency of: sysadmin 15.0.21.3
Updating tables sysadmin_options, sysadmin_update_log, sysadmin_fail2ban…Done

In Self_Helper.class.php line 212:

_ Unable to locate the FreePBX BMO Class 'Firewall’A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install firewall 2) fwconsole ma enable firewall_

Most likely because sysadmin module is disabled because it needs to be udated:

Disabled; Pending Upgrade to 15.0.21.81

But it won’t let me upgrade because the firewall is not installed… It’s a circular problem.

HELP!!


(Lorne Gaetz) #2

I would like to repro this, can you provide the output of

fwconsole ma list

(TheJames) #3

The gist is someone in sysadmin is making a call like

FreePBX::Firewall()->someMethod()

Without validating firewall is installed. This is a bug

A work around would be to possibly modify the module.xml for firewall and remove the sysadmin dependency so it will install. This may not work but it’s worth a try


#4
+----------------------+------------+-----------------------------------------+-------------+
| Module               | Version    | Status                                  | License     |
+----------------------+------------+-----------------------------------------+-------------+
| accountcodepreserve  | 13.0.2.2   | Enabled                                 | GPLv2       |
| adv_recovery         | 15.0.42    | Enabled                                 | Commercial  |
| amd                  | 15.0.3     | Enabled                                 | GPLv3+      |
| announcement         | 15.0.3.13  | Enabled                                 | GPLv3+      |
| api                  | 15.0.3.20  | Enabled                                 | AGPLv3+     |
| areminder            | 15.0.14.24 | Enabled                                 | Commercial  |
| arimanager           | 15.0.3.12  | Enabled                                 | GPLv3+      |
| asterisk-cli         | 14.0.4     | Enabled                                 | GPLv3+      |
| asteriskinfo         | 15.0.14    | Enabled                                 | GPLv3+      |
| backup               | 15.0.10.65 | Enabled                                 | GPLv3+      |
| blacklist            | 15.0.2.15  | Enabled                                 | GPLv3+      |
| broadcast            | 15.0.14    | Enabled                                 | Commercial  |
| builtin              |            | Enabled                                 |             |
| bulkhandler          | 13.0.24    | Enabled                                 | GPLv3+      |
| calendar             | 15.0.4.21  | Enabled                                 | GPLv3+      |
| callaccounting       | 15.0.24    | Enabled                                 | Commercial+ |
| callback             | 15.0.12    | Enabled                                 | GPLv3+      |
| callerid             | 15.0.16    | Enabled                                 | Commercial  |
| callforward          | 15.0.16    | Enabled                                 | AGPLv3+     |
| calllimit            | 15.0.5.6   | Enabled                                 | Commercial  |
| callrecording        | 15.0.7.19  | Enabled                                 | AGPLv3+     |
| callwaiting          | 15.0.4.6   | Enabled                                 | GPLv3+      |
| cdr                  | 15.0.17.10 | Enabled                                 | GPLv3+      |
| cel                  | 15.0.15.14 | Enabled                                 | GPLv3+      |
| certman              | 15.0.48    | Enabled                                 | AGPLv3+     |
| cidlookup            | 15.0.20    | Enabled                                 | GPLv3+      |
| conferences          | 15.0.7.11  | Enabled                                 | GPLv3+      |
| conferencespro       | 15.0.3.18  | Enabled                                 | Commercial  |
| configedit           | 13.0.7.3   | Enabled                                 | AGPLv3+     |
| contactmanager       | 15.0.8.38  | Enabled                                 | GPLv3+      |
| core                 | 15.0.12.84 | Enabled                                 | GPLv3+      |
| cos                  | 15.0.14    | Enabled                                 | Commercial  |
| customappsreg        | 15.0.14    | Enabled                                 | GPLv3+      |
| cxpanel              | 15.0.4     | Enabled                                 | GPLv3       |
| dahdiconfig          | 15.0.5.7   | Enabled                                 | GPLv3+      |
| dashboard            | 15.0.12    | Enabled                                 | AGPLv3+     |
| daynight             | 15.0.12    | Enabled                                 | GPLv3+      |
| dictate              | 15.0.7     | Enabled                                 | GPLv3+      |
| digium_phones        | 15.0.6     | Enabled                                 | GPLv2       |
| digiumaddoninstaller | 13.0.1.2   | Enabled                                 | GPLv2       |
| directory            | 15.0.18    | Enabled                                 | GPLv3+      |
| disa                 | 15.0.4.9   | Enabled                                 | AGPLv3+     |
| donotdisturb         | 15.0.10    | Enabled                                 | GPLv3+      |
| dynroute             | 15.0.2     | Enabled                                 | GPLv3+      |
| endpoint             | 15.0.41.21 | Enabled                                 | Commercial  |
| extensionroutes      | 15.0.8     | Enabled                                 | Commercial  |
| extensionsettings    | 13.0.4     | Enabled                                 | GPLv3+      |
| fax                  | 15.0.21    | Enabled                                 | GPLv3+      |
| faxpro               | 15.0.8.14  | Enabled                                 | Commercial  |
| featurecodeadmin     | 13.0.6.11  | Enabled                                 | GPLv3+      |
| filestore            | 15.0.3.25  | Enabled                                 | AGPLv3      |
| findmefollow         | 15.0.28    | Enabled                                 | GPLv3+      |
| firewall             | 15.0.6.34  | Disabled; Pending upgrade to 15.0.19    | AGPLv3+     |
| framework            | 15.0.17.55 | Enabled                                 | GPLv2+      |
| fw_langpacks         | 14.0.1     | Enabled                                 | GPLv3+      |
| hotelwakeup          | 15.0.5.5   | Enabled                                 | GPLv2       |
| iaxsettings          | 15.0.8     | Enabled                                 | AGPLv3      |
| infoservices         | 15.0.3     | Enabled                                 | GPLv2+      |
| iotserver            | 15.0.3.7   | Enabled                                 | Commercial  |
| irc                  | 13.0.1     | Enabled                                 | GPLv3+      |
| ivr                  | 15.0.29    | Enabled                                 | GPLv3+      |
| languages            | 15.0.12    | Enabled                                 | GPLv3+      |
| logfiles             | 15.0.14    | Enabled                                 | GPLv3+      |
| manager              | 15.0.13    | Enabled                                 | GPLv2+      |
| miscapps             | 15.0.10    | Enabled                                 | GPLv3+      |
| miscdests            | 15.0.2.12  | Enabled                                 | GPLv3+      |
| music                | 15.0.22    | Enabled                                 | GPLv3+      |
| oracle_connector     | 15.0.2     | Disabled; Pending upgrade to 15.0.11    | Commercial  |
| outroutemsg          | 15.0.9     | Enabled                                 | GPLv3+      |
| paging               | 15.0.4.32  | Enabled                                 | GPLv3+      |
| pagingpro            | 15.0.1.22  | Enabled                                 | Commercial  |
| parking              | 15.0.15.4  | Enabled                                 | GPLv3+      |
| parkpro              | 15.0.13    | Enabled                                 | Commercial  |
| pbdirectory          | 2.11.0.6   | Enabled                                 | GPLv3+      |
| phonebook            | 15.0.12    | Enabled                                 | GPLv3+      |
| phpinfo              | 13.0.2     | Enabled                                 | GPLv2+      |
| pinsets              | 15.0.1.15  | Enabled                                 | GPLv3+      |
| pinsetspro           | 15.0.4     | Enabled                                 | Commercial  |
| pm2                  | 15.0.7     | Enabled                                 | AGPLv3+     |
| pms                  | 15.0.2.55  | Enabled                                 | Commercial  |
| presencestate        | 15.0.11    | Enabled                                 | GPLv3+      |
| printextensions      | 13.0.3.4   | Enabled                                 | GPLv3+      |
| queueprio            | 15.0.10    | Enabled                                 | GPLv3+      |
| queues               | 15.0.33    | Enabled                                 | GPLv2+      |
| queuestats           | 15.0.3.33  | Enabled                                 | Commercial  |
| qxact_reports        | 15.0.3.34  | Enabled                                 | Commercial  |
| recording_report     | 15.0.4.38  | Enabled                                 | Commercial  |
| recordings           | 15.0.3.15  | Enabled                                 | GPLv3+      |
| restapps             | 15.0.19.67 | Enabled                                 | Commercial  |
| ringgroups           | 15.0.11.14 | Enabled                                 | GPLv3+      |
| sangomaconnect       | 15.0.8     | Enabled                                 | Commercial  |
| sangomacrm           | 15.0.18    | Enabled                                 | Commercial  |
| setcid               | 15.0.9     | Enabled                                 | GPLv3+      |
| sipsettings          | 15.0.6.39  | Enabled                                 | AGPLv3+     |
| sipstation           | 15.0.5.25  | Enabled                                 | Commercial  |
| sms                  | 15.0.18    | Enabled                                 | Commercial  |
| soundlang            | 15.0.5.10  | Enabled                                 | GPLv3+      |
| speeddial            | 2.11.0.4   | Enabled                                 | GPLv3+      |
| superfecta           | 15.0.2.34  | Enabled                                 | GPLv2+      |
| sysadmin             | 15.0.16.24 | Disabled; Pending upgrade to 15.0.21.81 | Commercial  |
| timeconditions       | 15.0.15.11 | Enabled                                 | GPLv3+      |
| tts                  | 15.0.12    | Enabled                                 | GPLv3+      |
| ttsengines           | 15.0.4.7   | Enabled                                 | AGPLv3      |
| ucp                  | 15.0.6.20  | Enabled                                 | AGPLv3+     |
| userman              | 15.0.57    | Enabled                                 | AGPLv3+     |
| vega                 | 15.0.10    | Enabled                                 | Commercial+ |
| vmblast              | 15.0.11.8  | Enabled                                 | GPLv3+      |
| vmnotify             | 15.0.12    | Enabled                                 | Commercial  |
| voicemail            | 15.0.18.39 | Enabled                                 | GPLv3+      |
| voicemail_report     | 15.0.6     | Enabled                                 | Commercial  |
| vqplus               | 15.0.7.21  | Enabled                                 | Commercial  |
| weakpasswords        | 13.0.2     | Enabled                                 | GPLv3+      |
| webcallback          | 15.0.6.3   | Enabled                                 | Commercial  |
| webrtc               | 15.0.10.6  | Enabled                                 | GPLv3+      |
| xmpp                 | 15.0.6.8   | Enabled                                 | AGPLv3      |
| zulu                 | 15.0.58.9  | Enabled                                 | Commercial  |
+----------------------+------------+-----------------------------------------+-------------+

#5

I’m reluctant to muck around in the xml files but if that’s the only way…

basically just remove the sysadmin line from the section?


(TheJames) #6

You may be able to

fwconsole ma install firewall --tag 15.0.6.34

to roll it back to the formerly installed version

fwconsole ma install --force firewall

may work too.


#7

Yep, thats what I did. Hat to tag the proper versions snd force the installs.

Had to do both sysadmin and firewall.

Thanks guys!