<div dir="ltr"><div>actually the hostname <b>hirakjyoti-HP-dx2480-MT-KL969AV </b>was already there in the /etc/hosts file :</div><div><br></div><div>127.0.1.1     hirakjyoti-HP-dx2480-MT-KL969AV</div><b></b></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 5 Jan 2021 at 05:37, Tony Curtis via discuss <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><br><div><br><blockquote type="cite"><div>On Jan 4, 2021, at 11:59 AM, Hirakjyoti Sarma via discuss <<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>> wrote:</div><br><div><div dir="ltr"><div dir="ltr"><br clear="all"><div><div dir="ltr"><div dir="ltr"><div>Dear all,</div><div>I get the following error while running LAMMPS on ubuntu <b>without an internet connection.</b></div><div><br></div><div><b>Invalid error code (-2) (error ring index 127 invalid)<br>Invalid error code (-2) (error ring index 127 invalid)<br>INTERNAL ERROR: invalid error code fffffffe (Ring Index out of range) in MPID_nem_tcp_init:373<br>Fatal error in PMPI_Init: Other MPI error, error stack:<br>MPIR_Init_thread(586)..............: <br>MPID_Init(224).....................: channel initialization failed<br>MPIDI_CH3_Init(105)................: <br>MPID_nem_init(324).................: <br>MPID_nem_tcp_init(175).............: <br>MPID_nem_tcp_get_business_card(401): <br>MPID_nem_tcp_init(373).............: gethostbyname failed, hirakjyoti-HP-dx2480-MT-KL969AV (errno 0)</b><i><b><br></b></i></div><div><b><br></b></div><div>But if the PC is  connected to internet LAMMPS successfully run. <b><br></b></div><div>How can i solve the problem?</div><div><br></div></div></div></div></div></div></div></blockquote><br></div><div>This looks like a local hostname resolution issue.  Maybe you could just add your hostname (presumably “<b>hirakjyoti-……”)</b> to the localhost entry in /etc/hosts and then when offline you’d resolve over loopback?  Assuming it’s a single machine.</div><div><br></div><div>tony</div><div><br></div></div>_______________________________________________<br>
discuss mailing list     <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</blockquote></div>