Skip to main content
 首页 » 编程设计

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

2024年11月24日130youxin

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

    [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 Browser”服务,测试我的凭据,但我完全一无所知......

(如果重要的话,我的本地计算机上也有 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,但现在由于某种原因它仍然尝试使用默认端口... 这东西可以在默认端口以外的端口上工作吗?

请您参考如下方法:

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

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

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