Skip to content

No error message is logged if upgrade unattended fails when CMS Hosting Debug is set to false #19820

@nicklite

Description

@nicklite

Which Umbraco version are you using?

13.2.5 - > 13.9.2

Bug summary

We were upgrading the website from Umbraco version 13.2.5 to 13.9.2 using the default settings for "UpgradeUnattended".

Specifics

We were upgrading the website from Umbraco version 13.2.5 to 13.9.2 using the default settings for "UpgradeUnattended".

When the CMS has the following settings:

"Umbraco": { "CMS": { "Hosting": { "Debug": false } } } }

We dont see any errors if the upgrade fails. When Debug is set to true then we see the error:

Umbraco.Cms.Core.Exceptions.BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details.\n\n-> Umbraco.Cms.Core.Exceptions.BootFailedException: The migration plan does not support migrating from state "7e170195-cab7-48ca-98c7-bbcbd5cfda95".\n\n-> System.InvalidOperationException: The migration plan does not support migrating from state "7e170195-cab7-48ca-98c7-bbcbd5cfda95".\n at Umbraco.Cms.Infrastructure.Migrations.MigrationPlan.ThrowOnUnknownInitialState(String state)\r\n at Umbraco.Cms.Infrastructure.Migrations.MigrationPlanExecutor.RunMigrationPlan(MigrationPlan plan, String fromState)\r\n at Umbraco.Cms.Infrastructure.Migrations.MigrationPlanExecutor.ExecutePlan(MigrationPlan plan, String fromState)\r\n at Umbraco.Cms.Infrastructure.Migrations.Upgrade.Upgrader.Execute(IMigrationPlanExecutor migrationPlanExecutor, ICoreScopeProvider scopeProvider, IKeyValueService keyValueService)\r\n at Umbraco.Cms.Infrastructure.Install.PackageMigrationRunner.RunPackagePlans(IEnumerable`1 plansToRun)\r\n at Umbraco.Cms.Infrastructure.Install.UnattendedUpgrader.HandleAsync(RuntimeUnattendedUpgradeNotification notification, CancellationToken cancellationToken)\r\n at Umbraco.Cms.Core.Exceptions.BootFailedException.Rethrow(BootFailedException bootFailedException)\r\n at Umbraco.Cms.Web.Common.Middleware.BootFailedMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)\r\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<b__0>d.MoveNext()\r\n--- End of stack trace from previous location ---\r\n at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext httpContext, Boolean retry)\r\n at Umbraco.Forms.Web.HttpModules.ProtectFormUploadRequestsMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)\r\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<b__0>d.MoveNext()\r\n--- End of stack trace from previous location ---\r\n at Mindscape.Raygun4Net.AspNetCore.RaygunAspNetMiddleware.Invoke(HttpContext httpContext) in C:\buildAgent\work\75116afedfe31196\Mindscape.Raygun4Net.AspNetCore\RaygunAspNetMiddleware.cs:line 75\r\n at Mindscape.Raygun4Net.AspNetCore.RaygunAspNetMiddleware.Invoke(HttpContext httpContext) in C:\buildAgent\work\75116afedfe31196\Mindscape.Raygun4Net.AspNetCore\RaygunAspNetMiddleware.cs:line 86\r\n at NWebsec.AspNetCore.Middleware.Middleware.CspMiddleware.Invoke(HttpContext context)\r\n at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)\r\n at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)\r\n at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)\r\n at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)\r\n at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.HandleException(HttpContext context, ExceptionDispatchInfo edi)

Steps to reproduce

We were upgrading the website from Umbraco version 13.2.5 to 13.9.2 using the default settings for "UpgradeUnattended".

When the CMS has the following settings:

"Umbraco": { "CMS": { "Hosting": { "Debug": false } } } }

Expected result / actual result

Error message appears in Umbraco log regardless of debug mode or not

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions