Connection Failure Message: network error while attempting to run command 'isMaster'
Symptom
An error is reported when you run the following command to connect to a DDS DB instance:
./mongo --host 192.168.168.182 --port 8635 -u rwuser -p xxxxxxxxxx --authenticationDatabase admin
Possible Cause
This preceding command is used to connect to a DB instance in non-SSL mode. If the SSL connection is enabled, an error is reported when you run this command.
Fault Locating
On the DDS console, click the instance name. On the Basic Information page, check whether SSL is enabled.
Solution
Method 1: Run the following command disable SSL and use an unencrypted connection to connect to the instance:
./mongo --host 192.168.168.182 --port 8635 -u rwuser -p xxxxxxxxxx --authenticationDatabase admin
Method 2: Connect to the instance using SSL.
You can click the instance name on the DDS console, click next to SSL on the Connections page, and download the SSL certificate.
./mongo --host 192.168.168.182 --port 8635 -u rwuser -p xxxxxxxxxx --authenticationDatabase admin --ssl --sslCAFile /root/ca.crt --sslAllowInvalidHostnames
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot