<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 27, 2018 at 5:15 AM Dovid Bender <<a href="mailto:dovid@telecurve.com">dovid@telecurve.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 26, 2018 at 7:59 PM, Richard Mudgett <span dir="ltr"><<a href="mailto:rmudgett@digium.com" target="_blank">rmudgett@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="gmail-m_-7426883216191022739m_-1719829950035481904gmail-">On Tue, Jun 26, 2018 at 6:15 PM, Dovid Bender <span dir="ltr"><<a href="mailto:dovid@telecurve.com" target="_blank">dovid@telecurve.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I have Asterisk running on a Ubuntu 18.0.4 on Digital Ocean. Every so often asterisk crashes and then restarts. I am not seeing any core dumps on the box. The only I thing I see every time is a second before Asterisk crashes there is a AAAA lookup for the boxes hostname. As soon as it gets the response I see that asterisk is restarting. Any idea what would cause this and how would get a dump or further debug? I did build Asterisk with DONT_OPTIMIZE and BETTER_BACKTRACES but not seeing any traces anywhere. I am using Asterisk 15.4.1.</div></blockquote><div><br></div></span><div>You have to start asterisk with the -g option to make asterisk create core files.</div><div><a href="https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace</a><span class="gmail-m_-7426883216191022739m_-1719829950035481904gmail-HOEnZb"><font color="#888888"><br></font></span></div><span class="gmail-m_-7426883216191022739m_-1719829950035481904gmail-HOEnZb"><font color="#888888"><div><br></div><div>Richard</div></font></span></div></div></div><br></blockquote><div>It's very strange. So when I try to start asterisk via systemd I get:<br>

<div style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><div><div><div>root@fingerprint1:/var/lib/lxcfs/cgroup/name=systemd/system.slice# systemctl start asterisk</div><div>Job for asterisk.service failed because a timeout was exceeded.</div><div>See "systemctl status asterisk.service" and "journalctl -xe" for details.</div><div>root@fingerprint1:/var/lib/lxcfs/cgroup/name=systemd/system.slice# </div><div>root@fingerprint1:/var/lib/lxcfs/cgroup/name=systemd/system.slice# </div><div>root@fingerprint1:/var/lib/lxcfs/cgroup/name=systemd/system.slice# ps aux | grep aster</div><div>root     14412  0.1  0.5  25084  5208 pts/2    S+   10:52   0:00 nano /lib/systemd/system/asterisk.service</div><div>asterisk 14425  9.3  4.7 1304352 48144 ?       Ssl  10:52   0:00 /usr/sbin/asterisk -g -f -U asterisk</div><div>root     14526  0.0  0.0  14856   976 pts/0    S+   10:52   0:00 grep --color=auto aster</div><div>root@fingerprint1:/var/lib/lxcfs/cgroup/name=systemd/system.slice# </div></div></div></div><br class="gmail-m_-7426883216191022739gmail-Apple-interchange-newline">As you can see it's still working. If I then connect to the console asterisk is running fine, in this case Asterisk restarts randomly (every 1-2 minutes). If I then start asterisk myself by doing:</div><div>

<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span>/usr/sbin/asterisk -g -f -U asterisk</span>

<br></div><div><br></div><div>Then it starts fine and works with no issue. It would seem there is something with systemd that is causing Asterisk to restart. I don't think it's the actual script since I would then expect it to always restart at the same time though I am not able to find any dumps any where on the box.</div><div><br></div><div>Any ideas?</div></div></div></div></blockquote><div><br></div><div>Look in /var/lib/asterisk.  <font size="2">That's the home directory that the service file sets.  Core files may be there.</font></div><div>Run "sysctl kernel.core_pattern".  That will tell you where the kernel will place the files.</div><div><br></div><div>Did you previously install asterisk from apt and did you uninstall it before compiling and installing 15.4.1?  The default version from apt is 13.18.3 so you may have a mixed installation that's causing issues.</div><div><br></div><div>Run "dmesg" after asterisk dies.  If it actually crashed, there'll be a message in the kernel log.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div><br></div></div></div></div>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="font-size:12.8px">George Joseph</span><br style="font-size:12.8px"><span style="font-size:12.8px">Digium, Inc. | Software Developer</span><span style="font-size:12.8px"><br>445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br></span><span style="font-size:12.8px">Check us out at: </span><a href="http://www.digium.com/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.digium.com</a><span style="font-size:12.8px"> & </span><a href="http://www.asterisk.org/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.asterisk.org</a><br><div><br></div></div></div></div>