Distributed Cache in SharePoint 2013 -"Unexpected exception in FeedCacheService.IsRepopulationNeeded: Cache cluster is down, restart the cache cluster and Retry."
We had issue with Distributed Cache in SharePoint 2013
In ULS and event we were getting lots of errors related to Distributed cache.
Event ID: 6398
Task Category: Timer
Level: Critical
Keywords:
User: xxxxxxxxxxx
Computer: xxxxxxxxx
Description:
The Execute method of job definition Microsoft.Office.Server.UserProfiles.LMTRepopulationJob (ID ba320718-0e80-4295-a3f8-a4badea59f0d) threw an exception. More information is included below.
Unexpected exception in FeedCacheService.IsRepopulationNeeded: Cache cluster is down, restart the cache cluster and Retry.
We ran following commands to fix the cache issue
Remove-SPDistributedCacheServiceInstance
$SPFarm = Get-SPFarm
$cacheClusterName = "SPDistributedCacheCluster_" + $SPFarm.Id.ToString()
$cacheClusterManager = [Microsoft.SharePoint.DistributedCaching.Utilities.SPDistributedCacheClusterInfoManager]::Local
$cacheClusterInfo = $cacheClusterManager.GetSPDistributedCacheClusterInfo($cacheClusterName);
$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
$serviceInstance = Get-SPServiceInstance | ? {($_.Service.Tostring()) -eq $instanceName -and ($_.Server.Name) -eq $env:computername}
if([System.String]::IsNullOrEmpty($cacheClusterInfo.CacheHostsInfoCollection))
{
$serviceInstance.Delete()
}
After this we ran following command
$SPFarm = Get-SPFarm
$cacheClusterName = "SPDistributedCacheCluster_" + $SPFarm.Id.ToString()
$cacheClusterManager = [Microsoft.SharePoint.DistributedCaching.Utilities.SPDistributedCacheClusterInfoManager]::Local
$cacheClusterInfo = $cacheClusterManager.GetSPDistributedCacheClusterInfo($cacheClusterName);
$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
$serviceInstance = Get-SPServiceInstance | ? {($_.Service.Tostring()) -eq $instanceName -and ($_.Server.Name) -eq $env:computername}
if([System.String]::IsNullOrEmpty($cacheClusterInfo.CacheHostsInfoCollection))
{
Add-SPDistributedCacheServiceInstance
$cacheClusterInfo.CacheHostsInfoCollection
}
We ran Get-CacheHost and it shows the service is up
Made sure service is showing as started on the server
Comments
- Anonymous
January 01, 2003
شات دردشةشات صوتي دردشة صوتية سعودي لولسعودي انحراف سعودي كول شات سعودي دردشة سعودية شات سعودي لولدردشة سعودي لول سعودي لول شات سعودي لولدردشة سعودي لول سعودي لول شات سعودي لولدردشة سعودي لول لول شات لول شات سعودي دردشة سعوديةدردشة لول سعودي كول شات سعودي كولدردشة سعودي كولسعودي انحراف شات سعودي انحراف دردشة سعودي انحراف شات انحرافدردشة انحراف انحراف سعودي كام شات سعودي كامدردشة سعودي كام شات كام شات سعودياتشات صوتي دردشة صوتية صدى قلبي # - Anonymous
January 01, 2003
Same issue I am facing on all farm servers,Kindly let me know what is the impact on Production environment and how to run this script. - Anonymous
June 26, 2013
I tried your solution and after the first script i get the error: You cannot call a method on a null-valued expression. At C:script.ps1:9 char:2
- $serviceInstance.Delete()
- ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull any suggestion how i can fix this?
Anonymous
November 27, 2013
I've got same error - You cannot call a method on a null-valued expression.Anonymous
February 13, 2014
شات صوتي دردشة صوتية شات صوتي سعوديشات صوتي سعودي شات صوتي خليجي شات صوتي بناتشات دردشةشات صوتي كام شات كتابي شات صوتي دردشة صوتية شات سعودي منتديات الشرقية دردشة شات دردشة الشرقيه منتديات دليل مواقع شات حسايف دردشة حسايف شات الفاتن دليل الشرقيةشات كتابي العاب بنات مشكلتي [http://www.mshkelty.net] مشكلتي [http://www.mshkelty.net] موقع مشكلتي [http://www.mshkelty.net] مشكلتيAnonymous
March 31, 2014
http://www.dailymotion.com/video/x18uoiz_%D8%B4%D8%B1%D9%83%D8%A9-%D8%B1%D8%B4-%D9%85%D8%A8%D9%8A%D8%AF%D8%A7%D8%AA-%D8%A8%D8%A7%D9%84%D8%AE%D8%B1%D8%AC-0561933559-%D9%82%D9%85%D8%A9-%D8%A7%D9%84%D8%AA%D9%85%D9%8A%D8%B2_webcam
http://www.dailymotion.com/video/x18unwb_%D8%B4%D8%B1%D9%83%D8%A9-%D8%AA%D9%86%D8%B8%D9%8A%D9%81-%D9%81%D9%84%D9%84-%D8%A8%D8%A7%D9%84%D8%AE%D8%A8%D8%B1-0561933559-%D9%82%D9%85%D8%A9-%D8%A7%D9%84%D8%AA%D9%85%D9%8A%D8%B2_webcam
http://www.dailymotion.com/video/x18upda_%D8%B4%D8%B1%D9%83%D8%A9-%D9%85%D9%83%D8%A7%D9%81%D8%AD%D8%A9-%D8%AD%D8%B4%D8%B1%D8%A7%D8%AA-%D8%A8%D8%A7%D9%84%D8%AE%D8%B1%D8%AC-0561933559-%D9%82%D9%85%D8%A9-%D8%A7%D9%84%D8%AA%D9%85%D9%8A%D8%B2_webcam
http://www.youtube.com/watch?v=cV9mPJxxu2M
http://www.youtube.com/watch?v=nPSMvoXgssk&feature=youtu.be
http://www.youtube.com/watch?v=voHN2GSJ_kQ&feature=youtu.be
http://www.youtube.com/watch?v=ATcyMniEqxM&feature=youtu.be
http://www.youtube.com/watch?v=nPA23aCm6po&feature=youtu.be
http://www.youtube.com/watch?v=iAeuSnyeUAg&feature=youtu.be
http://www.youtube.com/watch?v=T2PDPnkJUbE&feature=youtu.be
http://www.youtube.com/watch?v=YlO6uBvQjDA&feature=youtu.be
http://www.youtube.com/watch?v=VmoFEcOOn2Y&feature=youtu.be
http://www.youtube.com/watch?v=1kL70SPgUyk&feature=youtu.be
http://www.youtube.com/watch?v=Fmi1yu4mhQw&feature=youtu.be
http://www.youtube.com/watch?v=r4wRjkQnEYk&feature=youtu.be
http://www.youtube.com/watch?v=_cF4FhHNt3k&feature=youtu.be
http://www.youtube.com/watch?v=6nS6f9whv1M&feature=youtu.be
http://www.youtube.com/watch?v=D2tiHM4KT9I&feature=youtu.be
http://www.youtube.com/watch?v=2Wn2H8v0rfQ&feature=youtu.b
http://www.youtube.com/watch?v=8mhw8UJSjaI&feature=youtu.be
http://www.youtube.com/watch?v=5AVIsD-qySQ
http://www.youtube.com/watch?v=wKviffogNLE&feature=youtu.be
http://www.youtube.com/watch?v=w5rslbfS1kc&feature=youtu.be
http://www.youtube.com/watch?v=_Z-cDXwNaU4&feature=youtu.beAnonymous
May 18, 2014
شات صوتي [www.f6h6.com] دردشة صوتية [http://www.f6h6.com] شات [http://www.f6h6.com] دردشة [http://www.f6h6.com] الشات صوتي [http://www.f6h6.com] الدردشة الصوتية [http://www.f6h6.com] الفاتن [http://www.f6h6.com] صوتي [http://www.f6h6.com] صوتية [http://www.f6h6.com] شات صوتي كام [http://www.f6h6.com] شات صوتي سعودي [http://www.f6h6.com] شات صوتي بنات [http://www.f6h6.com] شات [http://www.f6h6.com] دردشة [http://www.f6h6.com] صوتي الشات [http://www.f6h6.com]
شات الخليج [http://www.khaaleg.com] دردشة الخليج [http://www.khaaleg.com] الخليج [http://www.khaaleg.com] شات [http://www.khaaleg.com] خليجي [http://www.khaaleg.com] الخليج [http://www.khaaleg.com] دردش الخليج [http://www.khaaleg.com] شات الخليج [http://www.khaaleg.com] دردشه الخليج [http://www.khaaleg.com]
العاب طبخ [http://tabkhjeux.com] لعبة طبخ [http://tabkhjeux.com] العب طبخ [http://tabkhjeux.com] طبخ [http://tabkhjeux.com] طبخ العاب [http://tabkhjeux.com] العاب طبخ بنات [http://tabkhjeux.com]
http://tabkhjeux.com العاب طبخ
http://tabkhjeux.com لعبة طبخ
http://tabkhjeux.com طبخ
http://tabkhjeux.com العاب
http://www.f6h6.com شات
http://www.f6h6.com دردشة
http://www.f6h6.com شات صوتي
http://www.f6h6.com دردشة صوتية
http://www.f6h6.com شات صوتي كام
http://www.f6h6.com شات صوتي سعودي
http://www.f6h6.com صوتية
http://www.khaaleg.com شات الخليج
http://www.khaaleg.com دردشة الخليج
http://www.khaaleg.com الخليج
http://www.khaaleg.com الخليج شاتAnonymous
June 20, 2014
I think with the first If (when script delete the cache) condition to test need to be negative (if (not ...)Anonymous
June 23, 2014
http://voice.7p-e.com/" title="شات صوتي" rel="follow" target="_blank">
http://up.al5oon.com/upfiles/yag79172.gif" alt="شات صوتي" width="60" height="30">
http://chat.7p-e.com/" title="شات كتابي" rel="follow" target="_blank">
http://up.al5oon.com/upfiles/onq79172.gif" alt="شات كتابي" width="60" height="30">
http://voice.7p-e.com/" title="دردشة صوتية" rel="follow" target="_blank">
http://up.al5oon.com/upfiles/w6q79172.gif" alt="دردشة صوتية" width="60" height="30">
http://voice.adma2.com/" title="شات صوتي" rel="follow" target="_blank">
http://up.al5oon.com/upfiles/0qr79172.gif" alt="شات صوتي" width="60" height="30">
http://www.7p-e.com/" title="حبي" rel="follow" target="_blank">
http://up.al5oon.com/upfiles/4ah79172.gif" alt="حبي" width="60" height="30">
http://www.7p-e.com/" title="شات حبي" rel="follow" target="_blank">
http://up.al5oon.com/upfiles/bxk79172.gif" alt="شات حبي" width="60" height="30">
http://www.3un.com/" title="دردشة" rel="follow" target="_blank">
http://up.al5oon.com/upfiles/kby79588.gif" alt="دردشة" width="60" height="30">
http://www.cambnat.com/" title="شات كام" rel="follow" target="_blank">
http://up.al5oon.com/upfiles/gp379588.gif" alt="شات كام" width="60" height="30">Anonymous
June 23, 2014
شات صوتي دردشة صوتية شات حبي دردشة الحبAnonymous
June 23, 2014
http://www.7p-e.com/" title="شات حبي" rel="dofollow">شات حبيAnonymous
December 11, 2014
Невозможно вызвать метод для выражения со значением NULL.
строка:3 знак:1
+ $serviceInstance.Delete()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNullAnonymous
May 14, 2015
I was having the same issue. These commands fixed my issue:
Use-CacheCluster
Grant-CacheAllowedClientAccount -forceAnonymous
May 20, 2015
You could also use in an administrative Management Shell:
Use-CacheCluster
Restart-Cachecluster
To verify everything is working check it with Get-CacheHost.Anonymous
January 11, 2016
I fixed the issue by running the below ones:-
1. Run the below one to stop the service gracefully
Stop-SPDistributedCacheServiceInstance -Graceful
Wait for 5 minutes*
2. Start the below one to restart the service:-
$instance = Get-SPServiceInstance | ? {$.TypeName -eq "Distributed Cache" -and $.Server.Name -eq $env:computername}
$instance.Provision()
3. Manually check the status of App Fabric Caching service.Anonymous
April 22, 2016
Fixed our DC issues using the following in PS:
Stop-SPDistributedCacheServiceInstance -Graceful
Remove-SPDistributedCacheServiceInstance
Add-SPDistributedCacheServiceInstanceAnonymous
April 22, 2016
http://jepatoke.blogspot.comAnonymous
April 22, 2016
http://jepatoke.blogspot.com"> niceAnonymous
April 22, 2016
http://jepatoke.blogspot.comniceAnonymous
April 22, 2016
http://jepatoke.blogspot.comAnonymous
April 22, 2016
http://jepatoke.blogspot.com">nice