在Windows server 2019 datacenter上安装exchange server2019反复失败

Xiaoru Nan 0 信誉分
2024-10-18T05:16:34.4966667+00:00

我在Windows serve 2019 datacenter上安装exchange server 2019到了第六步:邮箱角色 传输服务就安装失败,以下是安装程序的报错信息:

错误:

运行"$error.Clear();

        if ($RoleProductPlatform -eq "amd64")

        {

            try

            {

                # Need to configure the ETL traces before the fast service is installed. This will ensure that when the service comes up

                # it will have the necessary trace session setting available to read from the registry

                $fastPerfEtlTraceFolderPath = Join-Path -Path $RoleBinPath -ChildPath "\Search\Ceres\Diagnostics\ETLTraces"

                $fastDiagnosticTracingRegKeyPath = 'HKLM:\SOFTWARE\Microsoft\Office Server\16.0\Search\Diagnostics\Tracing'

                if(-not(Test-Path -Path $fastPerfEtlTraceFolderPath))

                {

                    $null = New-Item $fastPerfEtlTraceFolderPath -Type 'Directory' -Force 

                }

                

                if (-not(Test-Path -Path $fastDiagnosticTracingRegKeyPath))

                {

                    $null = New-Item -Path $fastDiagnosticTracingRegKeyPath -Force

                }

                

                $null = New-ItemProperty -Path $fastDiagnosticTracingRegKeyPath -Name 'TracingPath' -PropertyType 'string' -Value $fastPerfEtlTraceFolderPath -Force

                $null = New-ItemProperty -Path $fastDiagnosticTracingRegKeyPath -Name 'TracingFileName' -PropertyType 'string' -Value 'DocumentProcessingTrace' -Force

                $null = New-ItemProperty -Path $fastDiagnosticTracingRegKeyPath -Name 'DocumentParserSuccessLogMessage' -PropertyType 'Dword' -Value 1 -Force

                $null = New-ItemProperty -Path $fastDiagnosticTracingRegKeyPath -Name 'DocumentParserLoggingNoInitialisation' -PropertyType 'Dword' -Value 1 -Force

                

                # Max trace folder size 50 * 100 = 5GB

                $null = New-ItemProperty -Path $fastDiagnosticTracingRegKeyPath -Name 'MaxTraceFileSize' -PropertyType 'Dword' -Value 50 -Force

                $null = New-ItemProperty -Path $fastDiagnosticTracingRegKeyPath -Name 'MaxTraceFileCount' -PropertyType 'Dword' -Value 100 -Force

                

                $null = New-ItemProperty -Path $fastDiagnosticTracingRegKeyPath -Name 'UseGeneralSwitch' -PropertyType 'Dword' -Value 1 -Force

                $null = New-ItemProperty -Path $fastDiagnosticTracingRegKeyPath -Name 'GeneralSwitch' -PropertyType 'Dword' -Value 0 -Force

            }

            catch

            {

                # ETl tracing is not critical. Info only log

                Write-ExchangeSetupLog -Info ("An exception ocurred while trying to Configure the FAST ETL traces. Exception: " + $_.Exception.Message);

            }

            

            $fastInstallConfigPath = Join-Path -Path $RoleBinPath -ChildPath "Search\Ceres\Installer";

            $command = Join-Path -Path $fastInstallConfigPath -ChildPath "InstallConfig.ps1";

            $dataFolderPath = Join-Path -Path $RoleBinPath -ChildPath "Search\Ceres\HostController\Data";

            try

            {

                # the BasePort value MUST be kept in sync with dev\Search\src\OperatorSchema\SearchConfig.cs

                &$command -action i -baseport 3800 -dataFolder $dataFolderPath -silent;

            }

            catch

            {

                $errorMsg = "Failure configuring SearchFoundation through installconfig.ps1 - " + $_.Exception.Message;

                Write-ExchangeSetupLog -Error $errorMsg;

                

                # Clean up the failed configuration attempt.

                &$command -action u -silent;

                try

                {

                    if ([System.IO.Directory]::Exists($dataFolderPath))

                    {

                        [System.IO.Directory]::Delete($dataFolderPath, $true);

                    }

                }

                catch

                {

                    $deleteErrorMsg = "Failure cleaning up SearchFoundation Data folder. - " + $dataFolderPath + " - " + $_.Exception.Message;

                    Write-ExchangeSetupLog -Error $deleteErrorMsg;

                }

            }

            

           # Set the PowerShell Snap-in's public key tokens

            try

            {

                $PowerShellSnapinsPath = "HKLM:\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\";

                $FastSnapinNames = @("EnginePSSnapin", "HostControllerPSSnapIn", "InteractionEnginePSSnapIn", "JunoPSSnapin", "SearchCorePSSnapIn");

                $officePublicKey = "71E9BCE111E9429C";

                $exchangePublicKey = "31bf3856ad364e35";

                foreach ($fastSnapinName in $FastSnapinNames)

                {

                    $fastSnapinPath = $PowerShellSnapinsPath + $fastSnapinName;

                    $assemblyNameProperty = Get-ItemProperty -Path $fastSnapinPath -Name "AssemblyName" -ErrorAction SilentlyContinue;

                    if ($assemblyNameProperty -ne $null -and (-not [string]::IsNullOrEmpty($assemblyNameProperty.AssemblyName)))

                    {

                        $newAssemblyName = $assemblyNameProperty.AssemblyName -ireplace ($officePublicKey, $exchangePublicKey);

                        Set-ItemProperty -Path $fastSnapinPath -Name "AssemblyName" -Value $newAssemblyName;

                    }

                }

            }

            catch

            {

                # Info only log

                Write-ExchangeSetupLog -Info ("An exception ocurred while configuring Search Foundation PowerShell Snapin. Exception: " + $_.Exception.Message);

            }

        }

    "时生成以下错误:"System.Exception: Failure configuring SearchFoundation through installconfig.ps1 - Error occurred while configuring Search Foundation for Exchange.System.TimeoutException: Timed out waiting for Admin node to be up and running

在 Microsoft.Ceres.Exchange.PostSetup.DeploymentManager.WaitForAdminNode(String hostControllerNetTcpWcfUrl)

在 Microsoft.Ceres.Exchange.PostSetup.DeploymentManager.Install(String installDirectory, String dataDirectoryPath, Int32 basePort, String logFile, Boolean singleNode, String systemName, Boolean attachedMode)

在 CallSite.Target(Closure , CallSite , Type , Object , Object , Object , Object , Object , Object , Boolean )

在 Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)

在 Microsoft.Exchange.Management.Deployment.WriteExchangeSetupLog.InternalProcessRecord()

在 Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()

在 Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)"。

请求帮助探查原因

Exchange Server
Exchange Server
Microsoft 客户端/服务器消息传递和协作软件系列。
90 个问题
0 个注释 无注释
{count} 票

1 个答案

排序依据: 非常有帮助
  1. Jake Zhang-MSFT 9,090 信誉分 Microsoft 供应商
    2024-10-21T08:12:46.7766667+00:00

    您好 @Xiaoru Nan

    欢迎您来到微软中文论坛。

    安装Exchange Server 2019时遇到的错误信息表明,在配置Search Foundation时出现了问题,具体来说是等待Admin节点启动并运行时超时了。以下是一些可能的解决方法和建议:

    1. 确保你的系统有足够的资源来运行Exchange Server 2019,特别是内存和CPU。
    2. 确认你的服务器能够正确地进行网络通信,特别是与Admin节点的通信。
    3. 确保运行安装程序的用户具有足够的权限来进行所有必要的配置更改。
    4. 检查防火墙设置,确保不会阻止必要的网络通信。
    5. 确保所有Exchange Server 2019依赖的服务都已启动并运行。
    6. 有时,简单地重试安装过程可能会解决问题。

    如果以上方法都无法解决问题,建议查看Exchange Server的安装日志,以获取更多的错误信息和调试线索。日志通常位于C:\ExchangeSetupLogs目录下。


    如果答案有帮助,请点击“接受答案”并投赞成票。如果您对此答案有其他疑问,请点击“评论”


你的答案

问题作者可以将答案标记为“接受的答案”,这有助于用户了解已解决作者问题的答案。