Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1461 posts 1883 karma points
    Mar 26, 2020 @ 09:56
    Gordon Saxby
    0

    The Xml cache is corrupt

    We keep getting this error every time the website is restarted (IIS app pool recycled / website restarted).

    The XML Data Integrity Report tab does NOT show any errors.

    Deleting \app_data\umbraco.config and doing a site republish solves the problem, or at least removes the "XML cache is corrupt" error but it does not appear to be a permanent fix.

         2020-03-26 09:44:11,599 [P6108/D2/T33] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
    System.Exception: The Xml cache is corrupt. Use the Health Check data integrity dashboard to fix it.
       at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetXml(UmbracoContext umbracoContext, Boolean preview)
       at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.HasContent(UmbracoContext umbracoContext, Boolean preview)
       at Umbraco.Web.PublishedCache.ContextualPublishedCache`1.HasContent(Boolean preview)
       at Umbraco.Web.UmbracoModule.EnsureHasContent(UmbracoContext context, HttpContextBase httpContext)
       at Umbraco.Web.UmbracoModule.EnsureUmbracoRoutablePage(UmbracoContext context, HttpContextBase httpContext)
       at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    

    Any ideas what could be causing this?

  • Gordon Saxby 1461 posts 1883 karma points
    Mar 26, 2020 @ 10:55
    Gordon Saxby
    0

    Hmm, I found that there were a load of unresolved changes being indicated by uSync. None of them were changes that had not actually been done (i.e. the actual DataTypes, Templates, etc were already as they should be).

    I "processed" them all by manually saving each listed item in Umbraco.

    I then cycled the app pool and restarted the website ... and it loaded up OK (no XML cache error). Could that have been the problem / solution??

  • Simon steed 376 posts 688 karma points
    May 23, 2022 @ 14:14
    Simon steed
    0

    I'm getting the same issue on a live site now, added more info to this post https://our.umbraco.com/forum/using-umbraco-and-getting-started/85834-the-xml-cache-is-corrupt-use-the-health-check-data-integrity-dashboard-to-fix-it

    But no idea what is causing it :( Did you manage to get to the bottom of it at all?

  • Gordon Saxby 1461 posts 1883 karma points
    May 23, 2022 @ 14:32
    Gordon Saxby
    0

    That was a while ago now, so can't remember specifically - except for my last comment above. I would expect that was the solution in our case?

Please Sign in or register to post replies

Write your reply to:

Draft