-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 sentry.0640_index_together
fails
#2758
Comments
Assigning to @getsentry/support for routing ⏲️ |
I got this issue with this event id |
+1 got the same error. My sentry envelope id is: ee4e9e869ab6a19f443f9b338159211c |
Is it even possible to install Sentry at the moment? Is there any workaround? |
This is an index migration, it may impact performances but it looks like you can launch sentry without this migration as long as there are no structural migrations after. Or even better, instead of running on master (nightly) branch, you may go to a tag and use a stable release: https://github.com/getsentry/self-hosted/tags |
This seems to be due to this PR here: In SaaS, it looks like this was due to some dangerous migrations not being performed. These can be performed manually and you can get these migrations with |
Or, you can opt for a more hacky fix that I tried by going into your postgres database.
|
This hack does not work for me. |
@Christophe31 I feel so stupid, I did try to downgrade to a release tag but I forgot to update my .env.custom. Thank you! |
Hey folks, we've recently upgraded our nightly image to django 5. Could you do us a favor and try upgrading again to see if you get the same error? We think that this may be resolved as django 5 should pick up django/django@7045661 |
@hubertdeng123 Pulled the latest master branch details and ran the |
Yeah, I would assume that |
Will there be a automatic fix in an upcoming version? I tried to upgrade and are now facing the same issue... |
Faced the same issue here upgrading from The install script tried to fix the issue by deleting the My alternate solution was faking the migration ( |
I have the same error migrating from the helm chart
Do you know how I can fix it? |
Running |
The same error while migrating from the chart version It's fixed by running |
A general fix for this issue has been merged and now released, so I'm going to close this. For people who are still experiencing this issue, please attempt to try dropping this index in postgres |
Environment
self-hosted (https://develop.sentry.dev/self-hosted/)
Steps to Reproduce
install.sh
Expected Result
Upgrade runs successfully
Actual Result
Upgrade fails in migration
sentry.0640_index_together
with the error below. This is caused by this following migration step which callsRenameIndex
, which fails because two indices exist on these columns: one created byindex_together
as well as one created byunique_together
.This is a django bug that is fixed with this django commit. After applying this commit into our sentry installation, the migration ran successfully.
Product Area
Unknown
Link
No response
DSN
No response
Version
nightly
The text was updated successfully, but these errors were encountered: