Managed metadata service not working

I had the Managed metadata service (Termstore) down on one of the servers in the farm with the followin message in the ULS, shortly after applying a fresh Cumulative update on SharePoint 2013 platform.

02/03/2014 12:32:56.09 w3wp.exe (0x1D78) 0x21A0 SharePoint Server Taxonomy ca3r Monitorable Error encountered in background cache check System.Security.SecurityException: Requested registry access is not allowed.     at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)     at Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplication.GetMOSSInstallPath()... etc etc etc...

So after a lot of googling I found using Process Monitor (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) that the Application pool account was trying to read the windows registry and failed with an acces denied.

I managed to fix it by using this command (http://technet.microsoft.com/en-us/library/ee513047(v=office.14).aspx):
psconfig -cmd secureresources

Comments

PerlaNava said…
Did you found the solution? did it Works for you?
Djavan ROA said…
Like I said: psconfig -cmd secureresources
Frits Hendriks said…
Thanx, this helped me out great. No rebuild of the metadata application necessary.
Amar said…
Initialize-SPResourceSecurity this command worked for me.
PBN said…
psconfig -cmd secureresources worked perfectly fine.
Thanks a heaps