<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=iso-2022-jp">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 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";
mso-fareast-language:EN-US;}
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;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.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;}
--></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">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">i'm looking for help on debugging a systemd issue after upgrading our systems from RHEL 7.2 to 7.3 (systemd: 219-19.el7_2.9.ppc64 -> 219-30.el7_3.7.ppc64).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">We are using a custom socket unit which basically opens a tcp port and returns /bin/true to established connections.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">This unit provides an healthcheck/heartbeat mechanism used by our loadbalancer framework.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">For the last 1.5 years, this implementation worked flawless. Until now.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Here is our config:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/etc/systemd/system/commandsocket_57813@.service<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> [Unit]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Description=service for /bin/true ListenStream Port 57813 host present check<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> [Service]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ExecStart=/bin/true<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> StandardOutput=socket<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/etc/systemd/system/commandsocket_57813.socket<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> [Unit]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Description=Port 57813 socket for host present check<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> [Socket]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ListenStream=57813<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Accept=yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> [Install]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> WantedBy=sockets.target<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">---<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">journalctl:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:11 bscqs01.server.lan systemd[1]: Failed to start service for /bin/true ListenStream Port 57813 host present check.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:11 bscqs01.server.lan systemd[1]: Unit commandsocket_57813@65308-10.88.44.62:57813-10.88.44.27:51072.service entered failed state.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:11 bscqs01.server.lan systemd[1]: commandsocket_57813@65308-10.88.44.62:57813-10.88.44.27:51072.service failed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:11 bscqs01.server.lan systemd[1]: Starting service for /bin/true ListenStream Port 57813 host present check...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:16 bscqs01.server.lan systemd[1]: Cannot add dependency job for unit firewalld.service, ignoring: Unit is masked.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:16 bscqs01.server.lan systemd[1]: commandsocket_57813@65309-10.88.44.62:57813-10.88.44.27:51161.service failed to run 'start' task: Transport endpoint is not connected<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:16 bscqs01.server.lan systemd[1]: Failed to start service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:51161).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:16 bscqs01.server.lan systemd[1]: Unit commandsocket_57813@65309-10.88.44.62:57813-10.88.44.27:51161.service entered failed state.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:16 bscqs01.server.lan systemd[1]: commandsocket_57813@65309-10.88.44.62:57813-10.88.44.27:51161.service failed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:16 bscqs01.server.lan systemd[1]: Starting service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:51161)...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:26 bscqs01.server.lan systemd[1]: Cannot add dependency job for unit firewalld.service, ignoring: Unit is masked.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:26 bscqs01.server.lan systemd[1]: commandsocket_57813@65310-10.88.44.62:57813-10.88.44.27:51346.service failed to run 'start' task: Transport endpoint is not connected<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:26 bscqs01.server.lan systemd[1]: Failed to start service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:51346).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:26 bscqs01.server.lan systemd[1]: Unit commandsocket_57813@65310-10.88.44.62:57813-10.88.44.27:51346.service entered failed state.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:26 bscqs01.server.lan systemd[1]: commandsocket_57813@65310-10.88.44.62:57813-10.88.44.27:51346.service failed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:26 bscqs01.server.lan systemd[1]: Starting service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:51346)...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:31 bscqs01.server.lan systemd[1]: Cannot add dependency job for unit firewalld.service, ignoring: Unit is masked.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Apr 24 03:38:31 bscqs01.server.lan systemd[1]: commandsocket_57813@65311-10.88.44.62:57813-10.88.44.27:51435.service failed to run 'start' task: Transport endpoint is not connected<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">--<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">systemctl start commandsocket_57813.socket<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">systemctl status commandsocket_57813.socket<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">● commandsocket_57813.socket - Port 57813 socket for host present check<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Loaded: loaded (/etc/systemd/system/commandsocket_57813.socket; enabled; vendor preset: disabled)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Active: active (listening) since Fri 2017-05-05 08:48:48 CEST; 5s ago<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Listen: [::]:57813 (Stream)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Accepted: 65359; Connected: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">May 05 08:48:48 bscqs01.server.lan systemd[1]: Listening on Port 57813 socket for host present check.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">May 05 08:48:48 bscqs01.server.lan systemd[1]: Starting Port 57813 socket for host present check.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">systemctl status commandsocket_57813.socket<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">● commandsocket_57813.socket - Port 57813 socket for host present check<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Loaded: loaded (/etc/systemd/system/commandsocket_57813.socket; enabled; vendor preset: disabled)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Active: failed (Result: resources) since Fri 2017-05-05 08:48:54 CEST; 7s ago<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Listen: [::]:57813 (Stream)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Accepted: 65359; Connected: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">May 05 08:48:48 bscqs01.server.lan systemd[1]: Listening on Port 57813 socket for host present check.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">May 05 08:48:48 bscqs01.server.lan systemd[1]: Starting Port 57813 socket for host present check.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">May 05 08:48:54 bscqs01.server.lan systemd[1]: commandsocket_57813.socket failed to queue service startup job (Maybe the service file is missing or not a template unit?): Argument list too long<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">May 05 08:48:54 bscqs01.server.lan systemd[1]: Unit commandsocket_57813.socket entered failed state.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">--<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">systemctl |grep commandsocket_57813:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[...]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">● commandsocket_57813@9991-10.88.44.62:57813-10.88.44.27:54933.service loaded failed failed service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:54933)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">● commandsocket_57813@9992-10.88.44.62:57813-10.88.44.27:55028.service loaded failed failed service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:55028)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">● commandsocket_57813@9993-10.88.44.62:57813-10.88.44.27:55119.service loaded failed failed service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:55119)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">● commandsocket_57813@9994-10.88.44.62:57813-10.88.44.27:55207.service loaded failed failed service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:55207)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">● commandsocket_57813@9995-10.88.44.62:57813-10.88.44.27:55302.service loaded failed failed service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:55302)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">● commandsocket_57813@9996-10.88.44.62:57813-10.88.44.27:55393.service loaded failed failed service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:55393)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">● commandsocket_57813@9997-10.88.44.62:57813-10.88.44.27:55481.service loaded failed failed service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:55481)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">● commandsocket_57813@9998-10.88.44.62:57813-10.88.44.27:55576.service loaded failed failed service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:55576)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">● commandsocket_57813@9999-10.88.44.62:57813-10.88.44.27:55667.service loaded failed failed service for /bin/true ListenStream Port 57813 host present check (10.88.44.27:55667)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> system-commandsocket_57813.slice loaded active active system-commandsocket_57813.slice<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">● commandsocket_57813.socket loaded failed failed Port 57813 socket for host present check<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">systemctl |grep commandsocket_57813 | wc -l:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">65361<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Port number limit?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">---<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any idea on how to fix this problem?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Do you think that our current unit implementation is a reasonable solution for providing healthchecks? Before systemd, we were using xinetd for that.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is this large number of additional entries (commandsocket_57813@9991-10.88.44.62:57813-10.88.44.27:54933.service etc.) normal? I have not seen them before the upgrade.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Robert<o:p></o:p></span></p>
</div>
</body>
</html>