Describe the bug
After upgrading to 2.17.4 (via ghcr.io/muety/wakapi:latest), the container failed to start due to a migration error:
{"level":"ERROR","msg":"migration failed","name":"<migration right after nullify-empty-sub, likely sqlite_recreate_views-pre>","error":"duplicated key not allowed"}
After restarting the container, the app started successfully (login page loads fine, footer shows v2.17.4 @ sqlite3). However, logging in with existing credentials now returns "Error: Resource not found" on the POST /login response — the login page is re-rendered with this flash error instead of redirecting to the dashboard.
The user account still exists (confirmed via Sign Up form, which returns "Failed to create new user (username or e-mail already existing?)" for the same username).
Environment
- Wakapi version: 2.17.4 (previously running fine on an earlier version)
- Database: SQLite
- Deployment: Docker (ghcr.io/muety/wakapi:latest), behind nginx reverse proxy
Steps to reproduce
- Run wakapi 2.17.3 or earlier with existing SQLite data
- Update image to 2.17.4 and restart
- Observe migration failure in logs on first start (see above)
- Restart again — app starts, but login fails with "Resource not found"
Expected behavior
Login should succeed with valid credentials, and migrations should not fail/partially apply on existing SQLite databases.
Describe the bug
After upgrading to 2.17.4 (via
ghcr.io/muety/wakapi:latest), the container failed to start due to a migration error:{"level":"ERROR","msg":"migration failed","name":"<migration right after nullify-empty-sub, likely sqlite_recreate_views-pre>","error":"duplicated key not allowed"}
After restarting the container, the app started successfully (login page loads fine, footer shows v2.17.4 @ sqlite3). However, logging in with existing credentials now returns "Error: Resource not found" on the POST /login response — the login page is re-rendered with this flash error instead of redirecting to the dashboard.
The user account still exists (confirmed via Sign Up form, which returns "Failed to create new user (username or e-mail already existing?)" for the same username).
Environment
Steps to reproduce
Expected behavior
Login should succeed with valid credentials, and migrations should not fail/partially apply on existing SQLite databases.