Hello again,
I hope I can continue the conversation because I finally managed to do what you asked me.
I downloaded the files and tested them:
This is the result for mongo command:
/mongodb-linux-x86_64-ubuntu1604-4.4.6/bin $ ./mongo “mongodb+srv://cluster0.fklgt.mongodb.net/DATABASENAME” --username USERNAME
MongoDB shell version v4.4.6
Enter password:
connecting to: mongodb://cluster0-shard-00-00.fklgt.mongodb.net:27017,cluster0-shard-00-01.fklgt.mongodb. net:27017,cluster0-shard-00-02.fklgt .mongodb.net:27017/ %3Cdbname%3E?authSource=admin&compressors=disabled&gssapiServiceName=mongodb&replicaSet=atlas-zuxkh7-shard-0&ssl=true
{“t”:{“$date”:“2021-06-25T12:56:36.945Z”},“s”:“E”, “c”:“NETWORK”, “id”:23256, “ctx”:“ReplicaSetMonitor-TaskExecutor”,“msg”:“SSL peer certificate validation failed”,“attr”:{“error”:“SSL peer certificate validation failed: unable to get local issuer certificate”}}
{“t”:{“$date”:“2021-06-25T12:56:36.945Z”},“s”:“E”, “c”:“NETWORK”, “id”:23256, “ctx”:“ReplicaSetMonitor-TaskExecutor”,“msg”:“SSL peer certificate validation failed”,“attr”:{“error”:“SSL peer certificate validation failed: unable to get local issuer certificate”}}
This is the result for the mongodump command:
/mongodb-database-tools-ubuntu1604-x86_64-100.3.1/bin $ ./mongodump --uri mongodb+srv://USER_NAME@cluster0.fklgt.mongodb.net/DATABASE_NAME --archive=“mongodump-db” --forceTableScan
2021-06-25T13:52:54.986+0100 Failed: can’t create session: could not connect to server: server selection error: server selection timeout, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: cluster0-shard-00-02.fklgt. mongodb .net:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : x509: certificate signed by unknown authority }, { Addr: cluster0-shard-00-00.fklgt. mongodb .net:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : x509: certificate signed by unknown authority }, { Addr: cluster0-shard-00-01.fklgt. mongodb .net:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : dial tcp: i/o timeout }, ] }
I find it strange that my colleague managed to the dump and connect and I didn’t even with the latest versions of the commands.