Copied to clipboard

Flag this post as spam?

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


  • Chris Chapman 6 posts 26 karma points
    Nov 11, 2012 @ 17:03
    Chris Chapman
    0

    All macros stop working

    Hi all,

    We are experiencing some strange behaviour on one of our Umbraco powered sites.  Basically everything runs great but randomly all Macros on Frontend seem to stop working.

    They just output:

    Error loading MacroEngine script (file: variousfileshere.cshtml)

    The first thing we tried was a republish of all nodes which made no difference.

    Then we tried to enable errors in web.config so we could get more detail and by “touching” the web.config everything started working normally again!  We therefore didn’t get any information on what was causing this issue.  The same thing has happened 5 days later so need to put a stop to this.

    Does anyone out there know of reasons why this is happens?

    umbraco v 4.8.1 (Assembly version: 1.0.4609.17579)

    Many thanks

    Chris

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 11, 2012 @ 19:22
    Jan Skovgaard
    0

    Hi Chris - Welcome to our :)

    When this happens try adding ?umbdebugshowtrace=1 to the url (unless it's on a live site where you have turned the trace off) - This gives you a trace-log where you should look for some error messages marked with red. Perhaps this can provide some usefull information on where things go wrong.

    What changes have been made to the site since this issue started? Is it a fresh install of 4.8.1 or have you upgraded from a previous version? Have you recently installed some new packages, which could be the cause?

    Also try having a look at the umbracoLog table in the database to see if something usefull can be found there - and perhaps also try viewing the server log.

    Looking forward to hearing more from you.

    /Jan

  • Chris Chapman 6 posts 26 karma points
    Nov 11, 2012 @ 20:15
    Chris Chapman
    0

    Hi Jan,

    Thanks for the quick reply.  This is happening on a live site – like I say I wanted to enable errors / trace to see what was happening in more detail but editing the web.config causes site to restart and then the problem disappears!

    Not sure what I would see as basically all Macros seem to stop working so whatever it is affects everything.

    The Umbraco Log table seems to contain quite a few NotFound entries and usual kind of things.

    The one slight odd one that appears is…

    Error adding to SiteMapProvider in loadNodes(): System.InvalidOperationException: Multiple nodes with the same URL '/' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.     at System.Web.StaticSiteMapProvider.AddNode(SiteMapNode node, SiteMapNode parentNode)     at umbraco.presentation.nodeFactory.UmbracoSiteMapProvider.loadNodes(String parentId, SiteMapNode parentNode)

    Not sure this is related though.

    Application log doesn’t show anything that isn’t just a knock on from the issue with Macros not working or normal stuff.

    I'm wondering if this could be a file permissions or macro cache related issue maybe?

    Hard to replicate - so far its only happened twice in last few weeks

     

     

     

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 11, 2012 @ 20:19
    Jan Skovgaard
    0

    And nothing has been added? Like installation of a new package in Umbraco or creation of new macroes or modification of existing ones? Has something changed on the server?

    I've seen people have some issues on older install before where they made a workaround by setting the app pool to recycle once a day for instance...I must admit I can't remember what the SiteMapProvider stuff is but I've seen that error before and I don't think it has anything do to with the error you experience at the moment.

    You don't have a local instance of the site where the issue can be replicated?

  • Chris Chapman 6 posts 26 karma points
    Nov 11, 2012 @ 20:32
    Chris Chapman
    0

    Hi Jan,

    It’s quite a new site. We didn't seem to see the issue before we moved it to live server a few weeks ago. 

    To be fair this has only happened twice in few weeks it has been live so not sure we would of necessarily seen the problem on dev (with regular restarts).

    There haven't been any changes really on live, certainly no package installs & to be fair very few content changes.  Think there was one slight user control modification (but that was done after we spotted this issue).

    I know I’m not being much help here!

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Nov 29, 2013 @ 15:37
    Ali Sheikh Taheri
    0

    I am having exactly the same problem, any solution for it? my website is on 4.8.1 too

    Cheers

    Ali

  • Chris Chapman 6 posts 26 karma points
    Nov 29, 2013 @ 16:55
    Chris Chapman
    0

    Hi Ali,

    Afraid we never got to the bottom of it.  

    Because it was happening on a live site we had umbracoDebugMode disabled so couldn’t view trace info.  As soon as we touched web.config to turn on problem went away as site restarted!

    You could leave debug on so when it happens next time you can append “?umbDebugShowTrace=true” to the URL and see some technical details on the error. 

    Note: It’s not really best practise to have enabled on live site!

    From memory we had our suspicions about issues with macro cache  - maybe something to do with moving from dev to live servers but have never proved it.

    I think we got in the habit of deleting App_Data/Temp before moving to live server (should get regenerated automatically).

    Would like to get to the bottom of this though – we had someone else get in touch other day with same issue.

    Tip:

    Useful thing we did was setup a monitor on Uptime robot to keep checking the site for the following keywords on page:

    “Error loading MacroEngine”

    Then we got an alert if it happened again

    Sorry can’t be more help.

     

    Chris

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Dec 02, 2013 @ 11:06
    Ali Sheikh Taheri
    0

    Hi Chris,

    we had exactly the same problem, it was live site and debug mode was false. and really didn't want to test it on the live environment.

    I was thinking exactly the same about your tip, do you know which website/software does that?

    I really appreciate for your help.

    Cheers

    Ali

  • Chris Chapman 6 posts 26 karma points
    Dec 02, 2013 @ 13:32
    Chris Chapman
    0

    We used http://uptimerobot.com/ I think its free 

    Let me know how you get on!

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Dec 09, 2013 @ 16:36
    Ali Sheikh Taheri
    0

    Hi Chris,

    Thanks for your help.

    I've set up the test on pingdom as we have an account with them.

    I will probably upgrade the site at some point to make sure that is not happening.

    Cheers

    Ali

Please Sign in or register to post replies

Write your reply to:

Draft