Mongomirror cluster to cluster migration does not work

I was supposed to sync two clusters in MongoAtlas with mongomirror tools with following syntax. Unfortunately, it said source cluster is not able to connect even I checked connectivity and it was working.

./bin/mongomirror --host "mydb/" \
   --ssl \
   --username "admin" \
   --password "password" \
   --authenticationDatabase "mydb" \
   --destination "mydb/" \
   --destinationUsername "admin" \
   --destinationPassword "password"

Error initializing mongomirror: could not initialize source connection: could not connect to server: server selection error: server selection timeout, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr:, Type: Unknown, Last error: connection() error occured during connection handshake: dial tcp: lookup No address associated with hostname }, ] }

Are you trying to sync two Atlas clusters ? or are you trying to migrate a self-hosted MongoDB instance to Atlas?

As you stated it looks like a connectivity issue. Make sure your IP ports are open, if in atlas you can set the network open to (open to the world) just to see if that is the issue, it is not a best practice to keep them this way.

Can you connect to your source from shell?
Try by adding all nodes after replset/n1,n2,n3 in your command