SharePoint 2010: Crawls get paused if the crawl components temp folder is deleted

Article ID: 2628230 - View products that this article applies to.
Expand all | Collapse all

Symptoms

Consider the following scenario:

You have a SharePoint Server 2010 environment where crawls on some of the content sources do not appear to be making any progress at all for a significant period of time. The following error is logged in the SharePoint ULS logs:

"Application 'crawl component name' - failed to CreateTempFolderForCacheFiles"

The following error can also be seen in the Application Event Log of the crawl component's host server:

"The system cannot find the path specified. (0x80070003)"

Cause

Every crawl component has a local temporary folder where the index files are created. If the local folder gets deleted, the search service automatically attempts to re-create the folder. However, if the search service fails to create the folder, you will not be able to initiate crawling on any of the content sources associated to the crawl component. 

Resolution

In order to resolve this problem, please create the folder at the appropriate path with the correct name. Once the folder has been created, the crawls should be able to get started. The path and the name of the folder that needs to be created can be determined using PowerShell. Run the following PowerShell commands on the server that hosts the crawl component having the problem:

$app = Get-SPEnterpriseSearchServiceApplication "<Name of your Search Service Application>"
$crawlComponents = Get-SPEnterpriseSearchCrawlComponent -CrawlTopology $app.CrawlTopologies.ActiveTopology | where {$_.ServerName.ToLower().Equals($Env:COMPUTERNAME.ToLower()) }
foreach ($component in $crawlComponents)
{
 $path = $component.IndexLocation + "\" + $component.Name
 Write-Host "Crawl Component "$component.Name " is hosted on the current server and is using the folder " $path
}

Properties

Article ID: 2628230 - Last Review: March 25, 2014 - Revision: 3.0
Applies to
  • Microsoft SharePoint Server 2010
Keywords: 
KB2628230

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com