【问题标题】:documentdb emulator gatewayservice crashing on startupdocumentdb 模拟器网关服务在启动时崩溃
【发布时间】:2017-02-02 00:55:36
【问题描述】:

我正在寻找有关 documentdb 的知识并安装了模拟器似乎没有错误。但是,在启动时我的服务崩溃了:

网关服务启动

从标题来看,我猜这是对模拟器的一项重要服务。有趣的是,模拟器似乎继​​续加载并尝试打开: https://localhost:8081/_explorer/index.html

没有成功。

使用命令提示符我尝试手动启动网关服务,结果如下:

C:\Program Files\DocumentDB Emulator\Packages\GatewayService\GatewayService.Code>documentdb.gatewayservice.exe /?

未处理的异常:System.Runtime.InteropServices.COMException:注册表值无效(来自 HRESULT 的异常:0x80040153 (REGDB_E_INVALIDVALUE)) 在 System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath() 在 System.AppDomain.SetupFusionStore(AppDomainSetup 信息,AppDomainSetup oldInfo) 在 System.AppDomain.SetupDomain(Boolean allowRedirects, String path, String configFile, String[] propertyNames, String[] propertyValues)

C:\Program Files\DocumentDB Emulator\Packages\GatewayService\GatewayService.Code>documentdb.startupentrypoint.exe /?

未处理的异常:System.Runtime.InteropServices.COMException:注册表值无效(来自 HRESULT 的异常:0x80040153 (REGDB_E_INVALIDVALUE)) 在 System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath() 在 System.AppDomain.SetupFusionStore(AppDomainSetup 信息,AppDomainSetup oldInfo) 在 System.AppDomain.SetupDomain(Boolean allowRedirects, String path, String configFile, String[] propertyNames, String[] propertyValues)

C:\Program Files\DocumentDB Emulator\Packages\GatewayService\GatewayService.Code>

网关服务是否相关?知道如何解决吗?

快速编辑: 我已按照此处列出的说明进行操作: https://docs.microsoft.com/en-us/azure/documentdb/documentdb-nosql-local-emulator#troubleshooting

没有生成要通过电子邮件发送的 etl 文件。

提前致谢

【问题讨论】:

    标签: azure-cosmosdb


    【解决方案1】:

    我只是用LODCTR /R 修复了这个问题来修复性能计数器。

    C:\WINDOWS\system32>LODCTR /R
    
    Error: Unable to rebuild performance counter setting from system backup store, error code is 2
    C:\WINDOWS\system32>LODCTR /R
    
    Info: Successfully rebuilt performance counter setting from system backup store
    C:\WINDOWS\system32>
    

    我只需要运行两次即可成功。

    【讨论】:

      【解决方案2】:

      我在调试GatewayServiceStartup进程时遇到如下异常:

      无法加载计数器名称数据,因为读取了无效索引“” 来自注册表。

      使用Cannot load Counter Name data because an invalid index -Exception修复它:

      在提升的命令提示符下:

      C:\windows\SysWOW64> lodctr /r
      

      【讨论】:

        【解决方案3】:

        Chris- 建议将转储和/或跟踪文件发送到 askdocdb@microsoft.com。此处提供了检索文件的具体说明:https://docs.microsoft.com/en-us/azure/documentdb/documentdb-nosql-local-emulator#troubleshooting。 -咪咪

        【讨论】:

        • 我在发布之前看到了它,它似乎专门与模拟器有关,当我尝试 /starttraces /stoptraces 时没有生成文件。我只是重复了这些步骤来确认。但是感谢您的回复和建议。我应该在原始帖子中对此进行限定
        【解决方案4】:

        与 askdocdb@microsoft.com 合作,我们能够解决问题。

        查看故障转储文件发现性能计数器导致了问题。我禁用了性能计数器,然后一切都按预期工作了。

        有问题的性能计数器是 2005 sqlexpress。

        特别感谢 Momin 抽出时间与我一起解决问题。

        【讨论】:

        • 这里有类似的问题 - 我已经提交了 2 个转储,但我很不耐烦,因为我的 MSDN 学分在真正的 DocDB 上被吹走了,而且我在没有 emu 的情况下被困住了。崩溃是 InvalidOperation("Cannot load Counter Name data because an invalid index '' was read from the registry.") in PerformanceCounterLib.GetStringTable() - 堆栈的更上方是 CategoryExists(machine=".", category="DocDB Gateway ”)。欢迎提出任何建议!
        【解决方案5】:

        我遇到了同样的问题。我卸载了 Sql Server 2008 R2。无论如何都不兼容 win win 10。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2018-03-07
          • 2020-07-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2013-04-28
          相关资源
          最近更新 更多