Skip to content

Auto-setup not working, relation "User" does not exist #11

@richardr1126

Description

@richardr1126

I have auth setup with the secret in the env and the database url in the env. I have access to database in the rest of the application in my own code, but your DB initialization is not working on the default /postgres db. When I try to login with a simple admin user I get the error below.

chainlit_app  | 2025-06-17 15:57:32 - Database error: relation "User" does not exist
chainlit_app  | 2025-06-17 15:57:32 - Unable to get persisted_user from data layer: relation "User" does not exist

My existing database is on Postgres v13, I'm not sure if that is the issue or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions