Skip to content

2.17.4: "Error: Resource not found" on POST /login, migration failure precedes it (SQLite) #956

Description

@MilanR11

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

  1. Run wakapi 2.17.3 or earlier with existing SQLite data
  2. Update image to 2.17.4 and restart
  3. Observe migration failure in logs on first start (see above)
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions