|
I've had this same issue on a few installs, but not every one. (The script sits on "Waiting for administration component initialization..." and never moves forward)
I think what's happening is that the Enterprise Search Admin Component doesn't always start properly, gets hung initializing etc. However, I've been able to fix this each time without restarting the install.
Here's the section of powershell script from the AutoSPInstallerFunctions.ps1 that's doing the work:
If ($installAdminCmpnt) {
Write-Host -ForegroundColor White " - Setting administration component..."
*****Set-SPEnterpriseSearchAdministrationComponent -SearchApplication $searchApp -SearchServiceInstance $searchSvc
$adminCmpnt = $searchApp | Get-SPEnterpriseSearchAdministrationComponent
If ($adminCmpnt.Initialized -eq $false)
{
Write-Host -ForegroundColor Blue " - Waiting for administration component initialization..." -NoNewline
While ($adminCmpnt.Initialized -ne $true)
{
Write-Host -ForegroundColor Blue "." -NoNewline
Start-Sleep 1
$adminCmpnt = $searchApp | Get-SPEnterpriseSearchAdministrationComponent
}
Write-Host -BackgroundColor Blue -ForegroundColor Black $($adminCmpnt.Initialized -replace "True","Done.")
}
Else {Write-Host -ForegroundColor White " - Administration component already initialized."}
}
Here's what I do:
While the "Waiting for administration component initialization..." message is scrolling along, I log into the machine where search admin is installing as the install account. (As an aside, I always run my installs from a machine not in the farm
usually one of the SQL Servers. This gives me more control over what's happening without affecting the installs or "tripping" over anything)
From SP Powershell, run: " Get-SPEnterpriseSearchServiceInstance -Local " and get the GUID of the service.
Next, run "Set-SPEnterpriseSearchAdministrationComponent -SearchApplication <Name of your search Service App> -SearchServiceInstance <GUID from the previous command>
Go back to your install scripts and within 15-30 seconds it will proceed with the rest of the install. I'm adding this as an issue as well. Hope this helps.
|