alanbaker
(Alan Baker)
November 20, 2024, 2:54pm
1
Hi, any time the pbx loses power upon automatic restart FreePBX loads but asterisk does not.
I’m monitoring asterisk in PRTG.
I have to console in and run fwconsole -restart to bring it back up which works.
Unfortunately it seems the logs only log when asterisk is running so I’m not sure how to diagnose this issue.
Can I ask the fine community for advice and help on this, I’m happy to provide further information to assist in the diagnosis.
Thanks
dicko
(dicko)
November 20, 2024, 7:31pm
2
At some time Sangoma published a broken pair of
/usr/lib/systemd/system/freepbx.service
/usr/lib/systemd/system/freepbx.service
Where FreePBX and hence Asterisk was told to start after apache2, and Apache2 was told to startt after FreePBX, which is strange becuse neither needs the other. I am not sure that they have fixed it yet though.
alanbaker
(Alan Baker)
November 20, 2024, 7:52pm
3
Thanks Dicko, so I’m not alone with this problem? Is there a published fix for it you can reference?
dicko
(dicko)
November 20, 2024, 7:55pm
4
I don’t know about a publshed fix but commenting out the reference to Freepbx in the apache2 service file and vice versa , then
systemctl daemon-reload; reboot
works for me
1 Like
alanbaker
(Alan Baker)
November 20, 2024, 9:02pm
5
This is the contents of Freepbx.service - Do I need to comment out any of these? I cannot find an apache2 file in the same directory.
[Unit]
Description=FreePBX VoIP Server
After=mariadb.service
After=httpd.service
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/fwconsole start
ExecStop=/usr/sbin/fwconsole stop
[Install]
WantedBy=multi-user.target
dicko
(dicko)
November 20, 2024, 9:06pm
6
That doesn’t look like FreePBX 17 which is Debian based, there the default webserver is apache2 not httpd. I apologize for misleading you.
dicko
(dicko)
November 20, 2024, 9:08pm
8
Kinda EOL, think about updating.
alanbaker
(Alan Baker)
November 20, 2024, 9:15pm
9
You are right, I really should. I have tried and found it not as simple as the documentation makes out.
I’ll have another go.
Last time I took a backup
Spun up 17 on other hardware and restored the backup.
Will I need to re-register the users samgoma connect on their mobile devices?
dicko
(dicko)
November 20, 2024, 9:16pm
10
Sorry, I don’t use commercial modules,
alanbaker
(Alan Baker)
November 20, 2024, 9:24pm
11
Ok, thanks for the advice, appreciated as always!
system
(system)
Closed
December 21, 2024, 9:25pm
12
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.