Azure 遷移專案到 CosmosDB 引發錯誤“未指定”

Azure 遷移專案到 CosmosDB 引發錯誤“未指定”

我正在嘗試將 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為空。我想這也是相關的。

有任何想法嗎?

相關內容