The `22_add_2fa` migration failed
Author: ancashoriaCreated Aug 22, 2026Updated Sep 2, 2026
Describe the Bug
I'm trying to upgrade from 3.1.0 to 3.3.1 and I get this error when starting up the pod
✗ Command failed: prisma migrate deploy
Loaded Prisma config from prisma.config.ts.
Prisma schema loaded from prisma/schema.prisma.
Error: P3009
migrate found failed migrations in the target database, new migrations will not be applied. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve
The `22_add_2fa` migration started at 2026-08-22 14:44:40.065853 UTC failedYou should know that I'm one of those users that had problems upgrading to 3.2.0 and had issues with login after which I had to revert to 3.1.0. When I say revert, I don't mean a database restore, that stayed the same, I just reverted the pods to 3.1.0.
Is there anything I can do to fix this? Can I provide more details for you?
Database
PostgreSQL
Relevant log output
Which Umami version are you using?
3.3.1
How are you deploying your application?
Kubernetes
Which browser are you using?
No response
Source: umami-software/umami