My Compass for macOS has been running for days and when I just got an update prompt I let it install its update. The first time around the icons in the app were all just squares as if an icon font was missing. It asked me again to install an update, which I did. It didn’t automatically restart, by the way. I started it manually, I can see I am now on version 1.24.1, but I can no longer connect to my MongoDB server running on a different computer as Docker container on the local network. My Node.js app running on my Mac can connect to it without issues, only Compass is struggling.
When I click the “connect” button, it shows the green loading bar at the top and after a few seconds it displays a red error box: getaddrinfo ENOTFOUND 1ec7f415e93f
My connection string: mongodb://10.xxx.xxx.xxx:27017/?readPreference=primary&appname=MongoDB%20Compass&ssl=false
When you initialize the replica set with the default settings, because you are inside docker, the replica set member uses the docker host name, which is unreachable from outside docker, and the latest version of the node driver that Compass uses doesn’t like that.
To work around that, you can initialize the replica set like this: