<div dir="ltr"><div>Hi all, </div><div><br></div><div>Sorry, I am new on this list and this is my first post requesting some help troubleshooting an issue with systemd. </div><div><br><p>I’m experiencing an issue where the Asterisk service fails to start and times out consistently. This happens across multiple versions of Asterisk, so we suspect it might be a systemd-related issue.<br><br>The OS is Rocky Linux release 8.9 and running in a VM. <br>No issue in other sites with same OS and same Asterisk versions </p><h3>Issue Details:</h3><ul><li><p>When starting Asterisk with <code>systemctl</code>, it fails due to a timeout:</p><pre class="gmail-!overflow-visible"><div class="gmail-contain-inline-size gmail-rounded-md gmail-border-[0.5px] gmail-border-token-border-medium gmail-relative gmail-bg-token-sidebar-surface-primary gmail-dark:bg-gray-950"><div class="gmail-flex gmail-items-center gmail-text-token-text-secondary gmail-px-4 gmail-py-2 gmail-text-xs gmail-font-sans gmail-justify-between gmail-rounded-t-md gmail-h-9 gmail-bg-token-sidebar-surface-primary gmail-dark:bg-token-main-surface-secondary gmail-select-none"><span style="font-family:Arial,Helvetica,sans-serif">sudo systemctl start asterisk  </span></div><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"><code class="gmail-!whitespace-pre gmail-hljs gmail-language-rust">Job <span class="gmail-hljs-keyword">for</span> <span class="gmail-hljs-title gmail-class_">asterisk</span>.service failed because a timeout was exceeded.  
See <span class="gmail-hljs-string">"systemctl status asterisk.service"</span> and <span class="gmail-hljs-string">"journalctl -xe"</span> <span class="gmail-hljs-keyword">for</span> <span class="gmail-hljs-title gmail-class_">details</span>.  
</code></div></div></pre></li><li><p><code>systemctl status asterisk</code> shows the service in an "activating" state for a while before timing out:</p><pre class="gmail-!overflow-visible"><div class="gmail-contain-inline-size gmail-rounded-md gmail-border-[0.5px] gmail-border-token-border-medium gmail-relative gmail-bg-token-sidebar-surface-primary gmail-dark:bg-gray-950"><div class="gmail-flex gmail-items-center gmail-text-token-text-secondary gmail-px-4 gmail-py-2 gmail-text-xs gmail-font-sans gmail-justify-between gmail-rounded-t-md gmail-h-9 gmail-bg-token-sidebar-surface-primary gmail-dark:bg-token-main-surface-secondary gmail-select-none"><span class="gmail-hljs-string" style="font-family:Arial,Helvetica,sans-serif">asterisk.service</span><span style="font-family:Arial,Helvetica,sans-serif"> </span><span class="gmail-hljs-bullet" style="font-family:Arial,Helvetica,sans-serif">-</span><span style="font-family:Arial,Helvetica,sans-serif"> </span><span class="gmail-hljs-string" style="font-family:Arial,Helvetica,sans-serif">Asterisk</span><span style="font-family:Arial,Helvetica,sans-serif"> </span><span class="gmail-hljs-string" style="font-family:Arial,Helvetica,sans-serif">PBX</span><span style="font-family:Arial,Helvetica,sans-serif"> </span><span class="gmail-hljs-string" style="font-family:Arial,Helvetica,sans-serif">and</span><span style="font-family:Arial,Helvetica,sans-serif"> </span><span class="gmail-hljs-string" style="font-family:Arial,Helvetica,sans-serif">telephony</span><span style="font-family:Arial,Helvetica,sans-serif"> </span><span class="gmail-hljs-string" style="font-family:Arial,Helvetica,sans-serif">daemon</span><span style="font-family:Arial,Helvetica,sans-serif">  </span></div><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"><code class="gmail-!whitespace-pre gmail-hljs gmail-language-yaml"> <span class="gmail-hljs-attr">Loaded:</span> <span class="gmail-hljs-string">loaded</span> <span class="gmail-hljs-string">(/etc/systemd/system/asterisk.service;</span> <span class="gmail-hljs-string">enabled;</span> <span class="gmail-hljs-attr">vendor preset:</span> <span class="gmail-hljs-string">disabled)</span>  
 <span class="gmail-hljs-attr">Active:</span> <span class="gmail-hljs-string">activating</span> <span class="gmail-hljs-string">(start)</span> <span class="gmail-hljs-string">since</span> <span class="gmail-hljs-string">Tue</span> <span class="gmail-hljs-number">2024-12-17 16:22:36 </span><span class="gmail-hljs-string">EET;</span> <span class="gmail-hljs-string">21s</span> <span class="gmail-hljs-string">ago</span>  
</code></div></div></pre></li><li><p>After a minute or so, the service fails with the following:</p><pre class="gmail-!overflow-visible"><div class="gmail-contain-inline-size gmail-rounded-md gmail-border-[0.5px] gmail-border-token-border-medium gmail-relative gmail-bg-token-sidebar-surface-primary gmail-dark:bg-gray-950"><div class="gmail-flex gmail-items-center gmail-text-token-text-secondary gmail-px-4 gmail-py-2 gmail-text-xs gmail-font-sans gmail-justify-between gmail-rounded-t-md gmail-h-9 gmail-bg-token-sidebar-surface-primary gmail-dark:bg-token-main-surface-secondary gmail-select-none"><span class="gmail-hljs-type" style="font-family:Arial,Helvetica,sans-serif">Dec</span><span style="font-family:Arial,Helvetica,sans-serif"> </span><span class="gmail-hljs-number" style="font-family:Arial,Helvetica,sans-serif">17</span><span style="font-family:Arial,Helvetica,sans-serif"> </span><span class="gmail-hljs-number" style="font-family:Arial,Helvetica,sans-serif">16</span><span style="font-family:Arial,Helvetica,sans-serif">:</span><span class="gmail-hljs-number" style="font-family:Arial,Helvetica,sans-serif">37</span><span style="font-family:Arial,Helvetica,sans-serif">:</span><span class="gmail-hljs-number" style="font-family:Arial,Helvetica,sans-serif">47</span><span style="font-family:Arial,Helvetica,sans-serif"> localhost</span><span style="font-family:Arial,Helvetica,sans-serif"> systemd[</span><span class="gmail-hljs-number" style="font-family:Arial,Helvetica,sans-serif">1</span><span style="font-family:Arial,Helvetica,sans-serif">]: Failed </span><span class="gmail-hljs-keyword" style="font-family:Arial,Helvetica,sans-serif">to</span><span style="font-family:Arial,Helvetica,sans-serif"> </span><span class="gmail-hljs-keyword" style="font-family:Arial,Helvetica,sans-serif">start</span><span style="font-family:Arial,Helvetica,sans-serif"> Asterisk PBX </span><span class="gmail-hljs-keyword" style="font-family:Arial,Helvetica,sans-serif">and</span><span style="font-family:Arial,Helvetica,sans-serif"> telephony daemon.  </span></div><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"><code class="gmail-!whitespace-pre gmail-hljs gmail-language-sql">The unit asterisk.service has entered the <span class="gmail-hljs-string">'failed'</span> state <span class="gmail-hljs-keyword">with</span> <span class="gmail-hljs-keyword">result</span> <span class="gmail-hljs-string">'timeout'</span>.  
</code></div></div></pre></li></ul><h3>What Has Been Tried:</h3><ol><li>Different versions of Asterisk have been tested — the issue persists.</li><li>Asterisk was run manually, and it starts fine outside of systemd.</li><li>Timeouts (<code>TimeoutStartSec</code>) were increased in the systemd unit file, but the service still doesn’t reach an "active (running)" state.</li></ol></div><div><br>Any help would be really appreciate. <br><br><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div><div><p dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">
Kind regards,</span></p><p dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span></p><p dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><b>Raúl Jimeno</b></span></p><p dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">IT Support Engineer</span></p><p dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><span style="font-family:arial,helvetica,sans-serif;font-size:small;white-space:normal">INVADE International Ltd</span><br></span></p>+44 33 3344 0784 (Office) <br>+44 117 3251309 (Direct)</div><div style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;background-color:rgb(255,255,255)"><a href="mailto:raul.jimeno@invade.net" style="color:rgb(17,85,204);font-family:Arial;font-size:13.3333px;white-space:pre-wrap" target="_blank">raul.jimeno@invade.net</a><br><a href="http://support.invade.net/" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px" target="_blank"><span style="font-size:10pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">http://www.invade.net</span></a><br><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><p dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Invade International Ltd</span></p><p dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Unit 6, Badminton Court, Station Road, Bristol </span><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">BS37 5HZ, United Kingdom</span></p></div></div><div style="background-color:rgb(255,255,255)"><span><div><font size="1">------------------------------</font><span style="font-size:x-small">------------------------</span><br></div></span></div></div><span style="font-size:x-small">Company Registration Number: 3660482</span><br><span style="font-size:x-small">Registered in England and Wales</span><br><span style="font-size:x-small">this email, and any attachment, is intended only for the attention of the addressee. Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return email. If you have received this email in error, please return it to the sender and highlight the error. We accept no legal liability for the content of the message. Any opinions or views presented are solely the responsibility of the author and do not necessarily represent those of InVADE. We cannot guarantee that this message has not been modified in transit, and this message should not be viewed as contractually binding. Although we have taken reasonable steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.<br></span>
</div></div></div></div></div></div></div></div>

<br>
<div><img src="https://www.invade.net/wp-content/uploads/2019/09/invade_primary_logo-trans_187x82.png" style="font-family:Arial,Helvetica,sans-serif;font-size:medium"><br></div><div><span><span style="border-collapse:collapse"><font><div style="font-family:Arial,Helvetica,sans-serif;font-size:medium"><font size="1" style="color:rgb(128,128,128);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"><font face="Arial, Helvetica, sans-serif"><font face="Arial"><br></font></font></font></div><div style="font-family:Arial,Helvetica,sans-serif;font-size:medium"><font size="1" style="color:rgb(128,128,128);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"><font face="Arial, Helvetica, sans-serif"><font face="Arial">Invade International </font>Limited<font face="Arial">, Unit 6, Badminton Court, Station Road, Bristol, </font></font></font><font face="Arial, Helvetica, sans-serif" size="1" style="color:rgb(128,128,128)">BS37 5HZ</font><span style="color:rgb(128,128,128);font-size:x-small">. Registered in England & Wales - Company number: 3660482</span></div><div style="font-family:Arial,Helvetica,sans-serif"><font face="Arial" size="1" color="#808080">This email, and any attachment, is intended only for the attention of the addressee. Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroy all copies and inform the sender by return email. If you have received this email in error, please return it to the sender and highlight the error. We accept no legal liability for the content of the message. Any opinions or views presented are solely the responsibility of the author and do not necessarily represent those of INVADE. We cannot guarantee that this message has not been modified in transit, and this message should not be viewed as contractually binding. Although we have taken reasonable steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.</font></div></font></span></span></div>