Azure Service Bus 1.1无法启动

c8ib6hqw  于 2023-10-22  发布在  其他
关注(0)|答案(3)|浏览(114)

服务总线网关未启动。
首先,我尝试完全卸载所有Azure/Fabric/Service Bus类型的SDK和安装。我已经从头开始安装了Windows Azure Pack: Service Bus 1.1Windows Azure Pack: Security Update for Service Bus 1.1 (KB2972621)
删除所有与服务总线相关的数据库后,我启动服务总线配置向导,并开始使用自定义设置启动新的服务器场。
除了添加我自己的证书,当然还有输入我的密码之外,我保留了所有默认设置。
单击“go”后,服务总线配置向导最终会卡在 * 进行中 *:

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 > Operational的事件查看器日志有以下错误。最先收到的错误...

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)

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

  • 服务总线网关:开始
  • 服务总线消息代理:停止
  • 服务总线资源提供程序:停止

谢谢

u5i3ibmn

u5i3ibmn1#

如果您在更新到NET framework v4.6+后收到此错误,则Microsoft现在已对此进行修复,请下载Service Bus Server 1.1(KB3086798)http://www.microsoft.com/en-us/download/details.aspx?id=49496更新程序

b09cbbtk

b09cbbtk2#

TL;DR;

1.下载dropbox.com/s/cb5fro1rv...- * 谢谢Arash Rahimi *
1.导航到SDK工具

  1. sn -Vr Microsoft.Cloud.Common.AzureStorage.dll
  2. gacutil /i Microsoft.Cloud.Common.AzureStorage.dll
    此问题是由安装Visual Studio 2015 RC引起的。值得庆幸的是,已经有其他人经历过这种情况,并且已经发布了答案。
    请参见How do I report a bug in Windows Server Service Bus?上的this answer
    无论出于何种原因,如果Dropbox链接变得过时。我有added it to Github
xmd2e60i

xmd2e60i3#

确保任何/所有RabbitMQ服务都已停止。(或任何使用AMQP协议的内容)

相关问题