Open nackler opened 1 month ago
Hi there @nackler!
Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.
We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.
We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.
Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:
Hi @nackler , thanks for reporting issue. Currently, I couldn't reproduce it on 14.4.0, So I think you should wait and upgrade for these versions are released
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
14.2.0
Bug summary
On https://docs.umbraco.com/umbraco-cms/tutorials/custom-error-page it discusses handling boot failures. In my case I want to handle the situation when the DB is unavailable.
To start, the pretty 'Boot Failed' screen doesn't appear as shown in the docs.
It is suggested that for a custom page, create a wwwroot/config/errors/BootFailed.html that will be displayed instead. This isn't happening, even though the necessary appsetting Umbraco/CMS/Hosting/Debug is set to false.
The docs also suggest that a failure to display custom error pages could be attibutable to other middleware interfering. Since this happens in a clean install this isn't the case.
Specifics
BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details. Umbraco.Cms.Core.Exceptions.BootFailedException.Rethrow(BootFailedException bootFailedException) Umbraco.Cms.Web.Common.Middleware.BootFailedMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+InterfaceMiddlewareBinder+<>cDisplayClass2_0+<b0>d.MoveNext()
SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext httpContext, bool retry)
Umbraco.Cms.Api.Management.Middleware.BackOfficeAuthorizationInitializationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+InterfaceMiddlewareBinder+<>cDisplayClass2_0+<b 0>d.MoveNext()
SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext httpContext, bool retry)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
Steps to reproduce
Clean Umbraco 14.2.0 install. I created a hello world home page so I could tell things were running ok. Change the connection string to an invalid server name to simulate an internal network outage or a rebooting sql server machine. You will see the stack trace shown above, instead of a pretty or customizable bootfailed.html page
Expected result / actual result
I expect to be able to create and configure a custom page that will be shown during this type of outage, that will be displayed when the database is temporarily unavailable.