Indexing service issues - Root element is missing

Discussions on webmail and the Professional version.
Post Reply
bigreddastud
Posts: 46
Joined: Tue Apr 19, 2005 7:30 pm

Indexing service issues - Root element is missing

Post by bigreddastud »

I have a small server (ME v9.72) with a number of inboxes that are not indexing. I look at the index service logs, and it's constantly throwing this log entry. I've tried recycling the index service, but that didn't help. I've also tried creating the "_change.dty" file in the mailbox root, but that didn't work either.

Code: Select all

2018-10-26 17:11:45,759 [7] ERROR - Encountered a problem while attempting to find an index update request: Root element is missing.
2018-10-26 17:12:45,763 [7] INFO  - 5 pending index updates.
2018-10-26 17:12:45,764 [7] ERROR - Encountered a problem while attempting to find an index update request: Root element is missing.
=== Log File Closed ===
=== Log File Opened ===
2018-10-26 17:13:45,699 [4] DEBUG - 0 pending index initialisations.
2018-10-26 17:13:45,763 [4] INFO  - 5 pending index updates.
2018-10-26 17:13:45,763 [4] DEBUG - Found index update request: user1@domain.com.upd.
2018-10-26 17:13:45,763 [4] ERROR - Encountered a problem while attempting to find an index update request: Root element is missing.
2018-10-26 17:13:45,764 [4] DEBUG - Encountered an exception while attempting to find an index update request:
System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
   at System.Xml.Linq.XDocument.Load(TextReader textReader, LoadOptions options)
   at MailEnable.MailboxSearching.VerificationStateManager.Load()
   at MailEnable.MailboxSearching.VerificationStateManager.get_Instance()
   at MailEnable.MailboxSearching.IndexingRequestsProcessor.GetNextOperation()
2018-10-26 17:13:47,483 [7] INFO  - MailEnable Mailbox Search Indexing Service stopping.
=== Log File Closed ===
=== Log File Opened ===
2018-10-26 17:13:49,777 [4] DEBUG - Initialising processor for index initialisation requests in X:\Mailroot\CONFIG\MailboxSearchIndexing\InitialisationRequests. Concurrency limit is 4.
2018-10-26 17:13:49,831 [4] DEBUG - Initialising processor for index update requests in X:\Mailroot\CONFIG\MailboxSearchIndexing\UpdateRequests. Concurrency limit is 4.
2018-10-26 17:13:49,832 [4] INFO  - MailEnable Mailbox Search Indexing Service starting.
2018-10-26 17:13:49,833 [4] INFO  - Started the initialisation processor.
2018-10-26 17:13:49,833 [4] INFO  - Started the update processor.
2018-10-26 17:14:49,938 [3] DEBUG - 0 pending index initialisations.
2018-10-26 17:14:49,940 [4] INFO  - 5 pending index updates.
2018-10-26 17:14:49,940 [4] DEBUG - Found index update request: user1@domain.com.upd.
2018-10-26 17:14:49,965 [4] ERROR - Encountered a problem while attempting to find an index update request: Root element is missing.
2018-10-26 17:14:49,980 [4] DEBUG - Encountered an exception while attempting to find an index update request:
System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
   at System.Xml.Linq.XDocument.Load(TextReader textReader, LoadOptions options)
   at MailEnable.MailboxSearching.VerificationStateManager.Load()
   at MailEnable.MailboxSearching.VerificationStateManager.get_Instance()
   at MailEnable.MailboxSearching.IndexingRequestsProcessor.GetNextOperation()
I can't tell what file(s) is missing the "root element" based on the rather vague error in the log file. Can you give me any suggestions? Everything besides indexing seems to work fine.

FYI - A quick glance at the logs, and seems like it's been doing this for about 7 months, no major system changes during that time, same version of ME running too, IIRC. Back in March, logs show it was working OK, just stopped one day and began throwing the errors shown above.

Code: Select all

2018-03-03 17:12:18,248 [7] INFO  - Updating search index for user1@domain.com (Optimise).
2018-03-03 17:12:18,252 [7] INFO  - Getting items for updating for user1@domain.com.
2018-03-03 17:12:18,252 [7] INFO  - Deleting updates file for user1@domain.com after processing.
2018-03-03 17:12:18,253 [7] INFO  - Indexing 1 items for user1@domain.com.
=== Log File Opened ===
2018-03-03 17:13:22,599 [4] INFO  - MailEnable Mailbox Search Indexing Service starting.
2018-03-03 17:13:22,620 [4] INFO  - Started the initialisation processor.
2018-03-03 17:13:22,620 [4] INFO  - Started the update processor.
2018-03-03 17:45:22,672 [7] INFO  - 1 pending index updates.
2018-03-03 17:45:22,695 [7] ERROR - Encountered a problem while attempting to find an index update request: Root element is missing.
2018-03-03 17:46:22,702 [7] INFO  - 1 pending index updates.
2018-03-03 17:46:22,702 [7] ERROR - Encountered a problem while attempting to find an index update request: Root element is missing.
2018-03-03 17:47:22,705 [7] INFO  - 1 pending index updates.
2018-03-03 17:47:22,705 [7] ERROR - Encountered a problem while attempting to find an index update request: Root element is missing.
It's been this way ever since...

bigreddastud
Posts: 46
Joined: Tue Apr 19, 2005 7:30 pm

Re: Indexing service issues - Root element is missing

Post by bigreddastud »

Anyone?

MailEnable-Ian
Site Admin
Posts: 9738
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: Indexing service issues - Root element is missing

Post by MailEnable-Ian »

Hi,

The first step is to upgrade to version 9.81 as there were fixes in this area.

http://www.mailenable.com/downloadprevious.asp
Regards,

Ian Margarone
MailEnable Support

bigreddastud
Posts: 46
Joined: Tue Apr 19, 2005 7:30 pm

Re: Indexing service issues - Root element is missing

Post by bigreddastud »

MailEnable-Ian wrote:Hi,

The first step is to upgrade to version 9.81 as there were fixes in this area.

http://www.mailenable.com/downloadprevious.asp
Thanks Ian - I finally had a chance to upgrade to latest version (v10.19) but it's still throwing the same error. Are there temp files I can clean up that may be causing problems, or files that must exist but perhaps were unknowingly deleted?

Code: Select all

2018-11-26 18:40:04,274 [7] DEBUG - Found index update request: user1@domain.com.upd.
2018-11-26 18:40:04,274 [7] ERROR - Encountered a problem while attempting to find an index update request: Root element is missing.
2018-11-26 18:40:04,274 [7] DEBUG - Encountered an exception while attempting to find an index update request:
System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
   at System.Xml.Linq.XDocument.Load(TextReader textReader, LoadOptions options)
   at MailEnable.MailboxSearching.VerificationStateManager.Load()
   at MailEnable.MailboxSearching.VerificationStateManager.get_Instance()
   at MailEnable.MailboxSearching.IndexingRequestsProcessor.GetNextOperation()

StormFiber
Posts: 2
Joined: Tue Nov 27, 2018 1:57 pm

Re: Indexing service issues - Root element is missing

Post by StormFiber »

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

You must have CCF 2009 SP1 Quick Fix Engineering (QFE) installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply the hotfix if the affected files are not being used.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
https://t.me/pump_upp

bigreddastud
Posts: 46
Joined: Tue Apr 19, 2005 7:30 pm

Re: Indexing service issues - Root element is missing

Post by bigreddastud »

I've been tinkering with this the last few days and I think I've stumbled across the following folder that seems to have corrected my issue.

[[Mailroot]]\Config\MailboxSearchIndexing\InitialisationRequests

Creating an empty file in this folder with the syntax "user@domain.com.upd" caused ME to recreate the indexes from scratch. I'm not seeing those "Root Element is Missing" errors in the log any longer.

I built this little script that seems to work for me. Just supply the domain and configuration root and it will auto-generate the *.upd" files in the InitialisationRequests folder for *all* mailboxes on that domain.


Code: Select all

REM -----------------------------------------------
REM - Re-initialize indexes for an entire domain
REM -----------------------------------------------
REM Set these values, don't include the trailing slashes on paths
REM  GOOD: C:\Program Files (x86)\Mail Enable
REM  BAD:  C:\Program Files (x86)\Mail Enable\
REM -----------------------------------------------
REM Do not put spaces before/after the equal sign (=)
REM  GOOD: SET variable=someValue
REM  BAD:  SET variable = thisIsNotGoingToWorkCorrectly
REM -----------------------------------------------

SET mailEnableDomain=yourDomain.com
SET mailEnableMailRootPath=D:\mailroot

REM -----------------------------------------------
REM -->No need to edit anything beyond this point:
REM -----------------------------------------------
SET mailEnableIndexerPath=%mailEnableMailRootPath%\Config\MailboxSearchIndexing\InitialisationRequests
for /f "usebackq delims=|" %f in (`dir /b /A:D "%mailEnableMailRootPath%\POSTOFFICES\%mailEnableDomain%\mailroot"`) do echo 1 > "%mailEnableIndexerPath%\%f@%mailEnableDomain%.upd"
echo Done

Post Reply