Freigeben über


Event ID 6398: The Execute method of job definition Microsoft.Office.Server.UserProfiles.LMTRepopulationJob (ID xxx) threw an exception

Issue:

Event ID 6398 in the application log stating - Unexpected exception in FeedCacheService.IsRepopulationNeeded: Unable to create a DataCache. SPDistributedCache is probably down.

When you look in Central Admin at Services on Server, you see that Distributed Cache is started.

In SharePoint Management Shell, you run the following

Get-Cache

Notice there are no other cache containers except default. There should be 10 other cache containers which is why the errors are occurring in the Application Event log.

 

Resource: https://lennytech.wordpress.com/2013/07/30/replacing-missing-named-caches-to-a-sharepoint-distributed-cache-cluster/

Resolution:

You need to add the cache containers manually.

Run in the SharePoint Management Shell or Windows PowerShell

<#

Microsoft provides programming examples for illustration only, without warranty either expressed or

implied, including, but not limited to, the implied warranties of merchantability and/or fitness

for a particular purpose.

This sample assumes that you are familiar with the programming language being demonstrated and the

tools used to create and debug procedures. Microsoft support professionals can help explain the

functionality of a particular procedure, but they will not modify these examples to provide added

functionality or construct procedures to meet your specific needs. if you have limited programming

experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting

line at (800) 936-5200.

----------------------------------------------------------

History

----------------------------------------------------------

v1.0 09-23-2016 - Created

==============================================================#>

# Check to see if using Windows PowerShell or the SharePoint Management Shell

# If using Windows PowerShell, then the SharePoint snap-in needs to be loaded

if ((Get-PSSnapin -Name Microsoft.SharePoint.PowerShell) -eq $null)

{

Add-PSSnapin -Name Microsoft.SharePoint.PowerShell

}

# Get the GUID for the farm and store it as $farmid

$farmid = (Get-SPFarm).Id.ToString()

# Create the missing cache containers

New-Cache -CacheName "DistributedAccessCache_$farmid"

New-Cache -CacheName "DistributedActivityFeedCache_$farmid"

New-Cache -CacheName "DistributedActivityFeedLMTCache_$farmid"

New-Cache -CacheName "DistributedBouncerCache_$farmid"

New-Cache -CacheName "DistributedDefaultCache_$farmid"

New-Cache -CacheName "DistributedLogonTokenCache_$farmid"

New-Cache -CacheName "DistributedSearchCache_$farmid"

New-Cache -CacheName "DistributedSecurityTrimmingCache_$farmid"

New-Cache -CacheName "DistributedServerToAppServerAccessTokenCache_$farmid"

New-Cache -CacheName "DistributedViewStateCache_$farmid"