Azure 服务总线 1.1 无法启动

标签 azure azure-service-fabric azureservicebus

服务总线网关未启动。

首先,我尝试完全卸载所有 Azure/Fabric/Service Bus 类型的 SDK 和安装。我已从头开始安装了 Windows Azure Pack:服务总线 1.1Windows Azure Pack:服务总线安全更新 1.1 (KB2972621)

删除所有与服务总线相关的数据库后,我启动服务总线配置向导并开始使用自定义设置启动一个新场。

除了添加我自己的证书,当然还有输入我的密码之外,我将所有内容保留为默认值。

单击“转到”后,服务总线配置向导最终陷入进行中:

Starting
Created and configured Service Bus farm management database.
Created and configured Service Bus gateway database.
Creating default container.

Processing completed
Validating input and configuration parameters.
Granting 'Log on as Service' privilege to the run as account.
Windows Fabric configuration started.
Running Windows Fabric deployment.
Windows Fabric starting.
Service Bus configuration started.
Updating database.
Service Bus services starting.

Microsoft-Service Bus > 操作 的事件查看器日志存在以下错误。最先收到的错误...

Exception during fabric service creation for container 1, Exception System.ArgumentException: At least one address must be provided if hostEndpoints is non-null
Parameter name: hostEndpoints
   at System.Fabric.FabricClient.InitializeFabricClient(SecurityCredentials credential, TimeSpan keepAliveInterval, String[] hostEndpoints)
   at System.Fabric.FabricClient..ctor(SecurityCredentials credential, String[] hostEndpoints)
   at Microsoft.ServiceBus.Commands.ServiceBusGetCommands.CreateFabricClient()
   at Microsoft.ServiceBus.Commands.ServiceBusCommandBase.RegisterWinFabricService(Int64 containerId)  

然后:

Service Bus Gateway service failed to start, retry count 1.  Exception message: An error occurred creating the configuration section handler for namespacePolicyDataStoreFactory: Could not load file or assembly 'Microsoft.Cloud.Common.AzureStorage, Version=2.1.0.0, Culture=neutral, PublicKeyToken=4fe77f22fa8374f3' or one of its dependencies. The system cannot find the file specified..  Stack Trace:    at System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader, String filename, Int32 line)
   at System.Configuration.BaseConfigurationRecord.CreateSectionDefault(String configKey, Boolean getRuntimeObject, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
   at Microsoft.Cloud.ServiceBus.ServiceRegistryManagerContext.CreateNamespacePolicyDataManager(IComponentSite site)
   at Microsoft.Cloud.ServiceBus.ServiceRegistryManagerContext.LoadServices(IComponentSite site)
   at Microsoft.Cloud.ServiceBus.Common.Components.ComponentFactoryBase`1.CreateComponent()
   at Microsoft.Cloud.HostingModel.ComponentHost.CreateComponent(IComponentFactory componentFactory)
   at Microsoft.Cloud.HostingModel.ComponentHost.CreateComponents()
   at Microsoft.Cloud.HostingModel.ComponentHost.Open()
   at Microsoft.ServiceBus.Gateway.Gateway.OnStart(String[] args)

在服务中,相关服务具有以下状态:

  • 服务总线网关:正在启动
  • 服务总线消息代理:已停止
  • 服务总线资源提供商:已停止

谢谢

最佳答案

如果您在更新到 NET Framework v4.6+ 后收到此错误,则 Microsoft 现在已解决此问题,请下载 Service Bus Server 1.1 的此更新 (KB3086798) http://www.microsoft.com/en-us/download/details.aspx?id=49496

关于Azure 服务总线 1.1 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30716273/

相关文章:

azure - 在 Azure Fabric 可靠参与者之间共享 EventHub

c# - 如何使用 Azure Functions 输出绑定(bind)设置服务总线消息的 MessageId?

azure - 为什么 kestrel 不断抛出此调试 ssl 异常?

azure - 如何在 Azure Service Fabric 中使用 MSMQ

Azure 服务总线消息生存时间设置

c# - Windows 通用应用程序 - 从 Azure 容器下载所有 Blob

excel - Oauth 和 Excel 链接

javascript - 将 JavaScript 与 Azure AD B2C 中的自定义 View 策略结合使用

azure - 有关 Azure 实例分配带宽的问题

azure - 如何增加 Azure Service Fabric Actor 的超时?