我正在尝试将我的 Mongodb 服务器迁移到 Azure Cosmos。我在 Azure 数据库迁移服务中创建了一个迁移服务,并尝试使用以下设置创建一个项目:
Source server name: my server
Server port: 27017
User Name: user
Password: password
我收到一个错误,似乎是连接错误。我认为根据我的设置,不应该有任何连接问题,但我认为错误更多的是由于缺少一些信息,也许是在迁移服务中?
错误跟踪始于如下问题:
Error type
Failed to connect, please check error details
Error Detail
The connection timed out. Possible reasons for this include
the address and/or port was not correct or the server is not running.
A timeout occured after 30000ms selecting a server using
CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector,
LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }.
Client view of cluster state is { ClusterId : "2", ConnectionMode : "Automatic",
Type : "Unknown", State : "Disconnected", Servers :
[{ ServerId:
"{ ClusterId : 2, EndPoint : "Unspecified/<my server>:27017" }",
EndPoint: "Unspecified/<my server>:27017"
我不明白这是怎么Unspecified
回事。我猜是我没有配置,但我不知道需要配置什么才能消除此错误。
我检查了发送到 Azure 的请求的网络流量,发现在请求中,/services/MigrationServiceMongo/projects/MigrationMongoTest/tasks/SqlConnect...
我们收到的输入内容中, 已dataSource
按应有的方式填充,但 却是空serverName
的。我想这也有关系。
有任何想法吗?