AppFabric Distributed Cache keeps crashing in SharePoint 2013 – Fixed!

I rebuilt the farm and suddenly find my brand new AppFabric (aka Distributed Cache service) crashing continuously. I restarted the service in Services.msc and after a few minutes it would stop again. Event Viewer shows the two errors below every time the service crashes. The source of the first is Application Error, and the second is .NET Runtime.

Faulting application name: DistributedCacheService.exe, version: 1.0.4632.0, time stamp: 0x4eafeccf
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17932, time stamp: 0x503285c2
Exception code: 0xe0434352
Fault offset: 0x000000000000caed
Faulting process id: 0x1888
Faulting application start time: 0x01ce23ce18ce0f9e
Faulting application path: c:\Program Files\AppFabric 1.1 for Windows Server\DistributedCacheService.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: c7ee39fc-8fc1-11e2-9030-00155d1f6002


Application: DistributedCacheService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.ApplicationServer.Caching.DataCacheException
at Microsoft.ApplicationServer.Caching.VelocityWindowsService.StartServiceCallback(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()

At the SP2013 Management Shell, run Use-CacheCluster then Get-CacheHost and the Service Status of the cache host shows as UNKNOWN.

In my case, I fixed this by adding the SharePoint App Pool account to the WindowsFabricAllowedUsers group on the server. The AppFabric service then stopped crashing!

About Bernado

Based in Australia, I am a freelance SharePoint and Dynamics CRM developer. I love developing innovative solutions that address business and everyday problems. Feel free to contact me if you think I can help you with your SharePoint or CRM implementation.
This entry was posted in AppFabric, Distributed Cache, SharePoint 2013. Bookmark the permalink.

8 Responses to AppFabric Distributed Cache keeps crashing in SharePoint 2013 – Fixed!

  1. Eric Fang says:

    Hi Bernado,

    Thanks for your post, it helped me understanding more about Distributed cache service.

    There is no “WindowsFabricAllowedUsers” group on my SharePoint server, do you know how to recover it?

    • Bernado says:

      Hi Eric, are you on Windows Server 2012? I have had a look at a couple of 2012 servers, and they do not have the WindowsFabricAllowedUsers. Sorry I haven’t had a chance to investigate further and don’t have an answer for you at this stage.

      • Eric Fang says:


        Thanks for your reply.

        I have found the reason: WindowsFabricAllowedUsers is created with Service Bus 1.0

        Service Bus is relied on the standard AppFabric service.

        I think it’s better to install workflow manager 1.0 on a dedicated server (outside of SP2013 farm)

      • Bernado says:

        Thanks for posting back with your findings Eric. So did you fix it by installing Service Bus 1.0 and then add the user to that group?

      • Eric Fang says:

        No. After two days of struggling, I gave it up.

        It’s easier rebuilding the whole server.

        Maybe SP1 can make it more smooth.

  2. Tristan says:

    Probably a little late on this but for anyone looking to fix Eric’s issue: The group is created from the windows fabric bit.

  3. Allen says:

    Thank you!! Solved my issue.

  4. Pingback: AppFabric crashing on SharePoint 2013 | DL-UAT

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s