Fresh 6.12 install - errors starting/stopping amportal

I have installed PIAF many times over the years and my current PBX has been running FPBX 2.10 and Asterisk 1.8. I am trying to spin up a new box using the FreePBX distro 6.12.65 (32 bit) selecting Asterisk 11 and otherwise all defaults. The install process runs as expected but I immediately see these errors:

# amportal start

STARTING ASTERISK
Asterisk Started
Starting REST applications daemon:                         [  OK  ]
Stopping fail2ban: **REST Applications module is not licensed.**  [OK]
Starting fail2ban:                                         [  OK  ]
**/var/lib/asterisk/bin/freepbx_engine_hook_ucpnode: line 5: [: =: unary operator expected**
Starting Queue callback daemon:                            [  OK  ]
Starting prosody: Started        [  OK  ]
Starting XMPP Presence State daemon:                       [  OK  ]
[root@localhost ~]# **XMPP module is not licensed.**
 
# amportal stop

Fetching FreePBX settings with gen_amp_conf.php..
STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully...
All calls will be dropped once the timer hits 0. To cancel, press CTL-C
Waiting for Asterisk to Stop 120
Asterisk Stopped
...
....
Shutting down REST applications daemon:                    [FAILED]

**>ucp-server@ stop /var/www/html/admin/modules/ucpnode/node**
**>node_modules/forever/bin/forever stop --uid 'ucp' index.js**

**sh: node_modules/forever/bin/forever: No such file or directory**
**npm ERR! weird error 127**
**npm ERR! not ok code 0**
**Shutting down Queue callback daemon:                       [FAILED]**
Stopping prosody: Stopped
                                                           [  OK  ]
**Shutting down XMPP Presence State daemon:                  [FAILED]**

When I first saw this I had just “restored” my FreePBX config from backup and thought that was the issue. So I started over - this is completely fresh - just rebooted after the distro installed. I saw the same errors using the AsteriskNow install. The box is a Dell 1950 server with Raid.

I don’t want to go ahead until I get this resolved. Thanks.

You can ignore those warnings. Its trying to start services for commercial modules that you do not have licensed.

Tony -
Thanks for the reply. I really don’t like to have onerous looking but “ok” errors on a production system so I’m inclined to disable services/edit files as needed to suppress these errors. Is there any hierarchy to consider or should I track down each one separately?

Thanks

Many of these warnings are resolved in 13 where we are doing a whole new management infrastructure.

For now you can just uninstall the modules in question that arent licensed and you arent using.

I tried uninstalling the commercial modules (can’t find prosody) and not much change: Advice welcomed.

/var/lib/asterisk/bin/freepbx_engine: line 177: /var/lib/asterisk/bin/freepbx_en gine_hook_restapps: No such file or directory

STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully…
All calls will be dropped once the timer hits 0. To cancel, press CTL-C
Waiting for Asterisk to Stop 120
Asterisk Stopped

STOPPING WANROUTER FOR SANGOMA CARDS

Router is already stopped !

STOPPING DAHDI FOR DIGIUM CARDS
stop: missing job name
Try `stop --help’ for more information.
Dahdi Stopped

ucp-server@ stop /var/www/html/admin/modules/ucpnode/node
node_modules/forever/bin/forever stop --uid ‘ucp’ index.js

sh: node_modules/forever/bin/forever: No such file or directory
npm ERR! weird error 127
npm ERR! not ok code 0
Shutting down Queue callback daemon: [FAILED]
Stopping prosody: Stopped
[ OK ]
Shutting down XMPP Presence State daemon: [FAILED]

amportal start

PHP Fatal error: Uncaught exception ‘Exception’ with messag e ‘Unable to locate the FreePBX BMO Class ‘Xmpp’A required module might be disab led or uninstalled. Recommended steps (run from the CLI): 1) amportal a ma insta ll xmpp 2) amportal a ma enable xmpp’ in /var/www/html/admin/libraries/BMO/Self_ Helper.class.php:205
Stack trace:
0 /var/www/html/admin/libraries/BMO/Self_Helper.class.php(100): Self_Helper->lo adObject(‘Xmpp’)
1 /var/www/html/admin/libraries/BMO/Self_Helper.class.php(36): Self_Helper->aut oLoad(‘Xmpp’)
2 /var/www/html/admin/libraries/BMO/FreePBX.class.php(84): Self_Helper->__get(’ Xmpp’)
3 /var/www/html/admin/modules/xmpp/presence.php(12): FreePBX::__callStatic(‘Xmp p’, Array)
4 /var/www/html/admin/modules/xmpp/presence.php(12): FreePBX::Xmpp()
5 {main}
thrown in /var/www/html/admin/libraries/BMO/Self_Helper.class.php on line 205
[root@localhost ~]#

During an uninstall the symlinks are not removed. They might be cleaned up by running:

amportal a rmsymlinks

This is why we went to a new system in 13+

Thanks for the help. I just dropped back to my old box for now. Maybe I’ll give this a shot when 13 rolls out.