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?
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.
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.
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.
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.
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.
What's the issue you are facing? Might be able to help you there.
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.
The issue was that App_Data was being deleted in every deployment. The Slaves didn't like that :(
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.