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)
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
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.