ERROR in System Log

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
7/30/2010 7:04:21 AM
Gravatar
Total Posts 110

ERROR in System Log

Hello,

I am seeing the message below in my System Log every 10 seconds or so (sometimes even more regularly).  I have no idea what they mean.

2010-07-30 01:52:29,421 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.IO.IOException: Lock obtain timed out: SimpleFSLock@C:\HostingSpaces\scdpmonl\scdpmonline.org\wwwroot\Data\Sites\1\index\write.lock
   at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
   at Lucene.Net.Index.IndexReader.AquireWriteLock()
   at Lucene.Net.Index.IndexReader.DeleteDocument(Int32 docNum)
   at Lucene.Net.Index.IndexReader.DeleteDocuments(Term term)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath) 

Should I be concerned by this and if so, any thoughts on how can resolve the issue causing these log entries?

Thanks.

7/30/2010 9:42:08 AM
Gravatar
Total Posts 18439

Re: ERROR in System Log

I would take the app offline using app_offline.htm, purge all rows from mp_IndexingQueue and mp_TaskQueue, then I would touch Web.config to recycle the app, bring the site back online and rebuild the search index.

Not sure the cause, possibly file permissions got messed up, possibly your host moved your site to a new drive or server and the file system paths changed.

Hope it helps,

Joe

7/30/2010 11:04:55 AM
Gravatar
Total Posts 110

Re: ERROR in System Log

Thanks Joe,

That seems to have solved that issue, however I am now receiving lots of these messages in the log.

2010-07-30 09:03:30,820 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.InvalidOperationException: There is an error in XML document (20, 64881). ---> System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: content, IndexItem. Line 20, position 64881.

   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlTextReaderImpl.MoveToNextContentNode(Boolean moveIfOnContentNode)
   at System.Xml.XmlTextReaderImpl.ReadContentAsBinary(Byte[] buffer, Int32 index, Int32 count)
   at System.Xml.XmlTextReaderImpl.ReadElementContentAsBinary(B

 

yte[] buffer, Int32 index, Int32 count)
   at System.Xml.XmlTextReaderImpl.ReadElementContentAsBase64(Byte[] buffer, Int32 index, Int32 count)
   at System.Xml.XmlTextReader.ReadElementContentAsBase64(Byte[] buffer, Int32 index, Int32 count)
   at System.Xml.Serialization.XmlSerializationReader.ReadByteArray(Boolean isBase64)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderIndexItem.Read2_IndexItem(Boolean isNullable, Boolean checkType)
   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 mojoPortal.Business.SerializationHelper.DeserializeFromString(Type type, String serializedObject)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath) 

 

Any ideas?

7/30/2010 1:47:48 PM
Gravatar
Total Posts 18439

Re: ERROR in System Log

sounds like a bad row in the mp_TaskQueue table, I would purge that table again and then touch Web.config to recycle the app.

Hope it helps,

Joe

8/2/2010 9:40:12 AM
Gravatar
Total Posts 110

Re: ERROR in System Log

I took the app offline, purged MP-TaskQueue table and recycled the app as you suggested but I am still receiving the same errors in the log.

8/3/2010 7:34:56 AM
Gravatar
Total Posts 18439

Re: ERROR in System Log

Hi David,

Can you look in the mp_TaskQueue table and see if there are any rows? If there are only a few rows, please copy the contents of the SerializedTaskObject field for each row into a text file and email it to me? joe dot audette at g mail dotcom

If there are lots of rows, just send me a couple examples.

The error indicates it can't deserialize the object so it makes me think the xml in the field is getting malformed somewhere along the way.

Best,

Joe

8/3/2010 8:07:58 AM
Gravatar
Total Posts 18439

Re: ERROR in System Log

Hi David,

My bad, I should have asked you to look at the mp_IndexingQueue table and send a few examples from the SerializedItem field. The error indicates it is failing to deserialize index items not task items as I thought at first.

Thanks,

Joe

8/3/2010 8:57:33 AM
Gravatar
Total Posts 18439

Re: ERROR in System Log

Hi David,

It looks like the data is being truncated so it is missing a closing tag and possibly other tags in the xml.

Can you verify that the field SerializedItem is of type nvarchar(max)?

This data type should hold up to 2 GB of text so it should not be truncating.

For now I would delete the remaining rows in mp_IndexingQueue and see if the problem comes back again later.

How many rows are there in the mp_IndexingQueue table?

Best,

Joe

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