Copied to clipboard

Flag this post as spam?

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


  • Johnathan Le 10 posts 40 karma points
    Oct 13, 2023 @ 10:37
    Johnathan Le
    0

    Umbraco will show Installer page when Frontsite cannot connect to database

    Hi all,

    I got one issue which relates to installer page. My front-sites (behind Load Balancer) cannot connect to database sometimes. And Umbraco will return the installer page to the users. How can I turn off this installer mode for Front-sites?

    There are my code for Startup.cs

    app.UseUmbraco()
                .WithMiddleware(u =>
                {
                    u.UseBackOffice();
                    u.UseWebsite();
                }
               .WithEndpoints(u =>
                {
                    u.EndpointRouteBuilder.MapControllers();
    
                    if (Configuration.IsUmrbacoPublisher())
                    {
                        u.UseInstallerEndpoints();
                        u.UseBackOfficeEndpoints();
                    }
    
                    u.UseWebsiteEndpoints();
                });
    

    I already ignore the UseInstallerEndpoints() by ensuring the host is Publisher role

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft