<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>You'd be surprised how much of Windows networking breaks if you choose to disable ipv6. Microsoft's official statement on the issue:</p>
<p><br>
</p>
<p><span>Important Internet Protocol version 6 (IPv6) is a mandatory part of Windows Vista and later versions of Windows. We do not recommend that you disable IPv6 or its components</span><br>
</p>
<div><br>
I don't know if it's related to your issue but I'm bringing it up because I've seen it be related to all manner of otherwise unexplainable issues.
</div>
<div><br>
</div>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> erlang-questions-bounces@erlang.org <erlang-questions-bounces@erlang.org> on behalf of Pheasant, David T. <dpheasant@geodecisions.com><br>
<b>Sent:</b> Wednesday, 11 January 2017 3:47 AM<br>
<b>To:</b> erlang-questions@erlang.org<br>
<b>Subject:</b> [erlang-questions] Erlang crashes when using -name</font>
<div> </div>
</div>
<div>
<div>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
Hello everyone,</p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
 </p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
I’m having a very weird issue with erlang that I’m hoping you all may be able to shed some light on. Long story short, we’re using a 3<sup>rd</sup> party product that in turn uses RabbitMQ, which as we all know, uses Erlang. RabbitMQ will not start and I’ve
 tracked the issue down to the point where Erlang will start when a short node name is used (-sname rabbit@%computername%), but will not start with a long node name (-name
<a style="color: rgb(5, 99, 193); text-decoration: underline;" href="mailto:rabbit@%25computername%25.domain.com">
rabbit@%computername%.domain.com</a>). I’ve tested forward and reverse lookups of the FQDN via nslookup and the correct address is returned in all cases. I’ve also put the FQDN and hostname in the hosts file, which did not change the behavior.</p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
 </p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
When using the long name, the erl.exe process dies immediately and does not print any error messages to the console. When it does die, Windows runs WERFault.exe, shows the familiar “erl.exe has stopped working” message, and creates the following entry in the
 event log:</p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
 </p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif">Faulting application name: erl.exe, version: 0.0.0.0, time stamp: 0x52e15856</span></p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif">Faulting module name: MSVCR100.dll, version: 10.0.40219.1, time stamp: 0x4d5f034a</span></p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif">Exception code: 0xc0000005</span></p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif">Fault offset: 0x000000000003c120</span></p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif">Faulting process id: 0x1344</span></p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif">Faulting application start time: 0x01d26b5c79195ddd</span></p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif">Faulting application path: C:\Program Files\ArcGIS\Server\framework\runtime\rabbitmq\erlang\bin\erl.exe</span></p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif">Faulting module path: C:\Windows\SYSTEM32\MSVCR100.dll</span></p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif">Report Id: b6d11c0f-d74f-11e6-80e1-00505607156a</span></p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif">Faulting package full name:
</span></p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
 </p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
Other pertinent information:</p>
<p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span>Operating system is Windows Server 2012</p>
<p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span>Erlang version is 5.10.4</p>
<p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span>Host is a virtual server (vmware)</p>
<p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span>Host was migrated from on-prem to IaaS service, during which MAC address changed</p>
<p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span>IPv6 is disabled on the network adapter</p>
<p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span>Separate/isolated install of erlang 5.10.4 exhibits same behavior, so this ‘feels’ like a hardware/OS issue and not software configuration</p>
<p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span>When running EPMD in debug mode and using a short name, I can see erl.exe register. When using a long name, it appears that erl.exe does not attempt to register (or fails).</p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
 </p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
So, my questions:</p>
<p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span>Has anyone seen this before?</p>
<p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span>If not, what differs in the startup process of erl.exe when a short name is used vs. a long name?</p>
<p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span>Could a change in MAC address have any effect on this?</p>
<p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; font-family: "Calibri",sans-serif; font-size: 11pt;">
<span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span>What (if any) checks does erlang do when started with a long name vs short name (DNS wise)?</p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
 </p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
 </p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
Thanks in advance for all of your help,</p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
 </p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
-David<span style="font-size:8.0pt; font-family:"Segoe UI",sans-serif; color:gray"></span></p>
<p style="margin: 0in 0in 0pt; font-family: "Calibri",sans-serif; font-size: 11pt;">
 </p>
</div>
</div>
</div>
</div>
</body>
</html>