I am having a problem when it comes to my Index server. I get "Reason: Access to the path 'C:\WINDOWS\system32\drivers\etc\HOSTS' is denied."
The search account has RW permissions to the HOSTS file. I even added EVERYONE with Full Control and the error still triggers. Also, the HOSTS file gets deleted. I found that the Database Access Account is the one deleteing the HOSTS file.
I can create sheduled crawl with no problems. I know some people are getting access denied there. However, I get the following every minute in Event Viewer App log:
Event Type: Error
Event Source: Office SharePoint Server
Event Category: Office Server Shared Services
Event ID: 6482
Time: 7:38:59 AM
Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (fc554632-0e82-45d4-89c5-8ac9c4924d8a).
Reason: Access to the path 'C:\WINDOWS\system32\drivers\etc\HOSTS' is denied.
Techinal Support Details:
System.UnauthorizedAccessException: Access to the path 'C:\WINDOWS\system32\drivers\etc\HOSTS' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at Microsoft.Search.Administration.Security.HOSTSFile.CleanupDedicatedGathering(Hashtable HOSTSFileMappings, StringBuilder HOSTSComments, IEnumerable obsoleteHosts, String dedicatedName, Boolean isDirty)
at Microsoft.Search.Administration.Security.HOSTSFile.ConfigureDedicatedGathering(SearchServiceInstance searchServiceInstance, SPServer dedicatedWebFrontEndServer, IList`1 previousWebApplicationHostNames)
at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.SynchronizeDefaultContentSource(IDictionary applications)
at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Any help is appreciated!
I installed MOSS on our server couple of days back and I am getting the exact same error. First the file was deleted and I was getting that the hosts file was not found, so I copied it from I386 directory and then I get the same error as you. Didi you find the solution finally?