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 127.0.1.1:27003, in(checking socket for error after poll), reason: Connection refused

Please check this
vagrant@m103:/var/mongodb/db$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.167 ms

127.0.1.1 is not correct
You have to modify your /etc/hosts

1 Like

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