2015-06-08 3 views
10

Service Bus Gateway не запускается.Azure Service Bus 1.1 Ошибка при запуске

Прежде всего, я попытался полностью удалить все SDK и установки типа Azure/Fabric/Service Bus. Я установил как Windows Azure Pack: Service Bus 1.1, так и Windows Azure Pack: Security Update for Service Bus 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 > 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) 

В сфере услуг соответствующие службы имеют следующие статусы:

  • Service Bus Шлюз: Запуск
  • Service Bus Сообщение Брокер: Остановлен
  • Service Bus Resource Provider: Остановлен

Благодаря

ответ

8

TL; DR;

  1. Скачать dropbox.com/s/cb5fro1rv... - благодаря Arash Rahimi
  2. Перейдите к вашим SDK инструменты
  3. sn -Vr Microsoft.Cloud.Common.AzureStorage.dll
  4. gacutil /i Microsoft.Cloud.Common.AzureStorage.dll

Эта проблема была вызвана установкой Visual Studio 2015 RC. К счастью, кто-то еще это испытал, и ответ был отправлен.

Пожалуйста, смотрите this answer на How do I report a bug in Windows Server Service Bus?

По какой-то причине, если ссылка Dropbox устаревает. У меня есть added it to Github.

+1

5.добавлен IISReset не уверен, что это необходимо или нет. Но я сделал, и это сработало! – Muhammedh

0

Убедитесь, что любые/все RabbitMQ служба (службы) прекращена. (Или все, что использует протокол AMQP)