Share via

Distributed Cache stuck in "Unexpected" state

Gulsan Kemberley 40 Reputation points
2026-02-11T11:52:59.5566667+00:00

​My SharePoint 2019 production farm is currently unusable. The Distributed Cache service is reporting an "Unexpected" status across all three cache hosts. Users are hitting intermittent 503 Service Unavailable errors, and authentication tokens aren't persisting.

​I’ve already tried running Remove-SPDistributedCacheServiceInstance followed by Add-SPDistributedCacheServiceInstance, but the Add- command fails with: "The object is in a failed state and cannot be modified."

Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

Answer accepted by question author
  1. Steven-N 21,165 Reputation points Microsoft External Staff Moderator
    2026-02-11T13:52:19.55+00:00

    Hi Gulsan Kemberley

    Thank you for reaching out to Microsoft Q&A

    Based on my research, the Distributed Cache service instance on one or more servers has entered an inconsistent state where the SharePoint Configuration Database believes the service is Provisioning or Unprovisioning, but the underlying Windows Service (AppFabric) has stalled.

    This creates a mismatch object in the configuration database:

    • Cannot be Removed: Standard Remove-SPDistributedCacheServiceInstance commands fail because the object is locked in a "failed" status transition.
    • Cannot be Added: Add-SPDistributedCacheServiceInstance fails because the stale object ID still exists, preventing a new instance from being created on the same server.

    Given this, to resolve this, you can try the approach below:

    1. Stop the Windows Service Manually

    Sometimes the SharePoint Timer Service is waiting for the Windows Service to stop.

    • Open Services.msc on the affected server.
    • Find AppFabric Caching Service.

    If it is Running or stopping, force it to Stop.

    2. Clear the Configuration Cache

    • This forces the local server to re-read the object state from the database, which might clear a local "stale" lock.
    • Stop the SharePoint Timer Service on all servers.
    • Delete the XML files in %ProgramData%\Microsoft\SharePoint\Config\<GUID>\ (DO NOT delete cache.ini).
    • Edit cache.ini and set the number to 1 then start the SharePoint Timer Service on all servers.

    Hope my answer will help you.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".   

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.