Asterisk crash after reload, fresh install of freepbx 13

since 2 days, i’ve tried to install freepbx 13 with centos 6 on ovh vps server.
Installation work fine with de wiki page installing guide, finished installation with making update module,
making change ; chkconfig asterisk off and add on rc.local : /usr/sbin/fwconsole start

the problem is if i used fwconsole reload or reboot the system, asterisk not working, saying can not connect to Asterisk !!

on asterisk -cvvv, received a lot of unable to load module and stop at Loading res_ari_channels.so.
Segmentation fault (core dumped)

Tried on 3 differents server

i’ve several freepbx 13 already working fine on vps, the problem start only this week

thank’s for any help

Eric

1 Like

ps aux | grep asterisk
root 1680 0.0 0.0 11344 1156 ? Ss 18:46 0:00 /bin/sh -e -c exec su -s /bin/bash -c ‘stdbuf -oL -eL /usr/local/bin/pnp_server’ asterisk 2>&1 | logger -t sangoma_pnp /bin/sh
root 1682 0.0 0.0 66528 1832 ? S 18:46 0:00 su -s /bin/bash -c stdbuf -oL -eL /usr/local/bin/pnp_server asterisk
asterisk 1691 0.0 0.1 83244 6356 ? Ss 18:46 0:00 /usr/bin/python /usr/local/bin/pnp_server
asterisk 1822 0.0 0.1 290380 7152 ? S 18:46 0:00 /usr/sbin/httpd
asterisk 1823 0.0 0.1 290380 7152 ? S 18:46 0:00 /usr/sbin/httpd
asterisk 1824 0.0 0.1 290380 7172 ? S 18:46 0:00 /usr/sbin/httpd
asterisk 1825 0.0 0.1 290380 7152 ? S 18:46 0:00 /usr/sbin/httpd
asterisk 1826 0.0 0.1 290380 7152 ? S 18:46 0:00 /usr/sbin/httpd
asterisk 1827 0.0 0.1 290380 7152 ? S 18:46 0:00 /usr/sbin/httpd
asterisk 1828 0.0 0.1 290380 7152 ? S 18:46 0:00 /usr/sbin/httpd
asterisk 1829 0.0 0.1 290380 7152 ? S 18:46 0:00 /usr/sbin/httpd
root 1930 0.0 0.0 108360 996 ? S 18:46 0:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk

Might be DNS issue. When asterisk can’t reach the internet the DNS basically chokes it. Does your system have access to the internet?

yes, on fresh install, able to do update, making change, everything works great until reboot

if i make
./start_asterisk start

STARTING ASTERISK
/usr/sbin/safe_asterisk: line 171: 21162 Segmentation fault (core dumped) nice -n $PRIORITY “${ASTSBINDIR}/asterisk” -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
Asterisk Started
[[email protected] freepbx]# /usr/sbin/safe_asterisk: line 171: 21244 Segmentation fault (core dumped) nice -n $PRIORITY “${ASTSBINDIR}/asterisk” -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
/usr/sbin/safe_asterisk: line 171: 21318 Segmentation fault (core dumped) nice -n $PRIORITY “${ASTSBINDIR}/asterisk” -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
/usr/sbin/safe_asterisk: line 171: 21395 Segmentation fault (core dumped) nice -n $PRIORITY “${ASTSBINDIR}/asterisk” -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
/usr/sbin/safe_asterisk: line 171: 21470 Segmentation fault (core dumped) nice -n $PRIORITY “${ASTSBINDIR}/asterisk” -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}

ok, now,
I’ve flush a 6 month installation of freepbx 13, start over and make fresh install,
configure extension, update some module, test some functionnality, make some test in cli command, everything works,

Now tried to restart asterisk as follow ;

vps95827*CLI> core show version
Asterisk 13.16.0 built by root @ vps95827.vps.ovh.ca on a x86_64 running Linux on 2017-06-09 17:50:11 UTC

vps95827CLI> core restart gracefully
vps95827
CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
[[email protected] asterisk]# /usr/sbin/safe_asterisk: line 171: 32127 Segmentation fault (core dumped) nice -n $PRIORITY “${ASTSBINDIR}/asterisk” -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
/usr/sbin/safe_asterisk: line 171: 12262 Segmentation fault (core dumped) nice -n $PRIORITY “${ASTSBINDIR}/asterisk” -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
/usr/sbin/safe_asterisk: line 171: 12344 Segmentation fault (core dumped) nice -n $PRIORITY “${ASTSBINDIR}/asterisk” -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}

ok, now,
I’ve flush a 6 month installation of freepbx 13, start over and make fresh install,
configure extension, update some module, test some functionnality, make some test in cli command, everything works,

Now tried to restart asterisk as follow ;

vps95827*CLI> core show version
Asterisk 13.16.0 built by root @ vps95827.vps.ovh.ca on a x86_64 running Linux on 2017-06-09 17:50:11 UTC

vps95827CLI> core restart gracefully
vps95827
CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
[[email protected] asterisk]# /usr/sbin/safe_asterisk: line 171: 32127 Segmentation fault (core dumped) nice -n $PRIORITY “${ASTSBINDIR}/asterisk” -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
/usr/sbin/safe_asterisk: line 171: 12262 Segmentation fault (core dumped) nice -n $PRIORITY “${ASTSBINDIR}/asterisk” -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
/usr/sbin/safe_asterisk: line 171: 12344 Segmentation fault (core dumped) nice -n $PRIORITY “${ASTSBINDIR}/asterisk” -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}

there is difference with asterisk version ? here have asterisk 13.16.0 and on my existing working server there is asterisk 13.13.0.

Found problem, asterisk 13.16.0 not working, restart a fresh install following the wiki on site : https://wiki.freepbx.org/display/FOP/Installing+FreePBX+13+on+CentOS+6

change the installation of asterisk by an old version :
wget http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-13.13.0.tar.gz

Everything work fine now

1 Like

There is already a ticket filed on this with Asterisk. You simply needed to do:

touch /etc/asterisk/ari.conf