Copied to clipboard

Flag this post as spam?

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


  • Kevin Stong 1 post 21 karma points
    Dec 16, 2014 @ 15:38
    Kevin Stong
    0

    Content out of sync?

    Hello community! 

    Hoping some of you good people can help us out.  We have recently moved a corporate website to Umbraco 7.1.6.  Everything is fairly stable except that periodically for some reason we are getting crashing and the following error message writen to the logs:

    2014-12-16 08:53:44,293 [13] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 36] An unhandled exception occurred
    System.FormatException: The valueDictionary is not formatted correctly and is missing any of the  'id,nodeId,__NodeId' elements
       at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent.ValidateAndSetProperty(IDictionary`2 valueDictionary, Action`1 setProperty, String[] potentialKeys)
       at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent..ctor(IDictionary`2 valueDictionary, Func`2 getParent, Func`2 getChildren, Func`3 getProperty, Boolean fromExamine)
       at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.ConvertFromXPathNavigator(XPathNavigator xpath)
       at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetUmbracoMedia(Int32 id)
       at Umbraco.Web.PublishedCache.ContextualPublishedCache`1.GetById(Boolean preview, Int32 contentId)
       at Umbraco.Web.PublishedContentQuery.DocumentById(Int32 id, ContextualPublishedCache cache, Object ifNotFound)
       at Umbraco.Web.UmbracoHelper.Media(Object id)
       at ASP._Page_Views_SiteTemplate_cshtml.<>c__DisplayClass13.<RegionSelect>b__12(TextWriter __razor_helper_writer) in XXXXXXX
       at System.Web.WebPages.WebPageBase.Write(HelperResult result)
       at ASP._Page_Views_SiteTemplate_cshtml.<>c__DisplayClass11e.<Execute>b__11b() in XXXXX
       at System.Web.WebPages.WebPageBase.<>c__DisplayClassb.<RenderSection>b__9(TextWriter tw)
       at System.Web.WebPages.WebPageBase.Write(HelperResult result)
       at ASP._Page_Views_Page_cshtml.Execute() in XXXXXX
       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
       at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
       at System.Web.WebPages.WebPageBase.Write(HelperResult result)
       at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body)
       at System.Web.WebPages.WebPageBase.PopContext()
       at System.Web.WebPages.WebPageBase.Write(HelperResult result)
       at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body)
       at System.Web.WebPages.WebPageBase.PopContext()
       at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer)
       at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
       at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17()
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)
       at System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
       at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
       at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     

    It seems the media (for some reason) gets out of sync with the database and the site crashes.  If we go back into the BackOffice and republish the nodes it syncs back up and everything is ok again.. until it isnt.  Anyone else ever see this behavior or know a reason to explain or way to fix?

     

    thanks,

    Kevin

     

  • MatsStam 50 posts 195 karma points
    Jan 23, 2015 @ 15:37
    MatsStam
    0

    I'm currently experiencing the exact same thing on my production site.

    Only thing I noticed was that our client might have used an old domain that we used for testing (during which this never happened btw) when she edited stuff in the backoffice. I have no idea if this could be the cause, but it's the only thing I've managed to find that we're doing differently. It has happened twice today, and both times a couple of minutes after our client made some changes to media references. I've removed the old binding for test (both on the iis and in backoffice).

    Guess we'll just wait and see if this happens again now...

Please Sign in or register to post replies

Write your reply to:

Draft