Strange error in event log

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/27/2008 3:49:39 PM
Gravatar
Total Posts 45

Strange error in event log

I keep getting these errors:

>>>

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/1404118656/Root

Process ID: 3968

Exception: System.IO.FileNotFoundException

Message: Could not find file '...\Sites\2\index\_1or.fnm'.

<<<

I guess it's related to indexing. I don't see _1or.fnm in this folder, but I do see:

_1ow.cfs, _1zl.cfs, _20m.cfs, _21e.cfs, _205.cfs, _214.cfs, deletable, and segments

8/27/2008 3:52:36 PM
Gravatar
Total Posts 45

Re: Strange error in event log

I have a bit more information about what's causing this. Whenever I change the URL of a page, this error occurs.

8/28/2008 6:22:44 AM
Gravatar
Total Posts 18439

Re: Strange error in event log

Hi,

Something is corrupt in your search index.

What I would try is delete all the search index files from /Data/Sites/[SiteID]/index

and then do a search and it will rebuild the search index.

SiteID is most likely 1

Hope it helps,

Joe

8/28/2008 11:21:52 AM
Gravatar
Total Posts 45

Re: Strange error in event log

I did a search and got this message:

The Search Index for the site is currently being built. Please wait a few minutes and try your search again.
 

After several minutes, the index folder is still empty.

8/28/2008 1:21:04 PM
Gravatar
Total Posts 18439

Re: Strange error in event log

It can take a little while depending on how much content your site has. First it creates rows in the database with the items to index then it processes those rows to write the index.

Are you seeing any new errors in your log?

Hope it helps,

Joe

8/28/2008 1:28:12 PM
Gravatar
Total Posts 45

Re: Strange error in event log

Interestingly, deleting all the files in the index folder has the side effect of eliminating the errors whenever the URL of a page is changed. It's just that the search feature no longer works.

8/28/2008 1:31:48 PM
Gravatar
Total Posts 18439

Re: Strange error in event log

Are you seeing errors in your log?

Are there any rows in the mp_IndexingQueue table?

Are you sure the folder is still writable?

8/28/2008 2:08:00 PM
Gravatar
Total Posts 45

Re: Strange error in event log

It turns out that the index process was failing because I created a subfolder in the index folder. Instead of deleting all the existing files, I moved them into the subfolder just in case I needed to move them back. After moving the subfolder and running another search, three files were created in the index folder: deletable, segments, _1p3.cfs.

However, I noticed countless errors in the log file. Here's the stack trace:

2008-08-28 11:54:54,292 [2884] ERROR mojoPortal.Business.WebHelpers.IndexWriterTask [(null)] - System.InvalidOperationException: There is an error in XML document (1, 2). ---> System.InvalidOperationException: <Envelope xmlns='http://schemas.xmlsoap.org/soap/envelope/'> was not expected.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderIndexItem.Read3_IndexItem()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at mojoPortal.Business.SerializationHelper.DeserializeFromString(Type type, String serializedObject)
at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)

On top of that, whenever I run another search, I get the same exact error as I reported in the other thread about RSS feeds and the extjs-viewport1 skin. This happens when SearchResults.aspx is trying to render.

8/28/2008 2:27:27 PM
Gravatar
Total Posts 18439

Re: Strange error in event log

What I would do is:

1 clear your log
2 delete all rows from mp_IndexingQueue and mp_TaskQueue
3 delete all contents of the index folder again
4 type a space in Web.config and save it to recycle the app
5 clear the log again
6 do another search to rebuild the index again
7 wait 5 or 10 minutes and search again

We changed recently from serializing tasks and index queue items as soap to serializing them as xml because the SoapFormatter doesn't work in medium trust. I think you still have some rows serialized as soap and so it errors on trying to deserialize it as xml

Hope it helps,

Joe

8/28/2008 3:46:12 PM
Gravatar
Total Posts 45

Re: Strange error in event log

Yup. This worked. Thanks!

You must sign in to post in the forums. This thread is closed to new posts.