none
[SharePoint 2013] Rebuild SharePoint cache. RRS feed

  • Question


  • Hi,

    We have a SharePoint 2013 farm in poor condition.

    On only one of our APP server, on our WFE servers and  we can see errors bellow (EventID 6481):

    Application Server job failed for service instance Microsoft.Office.Server.Search.Administration.SearchDataAccessServiceInstance (ce9d1ce4-501c-4e8d-8459-ed0ebbca6f65).Reason: An update conflict has occurred, and you must re-try this action. The object SearchDataAccessServiceInstance was updated by XX\XXXXX.net, in the OWSTIMER (4700) process, on machine SPWFE4.  View the tracing log for more information about the conflict.Technical Support Details:Microsoft.SharePoint.Administration.SPUpdatedConcurrencyException: An update conflict has occurred, and you must re-try this action. The object SearchDataAccessServiceInstance was updated by XX\XXXXX.net, in the OWSTIMER (4700) process, on machine XXWFE1.  View the tracing log for more information about the conflict.   at Microsoft.Office.Server.Search.Administration.SearchDataAccessServiceInstance.UpdateWithRetrying()   at Microsoft.Office.Server.Search.Administration.SearchDataAccessServiceInstance.Synchronize(Boolean calledFromSearchServiceInstance)   at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)
    We find many thread about this error and it seems necessary to rebuild SharePoint Cache.

    For this its seems necessary to :

    1 - Stop the SharePoint Timer Service.
    2 - Go to %SystemDrive%\ProgramData\Microsoft\SharePoint\Config folder in File Explorer.  
    There are a couple of folders with the GUID in the Config folder. You want the one that has hyphens in the name.
    3 - Delete all the files, except the cache.ini.
    4 - Open the cache.ini file, replace number with 1.
    5 - Start the SharePoint Timer Service in the Services Console.

    My question is about this process :

    Q1 : Can I process server by server (after disable the server in our loadbalancer) ?
    Q2 : What is the impact with a stop of SharePoint Timer Service ?
    Q3 : Regading the GUID folder, in our case and for our two APP servers we have two folders which has hypens in the name, which is the correct one ? On our second farm for test, we don't have this problem.

    App Server 1 :

    PS C:\> Get-ChildItem "C:\ProgramData\Microsoft\SharePoint\Config"
        Directory: C:\ProgramData\Microsoft\SharePoint\Config
    Mode                LastWriteTime     Length Name
    ----                -------------     ------ ----
    d----        11/29/2016  10:40 AM            1156b7e0-ae7a-4508-9087-e3f995c552bd
    d----         1/25/2019   3:12 PM            3d3b30eb-03ea-4ee6-9fd1-cf4183f232c8
    d----          9/5/2016   8:53 AM            e8d441d3df0743e1ad8ee0163a0485dd
    d----          8/8/2018  10:29 AM            ff9d8236864f44ec933319d1cfd973af


    Very thanks for your help,

    Have a nice day all !
    Friday, January 25, 2019 2:18 PM

Answers

  • Hi ClementPA, 

    Find the one which folder name is with "-". 

    If you have two folder name with "-", delete all the files, except the cache.ini.  make a backup of the cache.ini file. 

    Or you can use PowerShell to clear the SharePoint Configuration Cache.

    Best Regards, 

    Lisa Chen 


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Monday, January 28, 2019 7:52 AM
    Moderator

All replies

  • Additional informations : 

    In our Cache folders, we have some .tmp files.

    Is it possible that this files corrupt cache ?

    Thanks,

    Friday, January 25, 2019 2:44 PM
  • Hi ClementPA, 

    1. You can process server by server. 

    2. Any timer job would be impacted and the services relying on those timer jobs.

    3. You can clear the SharePoint Configuration Cache using PowerShell. 

    Here is an article about Clearing the SharePoint Configuration Cache for your reference:

    https://www.zubairalexander.com/blog/clearing-the-sharepoint-configuration-cache/

    Best Regards, 

    Lisa Chen 



    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.


    Monday, January 28, 2019 6:55 AM
    Moderator
  • Hi Lisa,

    Thanks for your help,

    I was inspired by this blog for open this thread.

    Sadly the blog say that there is only one folder cache with a hyphen in is name, and in my configuration I have two of them.

    How can I find the good one ?

    Have a nice day

    Monday, January 28, 2019 7:40 AM
  • Hi ClementPA, 

    Find the one which folder name is with "-". 

    If you have two folder name with "-", delete all the files, except the cache.ini.  make a backup of the cache.ini file. 

    Or you can use PowerShell to clear the SharePoint Configuration Cache.

    Best Regards, 

    Lisa Chen 


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Monday, January 28, 2019 7:52 AM
    Moderator
  • Hi ClementPA, 

    If a reply helps you, please remember to mark it as an answer, it will be beneficial to others in the community who meet this similar issue in the future. 

    Have a great day!

    Best Regards,

    Lisa Chen


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Tuesday, January 29, 2019 2:19 AM
    Moderator
  • Hi Lisa,

    It's OK in my farm.

    I have deleted all XML files in the two folders.

    Have a nice day.

    Thanks,

    Clement

    Tuesday, January 29, 2019 10:39 AM