This SharePoint Powershell command stalls: “New-SPMetadataServiceApplication”
Using the AutoSPInstaller script, the deployment hangs.
The script finally stalls with the following:
Provisioning Managed Metadata Service Application
Creating SharePoint Hosted Services Application Pool…
Starting Managed Metadata Service:
Starting Metadata Service Instance…
Waiting for Metadata service…Online
Creating Metadata Service Application…
ULS Log:
Blocking until timer job ‘—GUID—‘ has completed.
Get-SPTimerJob doesn’t give any result when referencing the mentioned GUID.
After an undetermined period of time, it finally errored out with:
1 2 3 4 5 6 |
New-SPMetadataServiceApplication : The timer job did not complete running within the allotted time. At D:\AutoSPInstaller\AutoSPInstallerFunctions.ps1:1768 char:39 $metaDataServiceApp = New-SPMetadataServiceApplication -Name $me ... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CategoryInfo : InvalidData: (Microsoft.Share...MetadataService:SPCmdletNewMetadataService) [New-SPMetadataServiceApplication], TimeoutException FullyQualifiedErrorId : Microsoft.SharePoint.Taxonomy.Cmdlet.SPCmdletNewMetadataService |
Solution
Solved by a re-run after deleting the “half” created service application and adding/activating the Registry/Policy item DisableForceUnload.
1 2 |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System] "DisableForceUnload"=dword:00000001 |
1 |
Set-ItemProperty HKLM:\SOFTWARE\Policies\Microsoft\Windows\System -Name "DisableForceUnload" -Value 1 |
Other people with the same problem: autospinstaller.codeplex.com/workitem/19457