Copied to clipboard

Flag this post as spam?

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


  • Mario Lopez 168 posts 952 karma points MVP 3x c-trib
    Oct 29, 2019 @ 21:48
    Mario Lopez
    0

    Load balancing and umbracoApplicationUrl

    Hey people, just reading the docs I can't figure out what the value of umbracoApplicationUrl must be in a load balanced configuration. Should each machine (public/master) point to the master's umbraco url or each one to its own umbraco url?

    Thanks.

  • Jeffrey Veer 41 posts 308 karma points
    Oct 30, 2019 @ 08:14
    Jeffrey Veer
    100

    Hi Mario,

    The umbracoApplicationUrl should be set to reach itself. In case of a loadbalanced environment this should be the url to reach it's own machine.

    Regarding the documentation found here: https://our.umbraco.com/documentation/reference/config/umbracosettings/#webrouting

    umbracoApplicationUrl: defines the Umbraco application url, i.e. how the server should reach itself. By default, Umbraco will guess that url from the first request made to the server. Use that setting if the guess is not correct (because you are behind a load-balancer, for example). Format is: "http://www.mysite.com/umbraco" i.e. it needs to contain the scheme (http/https), complete hostname, and Umbraco path.

  • Mario Lopez 168 posts 952 karma points MVP 3x c-trib
    Oct 30, 2019 @ 10:19
    Mario Lopez
    1

    Thanks, I missed the 'itself' part. :/

    I'm just having a real weird issue with a load balanced scenario and not sure if was setting that up correctly.

  • Jeffrey Veer 41 posts 308 karma points
    Oct 30, 2019 @ 10:21
    Jeffrey Veer
    0

    What's the issue you are facing? Might be able to help you there.

  • Mario Lopez 168 posts 952 karma points MVP 3x c-trib
    Oct 30, 2019 @ 21:23
    Mario Lopez
    0

    I have a CI deployment from Octopus, when this happens the slaves throw a 'The Xml cache is corrupt. Use the Health Check data integrity dashboard to fix it.' error

    In the master's logs I get lots of 'Umbraco.Web.UmbracoModule - Status code is 404 yet TrySkipIisCustomErrors is false - IIS will take over'

    Also in the master I get errors recreating the Examine indexes and the app shuts down.

    Lots of errors :( Not sure if they are related or what.

    EDIT: If I republish content then all works... until I redeploy.

  • Mario Lopez 168 posts 952 karma points MVP 3x c-trib
    Nov 01, 2019 @ 04:13
    Mario Lopez
    1

    The issue was that App_Data was being deleted in every deployment. The Slaves didn't like that :(

Please Sign in or register to post replies

Write your reply to:

Draft