Errors when reindexing with Enterprise Search

rated by 0 users
Not Answered This post has 0 verified answers | 4 Replies | 3 Followers

Navy#1
Top 500 Contributor
57 Posts
Points 825
By: 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 |

All Replies

DanBartels
Top 25 Contributor
1,155 Posts
Points 69,765
CS Developers
By: DanBartels
Posted: Tue, Jun 3 2008 2:47 PM In reply to

 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 |
Navy#1
Top 500 Contributor
57 Posts
Points 825
By: Navy#1
Posted: Tue, Jun 3 2008 3:08 PM In reply to

 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 |
Navy#1
Top 500 Contributor
57 Posts
Points 825
By: Navy#1
Posted: Tue, Jun 3 2008 3:33 PM In reply to

 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 |
Navy#1
Top 500 Contributor
57 Posts
Points 825
By: Navy#1
Posted: Wed, Jun 4 2008 10:04 AM In reply to

 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