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

create super user command fails with "relation "user" does not exist" #168

Open
epinapala opened this issue Feb 22, 2025 · 0 comments
Open

Comments

@epinapala
Copy link
Contributor

epinapala commented Feb 22, 2025

Describe the bug or question
When i run docker compose up --build create super user and create tier commands fail due to tables not being created.

I used the exact files from here on local : https://gist.github.com/igorbenav/48ad745120c3f77817e094f3a609111a

To Reproduce
Please provide a self-contained, minimal, and reproducible example of your use case

docker compose up


--- Inisde the create super user container logs
ERROR:__main__:Error creating admin user: (sqlalchemy.dialects.postgresql.asyncpg.ProgrammingError) <class 'asyncpg.exceptions.UndefinedTableError'>: relation "user" does not exist

[SQL: SELECT "user".id, "user".name, "user".username, "user".email, "user".hashed_password, "user".profile_image_url, "user".uuid, "user".created_at, "user".updated_at, "user".deleted_at, "user".is_deleted, "user".is_superuser, "user".tier_id 


FROM "user" 

WHERE "user".email = $1::VARCHAR]

[parameters: ('[email protected]',)]

(Background on this error at: https://sqlalche.me/e/20/f405)

When i checked the database , I see no tables(user/tier) are created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant