【问题标题】:Cosmos DB Emulator not workingCosmos DB 模拟器不工作
【发布时间】:2018-06-11 03:58:28
【问题描述】:

在我的本地 win10 电脑上一切正常,但我在我们的服务器 2016 开发盒上安装/运行 Cosmos DB 模拟器时遇到问题。 探险者说:“恭喜!您的 DocumentDB 模拟器正在运行。”而不是“恭喜!你的 Azure Cosmos DB 模拟器正在运行。” 此外,创建新集合、文档、设置等的选项都不见了,我只是得到一个空的资源管理器窗口。

我正在使用最新的“Azure Cosmos DB.Emulator.msi”并以管理员身份安装

【问题讨论】:

  • 你收到错误了吗?
  • 我可以看到的资源管理器或 Windows 事件查看器中没有错误
  • 您设置帐户了吗?
  • 对于模拟器?
  • 是创建文档等

标签: azure azure-cosmosdb


【解决方案1】:

Andrew 和我一起工作并通过电子邮件解决了这个问题。 Andrew 能够从

下载压缩的数据浏览器更新

并将其提取到

  • $env:ProgramFiles\Azure Cosmos DB Emulator\Packages\DataExplorer

诊断

在启动时,模拟器会发出下载和更新数据浏览器的请求。此请求可能会因任何请求失败的所有相同原因而失败。在这种情况下,我们发现 Emulator 的数据浏览器更新程序试图使用 TLS1.2 以外的东西;在 Andrews Windows Server 机器上启用的唯一 TLS 版本。

更新程序是一个 .NET Framework 应用程序,因此依赖于系统上安装的 .NET Framework 库。由于系统上安装了 .NET Framework 版本,我们怀疑但未确认更新程序无法协商到 TLS1.2。

通过手动运行更新程序,Andrew 看到它的更新请求失败并出现以下异常:

System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
   at System.Net.HttpWebRequest.GetResponse()
   at DocumentDB.DataExplorerUpdater.Program.GetRemoteMD5()

手动运行数据浏览器更新程序

要自行诊断数据浏览器更新程序选项,请发出以下 PowerShell 命令以手动运行数据浏览器更新程序:

Get-ChildItem "$env:ProgramFiles\Azure Cosmos DB Emulator\Packages\DataExplorer" -Include DataExplorer.hash, installation_id.txt -Recurse | Remove-Item
Set-Location "$env:ProgramFiles\Azure Cosmos DB Emulator\Packages\DataExplorerUpdater\DataExplorerUpdater.Code"
.\DocumentDB.DataExplorerUpdater.exe

作为备用,您可以从以下位置下载当前数据浏览器更新:

然后解压到:

  • $env:ProgramFiles\Azure Cosmos DB Emulator\Packages\DataExplorer

【讨论】:

    猜你喜欢
    • 2020-08-06
    • 2018-11-13
    • 1970-01-01
    • 2020-05-23
    • 1970-01-01
    • 1970-01-01
    • 2022-10-05
    • 1970-01-01
    • 2018-05-28
    相关资源
    最近更新 更多