Remove/readd node lab validated successfully but getting error

The remove and readd a node lab validated successfully, but I am getting the following error on my terminal every few seconds. Does anyone know why? Thanks.

2019-06-28T15:03:05.086+0000 W NETWORK [ReplicaSetMonitor-TaskExecutor-0] Failed to connect to, in(checking socket for error after poll), reason: Connection refused

Please check this
vagrant@m103:/var/mongodb/db$ ping localhost
PING localhost ( 56(84) bytes of data.
64 bytes from localhost ( icmp_seq=1 ttl=64 time=0.167 ms is not correct
You have to modify your /etc/hosts

1 Like

Changing /etc/hosts corrected the issue. Thank you Ramachandra.