Copied to clipboard

Flag this post as spam?

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


  • Arlan Galvez 31 posts 161 karma points
    3 days ago
    Arlan Galvez
    0

    Website down every day for a few minutes recurrently Umbraco 7.6.3 :(

    Hi all, We are facing a serious issue because my website is getting this error every day on slave server on distributed environment. I'm using Umbraco 7.6.3 on Azure. About a week ago my website is down everyday and I only get this weird error on logs and I don't know what is happening on the app. The app availability is down for a couple of minutes and it keeps continue. How can we fix this?

    2019-02-11 05:23:51,471 [P2188/D2/T43] ERROR Umbraco.Web.Scheduling.KeepAlive - Failed (at "https://{{websitedomain}}/umbraco").
    System.Threading.Tasks.TaskCanceledException: A task was canceled.
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Umbraco.Web.Scheduling.KeepAlive.<PerformRunAsync>d__4.MoveNext()
     2019-02-11 05:30:31,517 [P2188/D2/T48] ERROR Umbraco.Web.Scheduling.KeepAlive - Failed (at "https://{{websitedomain}}/umbraco").
    System.Threading.Tasks.TaskCanceledException: A task was canceled.
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Umbraco.Web.Scheduling.KeepAlive.<PerformRunAsync>d__4.MoveNext()
    

    Than you.

  • Craig Mayers 164 posts 485 karma points
    2 days ago
    Craig Mayers
    0

    Hi Arlan,

    Can you ping the site Url(s) on each server? Basically you need to be able to resolve each site address on your server(s).

    See the following docs for more information: https://our.umbraco.com/documentation/Getting-Started/Data/Scheduled-Publishing/

    Specifically for you as it seems you are running in a Load Balanced environment:

    https://our.umbraco.com/documentation/Getting-Started/Setup/Server-Setup/Load-Balancing/flexible#scheduling-and-master-election

    Thanks

    Craig

  • Arlan Galvez 31 posts 161 karma points
    2 days ago
    Arlan Galvez
    0

    Hi Craig,

    Sadly I made all this commented changes a few moths ago, also taking into consideration all azure and cache approaches. But about a week ago suddenly our website crashes without any weird issue. We did not publish any code for a long time ago,

    Greetings,

    Arlan

  • Nicholas Westby 1852 posts 6104 karma points c-trib
    2 days ago
    Nicholas Westby
    0

    Some things to try (in no particular order):

    • Configure TLS 1.2 to be the default: https://blogs.perficient.com/2016/04/28/tsl-1-2-and-net-support/
    • Apply Windows updates (not sure that's an option on Azure, depending on your configuration).
    • Upgrade Umbraco to the latest version (pre 7.7 is a bit of a pain, but doable).
    • Configure your domain in umbracoSettings.config.
    • Ensure SSL is properly configured (e.g., set umbracoUseSsl to true on the web.config).
    • Configure IIS to not restart the site if there are 5 errors in 5 minutes (a feature known as rapid fail protection that is usually enabled by default).
    • Configure ImageProcessor so the cached images are stored outside of the website folder.
    • Change fcnMode in the web.config: https://shazwazza.com/post/all-about-aspnet-file-change-notification-fcn/
  • Arlan Galvez 31 posts 161 karma points
    2 days ago
    Arlan Galvez
    1

    Hello Nicholas,

    Thank you for your quick response, I will take into consideration the approaches I did not use right now.

    • Configure TLS 1.2 to be the defaul (CHECKED)
    • Apply Windows updates (not an option, azure web app does not have this). (NA)
    • Upgrade Umbraco to the latest version (pre 7.7 is a bit of a pain, but doable). (CONSIDERED. WE ARE WORKING ON THIS)
    • Configure your domain in umbracoSettings.config. (CHECKED)
    • Ensure SSL is properly configured (e.g., set umbracoUseSsl to true on the web.config). (CHECKED)
    • Configure IIS to not restart the site if there are 5 errors in 5 minutes (a feature known as rapid fail protection that is usually enabled by default). (TO BE CONSIDERED, but on azure load balancing environment I really have no clue how to do this)
    • Configure ImageProcessor so the cached images are stored outside of the website folder. (CHECKED)
    • Change fcnMode in the web.config. (TO BE CONSIDERED)

    I'll let you know when I make all the changes and I'll give some feedback about this.

    Thank you so much for your time and patience.

    Arlan

  • Nicholas Westby 1852 posts 6104 karma points c-trib
    2 days ago
    Nicholas Westby
    0

    Looks like there may be a way to disable rapid fail protection from an Azure web app (TLDR: an XML transform file): https://stackoverflow.com/a/43840377/2052963

Please Sign in or register to post replies

Write your reply to:

Draft