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 114 posts 269 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 3325 posts 11170 karma points MVP 5x 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 114 posts 269 karma points
    Mar 17, 2015 @ 16:44
    Mikkel Johansen
    0

    Hi Dave

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

  • Mikkel Johansen 114 posts 269 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 3325 posts 11170 karma points MVP 5x admin c-trib
    Mar 17, 2015 @ 18:07
    Dave Woestenborghs
    0

    Good luck on your mission :-)

    Dave

  • Shannon Deminick 1510 posts 5195 karma points hq
    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.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies