FreePBX randomly(?) crashing and restarting

Running FreePBX 14.0.11 / Asterisk 13.27.0 on a Raspberry Pi (just a few concurrent calls) using the RasPBX image.

Here’s a snippet of the logs where the system restarts:

[2019-07-09 20:23:40] VERBOSE[14620][C-00000006] app_stack.c: Spawn extension (from-pstn, 12065551212, 1) exited non-zero on 'PJSIP/Flowroute-00000013'
[2019-07-09 20:23:40] VERBOSE[14620][C-00000006] app_stack.c: PJSIP/Flowroute-00000013 Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
[2019-07-09 20:23:40] VERBOSE[14620][C-00000006] app_dial.c: Called PJSIP/12065551212@Flowroute
[2019-07-09 20:23:40] ERROR[14620][C-00000006] astobj2.c: FRACK!, Failed assertion bad magic number 0x0 for object 0x232841c (0)
[2019-07-09 20:23:40] ERROR[14620][C-00000006] : Got -3 backtrace records
[2019-07-09 20:23:40] ERROR[6565] astobj2.c: FRACK!, Failed assertion bad magic number 0x0 for object 0x232841c (0)
[2019-07-09 20:23:40] ERROR[6565] : Got -3 backtrace records
[2019-07-09 20:23:50] Asterisk 13.27.0 built by root @ raspbx on a armv6l running Linux on 2019-06-10 08:18:20 UTC

Any thoughts on what the issue is or how I can go about troubleshooting?

Your memory was corrupted at 2019-07-09 20:23:40, asterisk restarted, What Pi? You might be stretching things on any Pi as both FreePBX and Asterisk get more greedy as they develop

Do you have a swap device and where is it located?

It’s a Raspberry Pi 2 Model B.
Swap is using /dev/zram0 to /dev/zram3 for a total of ~214MB.

Install sysstat , it will studiously keep a log by hour of ‘things that get stressed’ after you enable it in

apt-get install -y sysstat
nano /etc/default/sysstat

after an hour or two

sar -A

will help your diagnostics

If asterisk crashed /var/log/messages might give a clue at that time

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.