AppFabric Crashing Affecting NewsFeeds In SharePoint 2013

A client of me deployed the SharePoint 2013 RTM version very recently and was having a problem with newsfeeds not being updated. I went onsite to look at the issue, and in the ULS logs there were a couple different issues, namely that AppFabric was crashing. The exact errors were:

Faulting application name: DistributedCacheService.exe, version: 1.0.4632.0, time stamp: 0x4eafeccf
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x6u73421f
Exception code: 0xe0434352
Fault offset: 0x000000000000cacd
Faulting process id: 0x142c
Faulting application start time: 1d3e743683765n
Faulting application path: C:\Program Files\AppFabric 1.1 for Windows Server\DistributedCacheService.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll

Application: DistributedCacheService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.UriFormatException
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()

Which actually even robust in it’s error message, doesn’t tell you a shit ton about whats exactly going on. To get the exact error, look under the Feed Cache category and you will see the error No cache hosts are present or running in the farm.

To repair this error, follow these steps:

  1. Open up Central Administration
  2. Select Application Management
  3. Select Manage Services on Server from Service Applications
  4. Locate the Distributed Cache service, select start if stopped.

Boom news feeds should work now.


No Search Service In SharePoint 2013 Fix

Playing around with the RTM version of SharePoint Foundation 2013 today I noticed that when I stood up one farm, I got the search service but in a second one, where I felt fairly confident that I followed the same process, I did not. I have to admit that this entire situation to me was pretttttttty confusing.

Holistically speaking regarding the provisioned service applications, on server X I had all the service application I expected, however on server Y all I see is application load balancing and the security token service application. So whatever I go and try to create the search service application, however it is not being offered for instantiation. All I am seeing is app management, bcs, and secure store services. So not only was it not provisioned, I don’t even know how the hell to get it within the farm.

Navigating to PS, I attempted to use the cmdlets that I would normally use. SpSearchService isn’t there because it’s foundation and not SSE, and when I try to use the SPEnterpriseSearchServiceApplication it complains that I am running foundation. This equates to a big WTF? Furthermore, this problem extended to the State Service.

The only way to fix this within the current version is using farm configuration wizard, which will pump out the Search Administration Web Server for Search Service Application, Search Service Application, and WSS_UsageApplication. What a PITA.