Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Delete user causes violation of FK constraint in 1.46 #1715

Closed
1 of 3 tasks
zackpollard opened this issue Feb 10, 2023 · 0 comments · Fixed by #1716
Closed
1 of 3 tasks

[BUG] Delete user causes violation of FK constraint in 1.46 #1715

zackpollard opened this issue Feb 10, 2023 · 0 comments · Fixed by #1716
Assignees
Labels
bug Something isn't working needs triage Bug that needs triage from maintainer

Comments

@zackpollard
Copy link
Contributor

The bug

If a user existed with albums, that was then subsequently deleted, it seems we at some point, or even now still, don't clean up the relations correctly. This means that the new FK constraint in 1.46 on owner in album entity cannot be created, and the server boot loops.

The OS that Immich Server is running on

N/A

Version of Immich Server

1.46

Version of Immich Mobile App

1.46

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

1. Run server 1.45
2. Create user
3. Create album
4. Delete user
5. Upgrade to 1.46
6. Server won't run migrations due to FK constraint violation

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Bug that needs triage from maintainer
Projects
None yet
1 participant