'Crawl fails with "The SharePoint server was moved to a different location"'

Issue:

Crawl fails with the following error The SharePoint server was moved to a different location. (0x8004fd12)” and following event is logged:

Log Name:      Application

Source:        Microsoft-SharePoint Products-SharePoint Server Search

Date:          12/13/2011 1:06:38 PM

Event ID:      14

Task Category: Gatherer

Level:         Warning

Keywords:    

User:          <user>

Computer:      **************

Description:

The start address <URL> cannot be crawled.

Context: Application 'SSA4', Catalog 'Portal_Content'

Details:

The SharePoint server was moved to a different location.   (0x8004fd12)

Event Xml:

<Event xmlns="https://schemas.microsoft.com/win/2004/08/events/event">

  <System>

    <Provider Name="Microsoft-SharePoint Products-SharePoint Server Search" Guid="{C8263AFE-83A5-448C-878C-1E5F5D1C4252}"

/>

    <EventID>14</EventID>

    <Version>14</Version>

    <Level>3</Level>

    <Task>137</Task>

    <Opcode>0</Opcode>

    <Keywords>0x4000000000000000</Keywords>

    <TimeCreated SystemTime="2011-12-13T21:06:38.750770500Z" />

    <EventRecordID>230153</EventRecordID>

    <Correlation />

    <Execution ProcessID="2564" ThreadID="7884" />

    <Channel>Application</Channel>

    <Computer>*******************************</Computer>

    <Security UserID="S-1-5-21-488209771-1784051945-618671499-14650" />

  </System>

  <EventData>

    <Data Name="string0">******************************</Data>

    <Data Name="string1">

Context: Application 'SSA4', Catalog 'Portal_Content'

Details:

The SharePoint server was moved to a different location.   (0x8004fd12)</Data>

  </EventData>

</Event>

Resolution

1.Login to the server hosting the crawl component.

2.Make an entry in the host file for the URL pointing to one of the WFEs

  • Note: Bypassing the loadbalancing device

3.Try to browse the site and check if in the address bar the URL of the site gets appended with the querystring “ ?aspxautodetectcookiesupport=1” and in subsequent browsing of the site you don’t see this query string.

4.Check the session state setting for the website in IIS, set session state mode to In process and Cookie Mode to “Use Cookies”

5.Once done start the full crawl and we should be in good state.