代码之家  ›  专栏  ›  技术社区  ›  user2173353

Microsoft Service Bus 1.1配置向导失败-LDAP服务器不可用

  •  2
  • user2173353  · 技术社区  · 10 年前

    我使用服务总线配置向导,虽然在验证过程中一切都很好,但最终我得到了:

        [Error] [20/2/2014 11:07:14 ]: System.Management.Automation.CmdletInvocationException: The server could not be contacted. ---> System.DirectoryServices.AccountManagement.PrincipalServerDownException: The server could not be contacted. ---> System.DirectoryServices.Protocols.LdapException: The LDAP server is unavailable.
           at System.DirectoryServices.Protocols.LdapConnection.Connect()
           at System.DirectoryServices.Protocols.LdapConnection.SendRequestHelper(DirectoryRequest request, Int32& messageID)
           at System.DirectoryServices.Protocols.LdapConnection.SendRequest(DirectoryRequest request, TimeSpan requestTimeout)
           at System.DirectoryServices.AccountManagement.PrincipalContext.ReadServerConfig(String serverName, ServerProperties& properties)
           --- End of inner exception stack trace ---
           at System.DirectoryServices.AccountManagement.PrincipalContext.ReadServerConfig(String serverName, ServerProperties& properties)
           at System.DirectoryServices.AccountManagement.PrincipalContext.DoServerVerifyAndPropRetrieval()
           at System.DirectoryServices.AccountManagement.PrincipalContext..ctor(ContextType contextType, String name, String container, ContextOptions options, String userName, String password)
           at System.DirectoryServices.AccountManagement.PrincipalContext..ctor(ContextType contextType)
           at System.DirectoryServices.AccountManagement.UserPrincipal.get_Current()
           at Microsoft.ServiceBus.Commands.ServiceBusBaseCmdlet.CreateAdminGroup(String adminGroup)
           at Microsoft.ServiceBus.Commands.NewSBFarmBase.ProcessRecordImplementation()
           at Microsoft.ServiceBus.Commands.ServiceBusBaseCmdlet.ProcessRecord()
           at System.Management.Automation.CommandProcessor.ProcessRecord()
           --- End of inner exception stack trace ---
           at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
           at Microsoft.ServiceBus.ConfigWizard.CommandletHelper.InvokePowershell(Command command, Action`3 updateProgress)
           at Microsoft.ServiceBus.ConfigWizard.ProgressPageViewModel.CreateSBFarm(FarmCreationModel model)
    

    有什么想法吗?

    编辑:

    我尝试过完全禁用防火墙,我启用并启动了“SQL Server浏览器”服务,测试了我的凭据,我完全一无所知。。。

    (如果重要的话,我的本地计算机上也有SQL Server实例)

    编辑2:

    在尝试使用另一个用户帐户(我在向导中插入的帐户)后,我得到了以下结果:

        [Error] [21/2/2014 10:24:39 πμ]: System.Management.Automation.CmdletInvocationException: Starting service Service Bus Gateway on machine TURBOX-PC failed: Time out has expired and the operation has not been completed. ---> Microsoft.ServiceBus.Commands.Common.Exceptions.OperationFailedException: Starting service Service Bus Gateway on machine TURBOX-PC failed: Time out has expired and the operation has not been completed. ---> System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed.
           at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)
           at Microsoft.ServiceBus.Commands.Common.SCMHelper.StartService(String serviceName, Nullable`1 waitTimeout, String hostName)
           --- End of inner exception stack trace ---
           at Microsoft.ServiceBus.Commands.Common.SCMHelper.StartService(String serviceName, Nullable`1 waitTimeout, String hostName)
           at Microsoft.ServiceBus.Commands.ServiceBusConfigHelper.StartSBServices(String hostName, Nullable`1 waitTimeout)
           at Microsoft.ServiceBus.Commands.AddSBHost.ProcessRecordImplementation()
           --- End of inner exception stack trace ---
           at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
           at Microsoft.ServiceBus.ConfigWizard.CommandletHelper.InvokePowershell(Command command, Action`3 updateProgress)
           at Microsoft.ServiceBus.ConfigWizard.ProgressPageViewModel.AddSBNode(FarmCreationModel model, Boolean isFirstCommand)
    

    编辑:

    使用不同的帐户和不同的端口号(默认不起作用),我已经成功地配置了SB,但现在由于某些原因,它仍然尝试使用默认端口。。。 这件事在默认端口以外的端口上工作吗?

    1 回复  |  直到 10 年前
        1
  •  2
  •   Thomas    8 年前

    如果您以域用户身份登录,则需要与域控制器联系。这就是你失败的地方。

    当我试图在家里的工作笔记本电脑上安装服务总线时,也遇到了同样的错误。回到办公室后,安装成功。

    此处提供有关系统要求的一些附加信息: https://msdn.microsoft.com/en-us/library/dn441409.aspx