Hi,
Im getting below errors in mongodb pod
kubectl logs APPLICATION-NAME
ERROR [ExceptionHandler] Authentication failed.
MongoServerError: Authentication failed.
ERROR [ExceptionHandler] Received authentication for mechanism SCRAM-SHA-1 which is not enabled
MongoServerError: Received authentication for mechanism SCRAM-SHA-1 which is not enable
Using this Command
mongodump --uri="mongodb://new-users:xxxxxxx@perfai-mongodb-0.perfai-mongodb-svc.default.svc.cluster.local:27017,perfai-mongodb-1.perfai-mongodb-svc.default.svc.cluster.local:27017,perfai-mongodb-2.perfai-mongodb-svc.default.svc.cluster.local:27017/webapp_test?replicaSet=perfai-mongodb&ssl=false"
OR
mongodump --uri=mongodb+srv://new-user:xxxxxx@perfai-mongodb-svc.default.svc.cluster.local/admin?replicaSet=perfai-mongodb&ssl=false
```
when i execute above command i got below error for which im unable to downlaod data from mongodump data
2025-01-01T12:23:08.884+0000 WARNING: On some systems, a password provided directly in a connection string or using --uri may be visible to system status programs such as `ps` that may be invoked by other users. Consider omitting the password to provide it via stdin, or using the --config option to specify a configuration file with the password.
2025-01-01T12:23:38.885+0000 Failed: can't create session: failed to connect to mongodb://new-users:xxxxxx@perfai-mongodb-0.perfai-mongodb-svc.default.svc.cluster.local:27017,perfai-mongodb-1.perfai-mongodb-svc.default.svc.cluster.local:27017,perfai-mongodb-2.perfai-mongodb-svc.default.svc.cluster.local:27017/webapp_test?replicaSet=perfai-mongodb&ssl=false: server selection error: server selection timeout, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: perfai-mongodb-0.perfai-mongodb-svc.default.svc.cluster.local:27017, Type: Unknown, Last error: dial tcp: lookup perfai-mongodb-0.perfai-mongodb-svc.default.svc.cluster.local: Temporary failure in name resolution }, { Addr: perfai-mongodb-1.perfai-mongodb-svc.default.svc.cluster.local:27017, Type: Unknown, Last error: dial tcp: lookup perfai-mongodb-1.perfai-mongodb-svc.default.svc.cluster.local: Temporary failure in name resolution }, { Addr: perfai-mongodb-2.perfai-mongodb-svc.default.svc.cluster.local:27017, Type: Unknown, Last error: dial tcp: lookup perfai-mongodb-2.perfai-mongodb-svc.default.svc.cluster.local: Temporary failure in name resolution }, ] }
please tell me how to achieve it or solve it