microsoft / microsoft/CSS-Exchange
Setup Log Reviewer call out DC name is not FQDN and point to "DC DNS Host Name" test in SetupAssist.
Open
@dpaulson45 is already working on this.
Since Dec 6, 2024.
Enhancement
Setup
Setup Log Reviewer
- Dominant language
- PowerShell
- Stars
- 1.3k
- Forks
- 395
- Avg merge
- 14h 7m
- Merged PRs (30d)
- 5
Description
Describe the issue
Want to have the Setup Log Reviewer results point to the SetupAssist test DC DNS Host Name for when we run into this issue.
Expected behavior
Seeing this in the Setup Log.
[09/12/2023 16:15:42.0072] [2] [ERROR] StartIndex cannot be less than zero.
Parameter name: startIndex
[09/12/2023 16:15:42.0072] [2] [WARNING] An unexpected error has occurred and a Watson dump is being generated: StartIndex cannot be less than zero.
Parameter name: startIndex
[09/12/2023 16:15:42.0463] [1] The following 1 error(s) occurred during task execution:
[09/12/2023 16:15:42.0463] [1] 0. ErrorRecord: StartIndex cannot be less than zero.
Parameter name: startIndex
[09/12/2023 16:15:42.0463] [1] 0. ErrorRecord: System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
at System.String.Remove(Int32 startIndex, Int32 count)
at Microsoft.Exchange.Management.Tasks.DirectoryCommon.IsRODCType(String DnsHostName)
at Microsoft.Exchange.Management.Tasks.InitializeDomainPermissions.CleanUnwantedPermissions(ADDomain dom)
at Microsoft.Exchange.Management.Tasks.InitializeDomainPermissions.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)
at Microsoft.Exchange.Configuration.Tasks.Task.ProcessTaskStage(TaskStage taskStage, Action initFunc, Action mainFunc, Action completeFunc)
at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
[09/12/2023 16:15:42.0463] [1] [ERROR] The following error was generated when "$error.Clear();
$createTenantRoot = ($RoleIsDatacenter -or $RoleIsPartnerHosted);
$createMsoSyncRoot = $RoleIsDatacenter;
#$RoleDatacenterIsManagementForest is set only in Datacenter deployment; interpret its absense as $false
[bool]$isManagementForest = ($RoleDatacenterIsManagementForest -eq $true);
if ($RolePrepareAllDomains)
{
initialize-DomainPermissions -AllDomains:$true -CreateTenantRoot:$createTenantRoot -CreateMsoSyncRoot:$createMsoSyncRoot -IsManagementForest:$isManagementForest;
}
elseif ($RoleDomain -ne $null)
{
initialize-DomainPermissions -Domain $RoleDomain -CreateTenantRoot:$createTenantRoot -CreateMsoSyncRoot:$createMsoSyncRoot -IsManagementForest:$isManagementForest;
}
else
{
initialize-DomainPermissions -CreateTenantRoot:$createTenantRoot -CreateMsoSyncRoot:$createMsoSyncRoot -IsManagementForest:$isManagementForest;
}
" was run: "System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
at System.String.Remove(Int32 startIndex, Int32 count)
at Microsoft.Exchange.Management.Tasks.DirectoryCommon.IsRODCType(String DnsHostName)
at Microsoft.Exchange.Management.Tasks.InitializeDomainPermissions.CleanUnwantedPermissions(ADDomain dom)
at Microsoft.Exchange.Management.Tasks.InitializeDomainPermissions.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)
at Microsoft.Exchange.Configuration.Tasks.Task.ProcessTaskStage(TaskStage taskStage, Action initFunc, Action mainFunc, Action completeFunc)
at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()".
[09/12/2023 16:15:42.0463] [1] [ERROR] StartIndex cannot be less than zero.
Parameter name: startIndex
[09/12/2023 16:15:42.0463] [1] [ERROR-REFERENCE] Id=DomainGlobalConfig___27a706ffe123425f9ee60cb02b930e81 Component=EXCHANGE14:\Current\Release\Shared\Datacenter\Setup
Script Output
Turns out this is called out in SetupAssist, done within this PR: https://github.com/microsoft/CSS-Exchange/pull/671
We want to call this out now in SetupLogReviewer as well.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.