Hello everyone,
I’m facing an unusual issue (occurred after running Asterisk continuously for about 3 months).
Description:
- Asterisk is not running normally: the status of
systemctl status asterisk
showsrunning(exited)
. - Restarting and running the command
asterisk -rcvvvvvvvv
, the displayed status is:Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
.
Unfortunately, I had turned off Asterisk logging mode, so I don’t know the exact issue.
After checking the system log (syslog), it seems that the service is being restarted multiple times continuously but unsuccessfully.
May 1 08:09:58 linux systemd[1]: asterisk.service: Deactivated successfully.
May 1 08:09:58 linux systemd[1]: asterisk.service: Unit process 3634905 (asterisk) remains running after unit stopped.
May 1 08:09:58 linux systemd[1]: Stopped LSB: Asterisk PBX.
May 1 08:09:58 linux systemd[1]: asterisk.service: Consumed 4d 6h 14min 59.938s CPU time.
May 1 08:09:59 linux systemd[1]: Starting LSB: Asterisk PBX...
May 1 08:09:59 linux asterisk[43926]: * Starting Asterisk PBX: asterisk
May 1 08:09:59 linux asterisk[43938]: /usr/sbin/asterisk already running.
May 1 08:09:59 linux asterisk[43926]: ...done.
May 1 08:09:59 linux systemd[1]: Started LSB: Asterisk PBX.
May 1 08:10:03 linux systemd[1]: Stopping LSB: Asterisk PBX...
May 1 08:10:03 linux asterisk[43982]: * Stopping Asterisk PBX: asterisk
May 1 08:10:03 linux asterisk[43982]: ...done.
May 1 08:10:03 linux systemd[1]: asterisk.service: Deactivated successfully.
May 1 08:10:03 linux systemd[1]: Stopped LSB: Asterisk PBX.
May 1 08:10:04 linux systemd[1]: Starting LSB: Asterisk PBX...
May 1 08:10:04 linux asterisk[44019]: * Starting Asterisk PBX: asterisk
May 1 08:10:04 linux asterisk[44031]: /usr/sbin/asterisk already running.
May 1 08:10:04 linux asterisk[44019]: ...done.
May 1 08:10:04 linux systemd[1]: Started LSB: Asterisk PBX.
I decided to reboot the operating system (entered the command reboot). After restarting the operating system, Asterisk started working normally again.
I hope someone can pinpoint or suggest the root cause of the issue as described above. Thank you sincerely!
(Asterisk version is 16.18.0, operating system is Ubuntu 22.04)
Thanks!