Skip to content

Fails to run unattended upgrade on SQLite database #20592

@bjarnef

Description

@bjarnef

Which Umbraco version are you using?

16.3.1

Bug summary

After pull of v16.3.1 upgrade on Umbraco Cloud (from v16.2.0) to local environment, I can't boot the site because of the following:

Umbraco.Cms.Core.Exceptions.BootFailedException: An error occurred while running the unattended upgrade.\nThe database configuration failed with the following message: SQLite Error 19: 'UNIQUE constraint failed: umbracoNode.uniqueId'.
{"@t":"2025-10-21T14:09:38.3402590Z","@mt":"Connection ID \"{ConnectionId}\", Request ID \"{TraceIdentifier}\": An unhandled exception was thrown by the application.","@l":"Error","@x":"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: An error occurred while running the unattended upgrade.\nThe database configuration failed with the following message: SQLite Error 19: 'UNIQUE constraint failed: umbracoNode.uniqueId'.\n Please check log file for additional information (can be found in 'LoggingSettings.Directory')\n\n-> Umbraco.Cms.Core.Exceptions.UnattendedInstallException: An error occurred while running the unattended upgrade.\nThe database configuration failed with the following message: SQLite Error 19: 'UNIQUE constraint failed: umbracoNode.uniqueId'.\n Please check log file for additional information (can be found in 'LoggingSettings.Directory')\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.<<CreateMiddleware>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.<<CreateMiddleware>b__0>d.MoveNext()\r\n--- End of stack trace from previous location ---\r\n   at Umbraco.Cms.Api.Management.Middleware.BackOfficeAuthorizationInitializationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)\r\n   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext()\r\n--- End of stack trace from previous location ---\r\n   at Microsoft.WebTools.BrowserLink.Net.BrowserLinkMiddleware.InvokeAsync(HttpContext context)\r\n   at Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserRefreshMiddleware.InvokeAsync(HttpContext context)\r\n   at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()","@tr":"8e1d4dc8083bd77dabcc50635940716d","@sp":"917974c36ba4168f","ConnectionId":"16068843493543379801","TraceIdentifier":"8000035a-0005-df00-b63f-84710c7967bb","EventId":{"Id":2,"Name":"ApplicationError"},"SourceContext":"Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer","RequestId":"8000035a-0005-df00-b63f-84710c7967bb","RequestPath":"/","ProcessId":27540,"ProcessName":"iisexpress","ThreadId":4,"ApplicationId":"7c10f8137e71d03f1f6c383c78d7b5c177e90eed","MachineName":"LAPTOP-BF","Log4NetLevel":"ERROR"}

Specifics

No response

Steps to reproduce

Run upgrade from 16.2.0 to 16.3.1 using SQLite database.

Expected result / actual result

No response

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