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

migrations are failing. This looks oddly like the other error #494

Closed
SoneNiko opened this issue Feb 19, 2024 · 3 comments
Closed

migrations are failing. This looks oddly like the other error #494

SoneNiko opened this issue Feb 19, 2024 · 3 comments

Comments

@SoneNiko
Copy link

#426
image

@evroon
Copy link
Owner

evroon commented Feb 20, 2024

Is this shortly after reinitializing the db or did you use a new version of Bracket while still using the same database state?

I think alembic is running migrations that shouldn't be run, maybe the value in your alembic_version column ended up being old/null.

@SoneNiko
Copy link
Author

This kinda happened after both of these scenarios. I got around it by disabling the alembic migrations using the environment variable. This is just a temporary solution. I don't know what exactly is causing these issues with migration but since its probably going to happen again i will just open an issue again then.

To my limited understanding, the core issue seems to be that the migration is trying to create an pgsql enum type which already exists which is what happens last time. maybe its just an issue with how alembic handles migrations for enum types.

@robigan
Copy link
Contributor

robigan commented Feb 25, 2024

@SoneNiko You can close this now. Migrations were manually made using alembic stamp version in prod. Internal for us: See incident report 004 for steps taken.

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

3 participants