AppFabric Caching Service crashes (Event ID: 111)

Published Jan 28 2019 02:05 PM 1,867 Views
Microsoft

AppFabric helps IT professionals to build scalable web applications on IIS. It consists of hosting and caching features. In this post, I will mention some possible solutions to AppFabric Caching Service crashes.

 

appfabric.png

AppFabric Caching architecture (Source)

 

If the caching has issues, check the Event Viewer logs in the containers below:

  • Windows Logs > Application
  • Windows Logs > System​
  • Applications and Services Logs > Microsoft > Application Server-System Services​

In the Event Viewer logs, it is likely that you will see one or more of these error messages:

 

Event ID 111:
AppFabricCachingService.Crash Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode:SubStatus:Service initialization failed. No user action required.

Event ID 6:
30ecac98000000000000000000000000
Microsoft.Fabric.Common.OperationCompletedException: Operation completed with an exception —> System.TimeoutException: The operation has timed out.

 

 

The root cause and the solution

Some findings and fixes are below. Each of them can be implemented individually.

Service account

Make sure the AppFabric Caching service uses a managed account (Instructions).

 

Best practice for the Caching service account:

A single account should be used for all Service Applications, named Service Application Pool account. This allows the administrator to use a single IIS Application Pool for all Service Applications. In addition, this account should run the following Windows Services: SharePoint Search Host Controller, SharePoint Server Search, and Distributed Cache (AppFabric Caching Service).

Source

 

Account permissions

NT Authority\System on the SQL AppFabric Database should have Data Reader / Data Writer permissions.

Also, in PowerShell, execute Grant-CacheAllowedClientAccount command for NT Authority\System account.

 

Other possible fixes

  • Check if all cluster nodes are online
  • Deactivate the antivirus temporarily
  • Keep the operating system up-to-date
  • Check if the limit for number of servers allowed in the farm is not exceeded
  • Deactivate Windows Firewall temporarily. If there is a non-Windows firewall, try opening these protocols/ports: SMB, SMB2 and ICMP protocols TCP ports (22233, 22234, 22235 and 22236) Or 445 and the ICMP protocol TCP ports (22233, 22234, 22235 and 22236)
%3CLINGO-SUB%20id%3D%22lingo-sub-326874%22%20slang%3D%22en-US%22%3EAppFabric%20Caching%20Service%20crashes%20(Event%20ID%3A%20111)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326874%22%20slang%3D%22en-US%22%3E%3CP%3EAppFabric%20helps%20IT%20professionals%20to%20build%20scalable%20web%20applications%20on%20IIS.%20It%20consists%20of%20hosting%20and%20caching%20features.%20In%20this%20post%2C%20I%20will%20mention%20some%20possible%20solutions%20to%20AppFabric%20Caching%20Service%20crashes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20638px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F71246i73943213A03E965D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22appfabric.png%22%20title%3D%22appfabric.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAppFabric%20Caching%20architecture%20(%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fprevious-versions%252Fappfabric%252Fhh334311%252528v%25253dazure.10%252529%26amp%3Bdata%3D02%257C01%257CNedim.Sahin%2540microsoft.com%257C45496a89e07c490e543e08d685650167%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C636843066190753459%26amp%3Bsdata%3Dgh2CcMMTYpi11pDu8e%252Fjd7NhAkYL8N4wWgCbTtIsCqg%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ESource%3C%2FA%3E)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20the%20caching%20has%20issues%2C%20check%20the%20Event%20Viewer%20logs%20in%20the%20containers%20below%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3EWindows%20Logs%20%26gt%3B%20Application%3C%2FLI%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3EWindows%20Logs%20%26gt%3B%20System%3C%2FLI%3E%0A%3CLI%20style%3D%22font-weight%3A%20400%3B%22%3EApplications%20and%20Services%20Logs%20%26gt%3B%20Microsoft%20%26gt%3B%20Application%20Server-System%20Services%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIn%20the%20Event%20Viewer%20logs%2C%20it%20is%20likely%20that%20you%20will%20see%20one%20or%20more%20of%20these%20error%20messages%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3EEvent%20ID%20111%3A%0AAppFabricCachingService.Crash%20Microsoft.ApplicationServer.Caching.DataCacheException%3A%20ErrorCode%3ASubStatus%3AService%20initialization%20failed.%20No%20user%20action%20required.%0A%0AEvent%20ID%206%3A%0A30ecac98000000000000000000000000%0AMicrosoft.Fabric.Common.OperationCompletedException%3A%20Operation%20completed%20with%20an%20exception%20%E2%80%94%26gt%3B%20System.TimeoutException%3A%20The%20operation%20has%20timed%20out.%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1764706248%22%20id%3D%22toc-hId-1766522663%22%3EThe%20root%20cause%20and%20the%20solution%3C%2FH2%3E%0A%3CP%3ESome%20findings%20and%20fixes%20are%20below.%20Each%20of%20them%20can%20be%20implemented%20individually.%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--1180477723%22%20id%3D%22toc-hId--1178661308%22%3EService%20account%3C%2FH4%3E%0A%3CP%3EMake%20sure%20the%20AppFabric%20Caching%20service%20uses%20a%20managed%20account%20(%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fsharepoint%252Fadministration%252Fmanage-the-distributed-cache-service%2523change-the-service-account%26amp%3Bdata%3D02%257C01%257CNedim.Sahin%2540microsoft.com%257C45496a89e07c490e543e08d685650167%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C636843066190753459%26amp%3Bsdata%3DTTSGQDBKyTXMIv2%252FlWQrSJQq9Vv%252BcRTCHcW95i122C0%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EInstructions%3C%2FA%3E).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%20practice%20for%20the%20Caching%20service%20account%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%3CSPAN%20style%3D%22text-align%3A%20left%3B%20color%3A%20%23333333%3B%20text-transform%3A%20none%3B%20line-height%3A%201.7142%3B%20text-indent%3A%200px%3B%20letter-spacing%3A%20normal%3B%20font-family%3A%20inherit%3B%20font-size%3A%2016px%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20text-decoration%3A%20none%3B%20word-spacing%3A%200px%3B%20display%3A%20inline%20!important%3B%20white-space%3A%20normal%3B%20cursor%3A%20text%3B%20orphans%3A%202%3B%20float%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20background-color%3A%20%23ffffff%3B%22%3EA%20single%20account%20should%20be%20used%20for%20all%20Service%20Applications%2C%20named%20Service%20Application%20Pool%20account.%20This%20allows%20the%20administrator%20to%20use%20a%20single%20IIS%20Application%20Pool%20for%20all%20Service%20Applications.%20In%20addition%2C%20this%20account%20should%20run%20the%20following%20Windows%20Services%3A%20SharePoint%20Search%20Host%20Controller%2C%20SharePoint%20Server%20Search%2C%20and%20Distributed%20Cache%20(AppFabric%20Caching%20Service).%3C%2FSPAN%3E%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fsharepoint%252Finstall%252Faccount-permissions-and-security-settings-in-sharepoint-server-2016%2523service-account-recommendations-1%26amp%3Bdata%3D02%257C01%257CNedim.Sahin%2540microsoft.com%257C45496a89e07c490e543e08d685650167%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C636843066190763459%26amp%3Bsdata%3DKFy39UQrDh%252BLjugx5ppH4anlNKdwXuXTsuByO5heLgM%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ESource%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-562332612%22%20id%3D%22toc-hId-564149027%22%3EAccount%20permissions%3C%2FH4%3E%0A%3CP%3E%3CSPAN%3ENT%20%3C%2FSPAN%3E%3CSPAN%3EAuthority%3C%2FSPAN%3E%3CSPAN%3E%5CSystem%3C%2FSPAN%3E%20on%20the%20SQL%20AppFabric%20Database%20should%20have%20Data%20Reader%20%2F%20Data%20Writer%20permissions.%3C%2FP%3E%0A%3CP%3EAlso%2C%20in%20PowerShell%2C%20execute%20%3CCODE%3EGrant-CacheAllowedClientAccount%3C%2FCODE%3E%20command%20for%20%3CCODE%3ENT%20Authority%5CSystem%3C%2FCODE%3E%20account.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--1989824349%22%20id%3D%22toc-hId--1988007934%22%3EOther%20possible%20fixes%3C%2FH4%3E%0A%3CUL%3E%0A%3CLI%3ECheck%20if%20all%20cluster%20nodes%20are%20online%3C%2FLI%3E%0A%3CLI%3EDeactivate%20the%20antivirus%20temporarily%3C%2FLI%3E%0A%3CLI%3EKeep%20the%20operating%20system%20up-to-date%3C%2FLI%3E%0A%3CLI%3ECheck%20if%20the%20limit%20for%20number%20of%20servers%20allowed%20in%20the%20farm%20is%20not%20exceeded%3C%2FLI%3E%0A%3CLI%3EDeactivate%20Windows%20Firewall%20temporarily.%20If%20there%20is%20a%20non-Windows%20firewall%2C%20try%20opening%20these%20protocols%2Fports%3A%20SMB%2C%20SMB2%20and%20ICMP%20protocols%20TCP%20ports%20(22233%2C%2022234%2C%2022235%20and%2022236)%20Or%20445%20and%20the%20ICMP%20protocol%20TCP%20ports%20(22233%2C%2022234%2C%2022235%20and%2022236)%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E
Version history
Last update:
‎Jan 28 2019 02:11 PM
Updated by: