<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
h3
{mso-style-priority:9;
mso-style-link:"Überschrift 3 Zchn";
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:13.5pt;
font-family:"Calibri",sans-serif;
font-weight:bold;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.berschrift3Zchn
{mso-style-name:"Überschrift 3 Zchn";
mso-style-priority:9;
mso-style-link:"Überschrift 3";
font-family:"Calibri Light",sans-serif;
color:#1F3763;
mso-fareast-language:DE;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:Consolas;
mso-fareast-language:DE;}
span.gmail-hljs-keyword
{mso-style-name:gmail-hljs-keyword;}
span.gmail-hljs-title
{mso-style-name:gmail-hljs-title;}
span.gmail-hljs-string
{mso-style-name:gmail-hljs-string;}
span.gmail-hljs-bullet
{mso-style-name:gmail-hljs-bullet;}
span.gmail-hljs-attr
{mso-style-name:gmail-hljs-attr;}
span.gmail-hljs-number
{mso-style-name:gmail-hljs-number;}
span.gmail-hljs-type
{mso-style-name:gmail-hljs-type;}
span.E-MailFormatvorlage30
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:356198056;
mso-list-template-ids:1384004918;}
@list l1
{mso-list-id:1103651757;
mso-list-template-ids:2056812314;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";}
@list l1:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l1:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l1:level5
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l1:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l1:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l1:level8
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l1:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-US">Hi!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-US">I guess you should “systenmctl cat” the service file in question (my glass orb is in maintenance
</span><span lang="EN-US" style="font-family:"Segoe UI Emoji",sans-serif;color:#1F497D;mso-fareast-language:EN-US">😉</span><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-US">).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-US">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-US">Ulrich Windl<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> systemd-devel <systemd-devel-bounces@lists.freedesktop.org>
<b>On Behalf Of </b>Raul Jimeno<br>
<b>Sent:</b> Tuesday, December 17, 2024 3:58 PM<br>
<b>To:</b> systemd-devel@lists.freedesktop.org<br>
<b>Subject:</b> [EXT] [systemd-devel] The unit asterisk.service has entered the 'failed' state with result 'timeout'<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Hi all, <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Sorry, I am new on this list and this is my first post requesting some help troubleshooting an issue with systemd. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<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 <o:p></o:p></p>
<h3>Issue Details:<o:p></o:p></h3>
<ul type="disc">
<li style="mso-list:l1 level1 lfo1">When starting Asterisk with <code><span style="font-size:10.0pt">systemctl</span></code>, it fails due to a timeout:<o:p></o:p></li></ul>
<div>
<div>
<pre style="margin-left:36.0pt"><span style="font-family:"Arial",sans-serif">sudo systemctl start asterisk </span><o:p></o:p></pre>
</div>
<div>
<pre style="margin-left:36.0pt"><code>Job </code><span class="gmail-hljs-keyword">for</span><code> </code><span class="gmail-hljs-title">asterisk</span><code>.service failed because a timeout was exceeded. <o:p></o:p></code></pre>
<pre style="margin-left:36.0pt"><code>See </code><span class="gmail-hljs-string">"systemctl status asterisk.service"</span><code> and </code><span class="gmail-hljs-string">"journalctl -xe"</span><code> </code><span class="gmail-hljs-keyword">for</span><code> </code><span class="gmail-hljs-title">details</span><code>. <o:p></o:p></code></pre>
</div>
</div>
<ul type="disc">
<li style="mso-list:l1 level1 lfo1"><code><span style="font-size:10.0pt">systemctl status asterisk</span></code> shows the service in an "activating" state for a while before timing out:<o:p></o:p></li></ul>
<div>
<div>
<pre style="margin-left:36.0pt"><span class="gmail-hljs-string"><span style="font-family:"Arial",sans-serif">asterisk.service</span></span><span style="font-family:"Arial",sans-serif"> <span class="gmail-hljs-bullet">-</span> <span class="gmail-hljs-string">Asterisk</span> <span class="gmail-hljs-string">PBX</span> <span class="gmail-hljs-string">and</span> <span class="gmail-hljs-string">telephony</span> <span class="gmail-hljs-string">daemon</span> </span><o:p></o:p></pre>
</div>
<div>
<pre style="margin-left:36.0pt"><code> </code><span class="gmail-hljs-attr">Loaded:</span><code> </code><span class="gmail-hljs-string">loaded</span><code> </code><span class="gmail-hljs-string">(/etc/systemd/system/asterisk.service;</span><code> </code><span class="gmail-hljs-string">enabled;</span><code> </code><span class="gmail-hljs-attr">vendor preset:</span><code> </code><span class="gmail-hljs-string">disabled)</span><code> <o:p></o:p></code></pre>
<pre style="margin-left:36.0pt"><code> </code><span class="gmail-hljs-attr">Active:</span><code> </code><span class="gmail-hljs-string">activating</span><code> </code><span class="gmail-hljs-string">(start)</span><code> </code><span class="gmail-hljs-string">since</span><code> </code><span class="gmail-hljs-string">Tue</span><code> </code><span class="gmail-hljs-number">2024-12-17 16:22:36 </span><span class="gmail-hljs-string">EET;</span><code> </code><span class="gmail-hljs-string">21s</span><code> </code><span class="gmail-hljs-string">ago</span><code> <o:p></o:p></code></pre>
</div>
</div>
<ul type="disc">
<li style="mso-list:l1 level1 lfo1">After a minute or so, the service fails with the following:<o:p></o:p></li></ul>
<div>
<div>
<pre style="margin-left:36.0pt"><span class="gmail-hljs-type"><span style="font-family:"Arial",sans-serif">Dec</span></span><span style="font-family:"Arial",sans-serif"> <span class="gmail-hljs-number">17</span> <span class="gmail-hljs-number">16</span>:<span class="gmail-hljs-number">37</span>:<span class="gmail-hljs-number">47</span> localhost systemd[<span class="gmail-hljs-number">1</span>]: Failed <span class="gmail-hljs-keyword">to</span> <span class="gmail-hljs-keyword">start</span> Asterisk PBX <span class="gmail-hljs-keyword">and</span> telephony daemon. </span><o:p></o:p></pre>
</div>
<div>
<pre style="margin-left:36.0pt"><code>The unit asterisk.service has entered the </code><span class="gmail-hljs-string">'failed'</span><code> state </code><span class="gmail-hljs-keyword">with</span><code> </code><span class="gmail-hljs-keyword">result</span><code> </code><span class="gmail-hljs-string">'timeout'</span><code>. <o:p></o:p></code></pre>
</div>
</div>
<h3>What Has Been Tried:<o:p></o:p></h3>
<ol start="1" type="1">
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo2">
Different versions of Asterisk have been tested — the issue persists.<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo2">
Asterisk was run manually, and it starts fine outside of systemd.<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo2">
Timeouts (<code><span style="font-size:10.0pt">TimeoutStartSec</span></code>) were increased in the systemd unit file, but the service still doesn’t reach an "active (running)" state.<o:p></o:p></li></ol>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Any help would be really appreciate. <br>
<br>
<o:p></o:p></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p style="margin:0cm;margin-bottom:.0001pt;background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Kind regards,</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#222222"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#222222"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Raúl Jimeno</span></b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#222222"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">IT Support Engineer</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#222222"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black">INVADE International Ltd</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#222222"><o:p></o:p></span></p>
<p class="MsoNormal">+44 33 3344 0784 (Office) <br>
+44 117 3251309 (Direct)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222"><a href="mailto:raul.jimeno@invade.net" target="_blank"><span style="font-size:10.0pt;color:#1155CC">raul.jimeno@invade.net</span></a><br>
<a href="http://support.invade.net/" target="_blank"><span style="font-size:10.0pt;color:#1155CC">http://www.invade.net</span></a><o:p></o:p></span></p>
</div>
<div>
<p style="margin:0cm;margin-bottom:.0001pt;background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Invade International Ltd</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#222222"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Unit 6, Badminton Court, Station Road, Bristol
<br>
BS37 5HZ, United Kingdom</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#222222"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:7.5pt">------------------------------</span><span style="font-size:10.0pt">------------------------</span><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt">Company Registration Number: 3660482</span><br>
<span style="font-size:10.0pt">Registered in England and Wales</span><br>
<span style="font-size:10.0pt">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.</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="border:solid windowtext 1.0pt;padding:0cm"><img border="0" width="100" height="100" style="width:1.0416in;height:1.0416in" id="_x0000_i1025" src="cid:~WRD000.jpg" alt="Das Bild wurde vom Absender entfernt."></span><o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray">Invade International Limited, Unit 6, Badminton Court, Station Road, Bristol, BS37 5HZ</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray">.
Registered in England & Wales - Company number: 3660482</span><span style="font-size:13.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray">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.</span><span style="font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>