Installing freepbx 17.0.19.12 on Debian 12.7

Hello,

I have a problem after installing freepbx 17.0.19.12 on Debian 12.7 with the installation script provided on this page:
https://sangomakb.atlassian.net/wiki/spaces/FP/pages/295403538/Step+By+Step+Debian+12+Installation

No errors occur, but after restart, asterisk service is not running. I can start asterisk manually. But after reboot, the service is not running again.

While booting and in syslog, I got two messages:

apache2.service: Found ordering cycle on freepbx.service/start
apache2.service: Job freepbx.service/start deleted to break ordering cycle starting with apache2.service/start
root@pbx:# service asterisk status
 asterisk.service - LSB: Asterisk PBX
     Loaded: loaded (/etc/init.d/asterisk; generated)
     Active: inactive (dead)

I don’t know how to solve this issue.

Regards Thomas

Hi @tweyhr3156 can you please remove “freepbx.service” from After option in apache2 service file present in “/lib/systemd/system/apache2.service”.

This got fixed in the latest script.

thanks

Hi @kgupta ,
thank you for your answer. And really, it works for me. All services start as usual.
But the shutdown or reboot takes a very long time. More than 4 minutes.

Last entry in syslog before sleeping 4 minutes:

Starting systemd-journal-flush.service - Flush Journal to Persistent Storage...

But now the next Problem while accessing the Web UI after activating the pbx:

Whoops \ Exception \ ErrorException (E_ERROR)
Allowed memory size of 536870912 bytes exhausted (tried to allocate 1281717103 bytes)
PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 1281717103 bytes) in /var/www/html/admin/modules/sysadmin/functions.inc/Ioncube.php on line 22

I changed memory_limit in /etc/php/8.2/mods-available/freepbx.ini from 512MB to 1500MB and reboot.

Apache service is up, but I cannot access Web UI. After restart apache2 service, I can access Web UI until reboot.
Restapps-Daemon is down and can be started with fwconsole start restapps

Regards
Thomas

yes for slow shutdown we have github issue present to debug.

for memory issue, if you restart apache2 then does that fix ? We had similar issue in the past where apache2 / freepbx both were trying to start at the same time causing this issue.

yes, when I restart apache2 and restapps-Daemon, both are working.