<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 4, 2021, at 11:59 AM, Hirakjyoti Sarma via discuss <<a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><br clear="all" class=""><div class=""><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><div class="">Dear all,</div><div class="">I get the following error while running LAMMPS on ubuntu <b class="">without an internet connection.</b></div><div class=""><br class=""></div><div class=""><b class="">Invalid error code (-2) (error ring index 127 invalid)<br class="">Invalid error code (-2) (error ring index 127 invalid)<br class="">INTERNAL ERROR: invalid error code fffffffe (Ring Index out of range) in MPID_nem_tcp_init:373<br class="">Fatal error in PMPI_Init: Other MPI error, error stack:<br class="">MPIR_Init_thread(586)..............: <br class="">MPID_Init(224).....................: channel initialization failed<br class="">MPIDI_CH3_Init(105)................: <br class="">MPID_nem_init(324).................: <br class="">MPID_nem_tcp_init(175).............: <br class="">MPID_nem_tcp_get_business_card(401): <br class="">MPID_nem_tcp_init(373).............: gethostbyname failed, hirakjyoti-HP-dx2480-MT-KL969AV (errno 0)</b><i class=""><b class=""><br class=""></b></i></div><div class=""><b class=""><br class=""></b></div><div class="">But if the PC is connected to internet LAMMPS successfully run. <b class=""><br class=""></b></div><div class="">How can i solve the problem?</div><div class=""><br class=""></div></div></div></div></div></div></div></blockquote><br class=""></div><div>This looks like a local hostname resolution issue. Maybe you could just add your hostname (presumably “<b class="">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 class=""></div><div>tony</div><div><br class=""></div></body></html>