<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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="EN-IN" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Follow-up on the previous question, On Tracing the pid from INFO REPORT,<o:p></o:p></p>
<p class="MsoNormal">=INFO REPORT==== 20-Apr-2021::07:35:52.946312 ===<o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">{net_kernel,{'EXIT',<0.20724.1>,{error,closed}}}<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.67.0>) call net_kernel:handle_info({'EXIT',<8970.20724.1>,{error,closed}},{state, …<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.67.0>) call net_kernel:accept_exit(<8970.20724.1>,…<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Tracing the calls, observed that ssl handshake is failing with reason {error,closed}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.20724.1>) call ssl_connection:handshake({sslsocket,{gen_tcp,#Port<8970.1336>,tls_connection,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%"> [{session_id_tracker,<8970.23171.1>}]},<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%"> [<8970.23173.1>,<8970.23172.1>]},7000)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.20724.1>) returned from ssl_connection:handshake/2 -> {error,closed}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.20724.1>) returned from ssl_connection:handshake/7 -> {error,closed}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.20724.1>) returned from
<b>ssl:handshake/3 -> {error,closed}</b><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.20724.1>) call inet_tls_dist:trace({error,closed})<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.20724.1>) returned from inet_tls_dist:trace/1 -> {error,closed}<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">which then calls ‘gen_tcp:close(Socket)’ ….. ‘prim_inet:close(<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.20724.1>) call gen_tcp:close(#Port<8970.1336>)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.20724.1>) call prim_inet:close(#Port<8970.1336>)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.20724.1>) call prim_inet:getopts(#Port<8970.1336>,[linger])</span><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.20724.1>) returned from prim_inet:getopts/2 ->
<b>{error,einval}</b><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.20724.1>) returned from prim_inet:close/1 -> ok<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5597;mso-style-textfill-fill-color:#2F5597;mso-style-textfill-fill-alpha:100.0%">(<8970.20724.1>) returned from gen_tcp:close/1 -> ok<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m having trouble finding out why this is happening. Is {error, inval} an expected behaviour in this scenario and probable reason for ssl:handshake failure? OTP_VERSION is 23.1.5. Any suggestions would be helpful. Thanks in advance.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-IN">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-IN"> Vithya Shanmugam -X (vitshanm - SCARLET WIRELESS INDIA PRIVATE LIMITED at Cisco)
<br>
<b>Sent:</b> 01 April 2021 11:12<br>
<b>To:</b> erlang-questions@erlang.org<br>
<b>Cc:</b> Salil G K (sagk) <sagk@cisco.com>; Panduranga Rao Sadhu (pansadhu) <pansadhu@cisco.com><br>
<b>Subject:</b> net_kernel {error, closed}<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Hello,<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">I’m trying to understand what this INFO REPORT means,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">=INFO REPORT==== 1-Apr-2021::05:28:41.384237 ===<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">{net_kernel,{'EXIT',<0.11838.0>,{error,closed}}}<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">This happens in a cluster of nodes(cluster of 2 to 6 nodes) and OTP_VERSION 23. Is it saying there’s a connection issue between the local and remote node ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But, when we try writing data in one node, it gets replicated to the other node and no other issues(no node up and node down messages). It’s just that the INFO_REPORT is getting dumped in erlang.log and is getting piled
up for a long time every 5 minutes and there is no error in corresponding dev logs. And the synchronization between the nodes also seem to be fine...<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">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Vithya<o:p></o:p></span></p>
</div>
</body>
</html>