Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mikkel Johansen 116 posts 292 karma points
    Mar 17, 2015 @ 16:31
    Mikkel Johansen
    0

    Rebuild Internal Index fails

    Hi

    Using Umbraco version 7.1.8

    The Internal Index does suddenly not get indexed. It does not get indexed on startup and I cannot do a rebuild through the Examine Dashboard.

    I get this error:

    The index could not be rebuilt at this time, most likely there is another thread currently writing to the index. Error: System.NullReferenceException: Object reference not set to an instance of an object.
       at Umbraco.Core.Services.UserService.GetProfileById(Int32 id)
       at Umbraco.Core.Models.ContentExtensions.GetCreatorProfile(IContentBase content)
       at Umbraco.Core.Services.EntityXmlSerializer.Serialize(IContentService contentService, IDataTypeService dataTypeService, IContent content, Boolean deep)
       at Umbraco.Core.Services.EntityXmlSerializer.AddChildXml(IContentService contentService, IDataTypeService dataTypeService, IContent[] originalDescendants, IEnumerable`1 currentChildren, XElement currentXml)
       at Umbraco.Core.Services.EntityXmlSerializer.AddChildXml(IContentService contentService, IDataTypeService dataTypeService, IContent[] originalDescendants, IEnumerable`1 currentChildren, XElement currentXml)
       at Umbraco.Core.Services.EntityXmlSerializer.Serialize(IContentService contentService, IDataTypeService dataTypeService, IContent content, Boolean deep)
       at Umbraco.Core.Services.PackagingService.Export(IContent content, Boolean deep, Boolean raiseEvents)
       at Umbraco.Core.Models.ContentExtensions.ToDeepXml(IContent content)
       at UmbracoExamine.DataServices.UmbracoContentService.GetLatestContentByXPath(String xpath)
       at UmbracoExamine.BaseUmbracoIndexer.GetXDocument(String xPath, String type)
       at UmbracoExamine.BaseUmbracoIndexer.AddNodesToIndex(String xPath, String type)
       at UmbracoExamine.BaseUmbracoIndexer.PerformIndexAll(String type)
       at Examine.LuceneEngine.Providers.LuceneIndexer.IndexAll(String type) in x:\Projects\Examine\Examine\Projects\Examine\LuceneEngine\Providers\LuceneIndexer.cs:line 675
       at UmbracoExamine.BaseUmbracoIndexer.IndexAll(String type)
       at UmbracoExamine.BaseUmbracoIndexer.PerformIndexRebuild()
       at UmbracoExamine.UmbracoContentIndexer.RebuildIndex()
       at Umbraco.Web.WebServices.ExamineManagementApiController.PostRebuildIndex(String indexerName)

     

    I have tried to remove the App_Data\Temp folder, but that did not help.

    Does anybody have a clue on what I can do?

    /Mikkel

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Mar 17, 2015 @ 16:37
    Dave Woestenborghs
    0

    Did you delete a user before you got this error ? The error looks to me that it can't find a user profile.

    Dave

  • Mikkel Johansen 116 posts 292 karma points
    Mar 17, 2015 @ 16:44
    Mikkel Johansen
    0

    Hi Dave

    Hmm. Maybe. But what user is it looking for?

  • Mikkel Johansen 116 posts 292 karma points
    Mar 17, 2015 @ 17:14
    Mikkel Johansen
    100

    Thanks Dave

    You got me on the right track. It seems that a user has been deleted (through API).

    My mission is now to clean up the mess in the DB.

     

    /Mikkel 

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Mar 17, 2015 @ 18:07
    Dave Woestenborghs
    0

    Good luck on your mission :-)

    Dave

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    Mar 18, 2015 @ 00:05
    Shannon Deminick
    0

    Looks like we're missing some null checks in the core from EntityXmlSerializer.Serialize and upward in that stack.

Please Sign in or register to post replies

Write your reply to:

Draft