Skip to content

Umbraco v13.9 startup error The DELETE statement conflicted with the REFERENCE constraint "FK_umbracoExternalLoginToken_umbracoExternalLogin_id".Β #19499

Closed
@robertjf

Description

@robertjf

Which Umbraco version are you using?

13.9.0

Bug summary

Upgraded Umbraco to latest v13 release and on startup (local dev environment) the following error is occuring:

The DELETE statement conflicted with the REFERENCE constraint "FK_umbracoExternalLoginToken_umbracoExternalLogin_id".

Full stack trace indicates this is happening because it's attempting to delete External Login Providers on startup, even though no configuration has changed - the relevant stack trace locations are:

   at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.ExternalLoginRepository.DeleteUserLoginsForRemovedProviders(IEnumerable`1 currentLoginProviders)
   at Umbraco.Cms.Core.Services.ExternalLoginService.DeleteUserLoginsForRemovedProviders(IEnumerable`1 currentLoginProviders)
   at Umbraco.Cms.Web.BackOffice.Security.BackOfficeExternalLoginProviders.InvalidateSessionsIfExternalLoginProvidersChanged()
   at Umbraco.Cms.Web.BackOffice.NotificationHandlers.ExternalLoginProviderStartupHandler.Handle(UmbracoApplicationStartingNotification notification)

We do not have any back-office external login providers registered, just cloud identity; we do have a provider registered for members only.

Specifics

See summary

Steps to reproduce

  1. Upgrade umbraco from 13.8.1 to 13.9.0
  2. Launch the website locally

Expected result / actual result

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions