【发布时间】:2017-11-21 19:04:06
【问题描述】:
我已经在 Azure 上部署了带有副本集的 bitnami MongoDB,但我没有进行任何更改,但是当我尝试使用连接字符串连接 MongoDB 时,我收到类似 `
的错误Connection failed.
SERVER [xyz.southeastasia.cloudapp.azure.com:27017] (Type: UNKNOWN)
|_/ Connection error (MongoSocketReadTimeoutException): Timeout while receiving message
|____/ I/O error: Read timed out
Details:
Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=xyz.southeastasia.cloudapp.azure.com:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketReadTimeoutException: Timeout while receiving message}, caused by {java.net.SocketTimeoutException: Read timed out}}]
我在 azure 上运行带有副本集的 bitnami mongodb,它是一个月前创建的,那时我还没有遇到这个问题。
【问题讨论】: