actually the hostname hirakjyoti-HP-dx2480-MT-KL969AV was already there in the /etc/hosts file :

127.0.1.1     hirakjyoti-HP-dx2480-MT-KL969AV

On Tue, 5 Jan 2021 at 05:37, Tony Curtis via discuss <discuss@mpich.org> wrote:


On Jan 4, 2021, at 11:59 AM, Hirakjyoti Sarma via discuss <discuss@mpich.org> wrote:


Dear all,
I get the following error while running LAMMPS on ubuntu without an internet connection.

Invalid error code (-2) (error ring index 127 invalid)
Invalid error code (-2) (error ring index 127 invalid)
INTERNAL ERROR: invalid error code fffffffe (Ring Index out of range) in MPID_nem_tcp_init:373
Fatal error in PMPI_Init: Other MPI error, error stack:
MPIR_Init_thread(586)..............: 
MPID_Init(224).....................: channel initialization failed
MPIDI_CH3_Init(105)................: 
MPID_nem_init(324).................: 
MPID_nem_tcp_init(175).............: 
MPID_nem_tcp_get_business_card(401): 
MPID_nem_tcp_init(373).............: gethostbyname failed, hirakjyoti-HP-dx2480-MT-KL969AV (errno 0)


But if the PC is  connected to internet LAMMPS successfully run. 
How can i solve the problem?


This looks like a local hostname resolution issue.  Maybe you could just add your hostname (presumably “hirakjyoti-……”) to the localhost entry in /etc/hosts and then when offline you’d resolve over loopback?  Assuming it’s a single machine.

tony

_______________________________________________
discuss mailing list     discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss