Errors when reindexing with Enterprise Search

rated by 0 users
This post has 4 Replies | 3 Followers

Top 500 Contributor
Posts 75
Points 1,015
Navy#1 Posted: Tue, Jun 3 2008 8:16 AM

 We deleted several forums and blogs and tried to re-index the whole site.  I deleted everything in the SearchIndex folder, set isindexed=0 in cs_posts, then re-started the search service.  I am seeing the following errors in the event log.  Also, there are hundreds of documents in  C:\Windows\Temp with size=0

Error Indexing Attachment : System.NullReferenceException: Object reference not set to an instance of an object.
at CommunityServer.Enterprise.Search.SearchableDocument.SaveToDisk(PostAttachment pa, String name)
at CommunityServer.Enterprise.Search.SearchableDocument.AttachmentFileLocation(Int32 settingsID, PostAttachment attachment)
at CommunityServer.Enterprise.Search.SearchableDocument.CreateDocument(Section s, Post p, String[] tags)

 

  • | Post Points: 20
Top 25 Contributor
Posts 1,160
Points 70,020
CS Developers

 Make sure the

   <CentralizedFileStorage>
     <fileStore name="CommunityServer.Components.PostAttachments" type="CommunityServer.Components.FileSystemFileStorageProvider, CommunityServer.Components" basePath="[local path]" downloadValidatorType="CommunityServer.Components.PostAttachmentFileAccessValidator, CommunityServer.Components" />
   </CentralizedFileStorage>

of your communityserver.config or override in your tasks folder has the correct file path for your post attachments (or the correct provider).  By default, we set this to a relative application path which only works under the web context.

Dan

  • | Post Points: 20
Top 500 Contributor
Posts 75
Points 1,015
Navy#1 replied on Tue, Jun 3 2008 3:08 PM

 Soon as I did that I got the error below and now my site is down.  It won't come back up even  when I change it back.

Sorry, there was a problem with your last request!

Either the site is offline or an unhandled error occurred. We apologize and have logged the error. Please try your request again or if you know who your site administrator is let them know too

 

  • | Post Points: 5
Top 500 Contributor
Posts 75
Points 1,015
Navy#1 replied on Tue, Jun 3 2008 3:33 PM

 Restored CS.config from backup and made the change that you suggested.  Error still persists!  I deleted the old indexes, set isindexed=0  and restarted the search job.

This happens for every attachment.  1000.267.22556.motionforsummaryjudgmentreply.doc is sample of file that is in C:\Windows\Temp with size of 0.  Every 5 minutes another 100 files are added to that directory.

 

  • | Post Points: 5
Top 500 Contributor
Posts 75
Points 1,015
Navy#1 replied on Wed, Jun 4 2008 10:04 AM

 Ok, Fixed one problem and found another.  You need to put a "\" at end of the local file path.

Now I am getting the following in the Event Log.

Error Indexing Attachment : System.ApplicationException: TextFilter error: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at CommunityServer.Enterprise.Search.IFilter.TextFilter.ᐂ.Init(IFILTER_INIT grfFlags, Int32 cAttributes, IntPtr aAttributes, ᐆ& pdwFlags) at CommunityServer.Enterprise.Search.IFilter.TextFilter.ᐁ() at CommunityServer.Enterprise.Search.IFilter.TextFilter.ᐁ() at CommunityServer.Enterprise.Search.SearchableDocument.CreateDocument(Section s, Post p, String[] tags)

 

  • | Post Points: 5
Page 1 of 1 (5 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com