Restapps not starting FreePBX17

Good morning,

Has anyone come up with a solution why in some cases restapps doesn’t load after a restart and you have to manually start it with fwconsole start restapps?

Can’t even figure out how to implement an autostart on debian somehow with freepbx

Thank you

Hi @spr41178
What about module updates ? have you checked that ?

Everything at their latest

So what about respapps_err.log? you should have some details there.

Are you able to share with us restapps module version.

fwconsole ma list | grep restapps

17.0.1.31

I have different version.

# fwconsole ma list | grep restapps
| restapps            | 17.0.1.35  | Enabled | Commercial  | Sangoma   |

Try to upgrade to ^^ this version
Any evidence at logs side ? for stopping or crashing

1 Like

[26-Feb-2025 09:58:16 Europe/Athens] PHP Fatal error: Uncaught Exception: Unable to locate the FreePBX BMO Class 'Restapps’A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install restapps 2) fwconsole ma enable restapps in /var/www/html/admin/libraries/BMO/Self_Helper.class.php:214
Stack trace:
#0 /var/www/html/admin/libraries/BMO/Self_Helper.class.php(108): FreePBX\Self_Helper->loadObject()
#1 /var/www/html/admin/libraries/BMO/Self_Helper.class.php(39): FreePBX\Self_Helper->autoLoad()
#2 /var/www/html/admin/libraries/BMO/FreePBX.class.php(127): FreePBX\Self_Helper->__get()
#3 /var/www/html/admin/modules/restapps/restapps.php(20): FreePBX::__callStatic()
#4 {main}
thrown in /var/www/html/admin/libraries/BMO/Self_Helper.class.php on line 214

^^ here says what you need to do.

will do, will report back

NP, Probably some other modules are old… maybe you need to upgrade them too. If you have trouble ping us.

How can you find this latest version? seems i am only finding the .31 version.

Followed the installation again, problem persists.

fwconsole ma upgradeall shows nothing more to be upgraded.

Do u see a different repo?

you can see online versions via command line.

fwconsole ma listonline | grep restapps   ( you can remove | grep to see all onlineversions too ) 

If you wish you can upgrade all modules in a once. with (–edge) mode or without. up to you !

fwconlose ma refreshsignatures
fwconsole ma --edge upgradeall
fwconsole chown
fwconsole r --verbose

then yu can check up time or status of restapps

fwconsole pm2 --list
and Logs
fwconsole pm2 --log restapps

I hope all is clear.

1 Like

Very clear and thank you very much, have learned a few more tricks regarding updating which i was unaware of, however even now with .35 still not starting

±--------------------------±-----±-------±---------±---------------------± -----±---------+
| Process Name | PID | Status | Restarts | Uptime | CPU | Mem |
±--------------------------±-----±-------±---------±---------------------± -----±---------+
| core-calltransfer-monitor | 2113 | online | 0 | 1 minute, 20 seconds | 0% | 51.18MB |
| core-fastagi | 2212 | online | 0 | 1 minute, 18 seconds | 0.2% | 61.61MB |
| sangomartapi | 2332 | online | 0 | 1 minute, 16 seconds | 0.1% | 106.04MB |
| ucp | 2498 | online | 0 | 1 minute, 13 seconds | 0.1% | 83.14MB |
±--------------------------±-----±-------±---------±---------------------±

root@debian:~# fwconsole pm2 --log restapps

In Pm2.class.php line 61:

Trying to access array offset on value of type bool

pm2 [–list] [–stop STOP] [–restart RESTART] [–delete DELETE] [–update] [–reload-logs] [–log LOG] [–lines LINES]

What type phone you are using ? is it Sangoma S or P phones?

At the moment nothing, it is installed in a lab enviroment just the server nothing on it.

Not sure what phones will be used as yet

So, Restapps maybe is required to pay to use for other Phones. Thats why asked… I do have S Phone for testing…
May i ask you to check RestApps Port is open or not.

1st – Linux CLI

netstat -ntlup | grep 82

2nd FreePBX GUI → Admin → System Admin → Port Management → RESTful Phone Apps → Enable Default 82

Check this 2 steps pls.

port 82 is open and enabled by default however i am not seeing output from ipv4 only tcp6??

root@debian:~# netstat -ntlup | grep 82
tcp6 0 0 :::6082 :::* LISTEN 2407/node /var/www/
tcp6 0 0 :::82 :::* LISTEN 2052/apache2

Is your PBX hosted at the Cloud ?

no locally