-
-
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
Upgrade from 9.1.2 -> 10.0.0 succeeds but org is lost #1240
Comments
Just retried the 9.1.2 -> 10.0.0 upgrade, it also succesfully migrates the database, but when you start up Sentry v10, the database is wiped/cleared/ignored or whatever it does.
|
These lines in |
yes, the original post was not wrong, it was a 9.1.2 -> 21.5.0 upgrade.. as the hard-stop docs says.. My comment was about trying an intermediate upgrade -> 10.0.0 first.. hoping db migrations would work, but they already fail there.. so it doesn't matter what i upgrade to.. it can't migrate db properly. |
so what do i do now.. just accept that your upgrade path doesn't work? or i send you a copy of my database, so you can confirm the bugs and fix them? |
At this point with just yourself reporting an issue, I need to leave the debugging to you until it's clearer that there is indeed a bug on our side. Until then I'm happy to be a rubber duck and help you whittle down a test case! 😁 Since the misbehavior occurs with v10.0.0, let's focus on that version.
Based on my reading of this comment, are we looking at a bug report like this, then ... ? Steps to Reproduce
Expected ResultDatabase stays populated, i.e., Actual ResultDatabase is wiped, i.e., |
That is perfectly fine!
Agreed.
You're the expert, if events survives a migration, i'll do a count on that one. I'll have to figure out how to get into the pgsql container and do that from the commandline.
Yes, it finishes, but the issue i mentioned here #1240 (comment) tell's me something doesn't migrate properly, sounds like the organization looses ownership.
Yeah, I will also test any organization and project tables to see if they are still there.
Well, i don't think it's wiped (the data is still approx. 1GB uncompressed after migration), but something related to the organization and users loose relationship/ownership and it wants to start fresh. I'll get back to you when i'm done. |
There is no events table, but i looked at the team, organization and project tables and everything is intact, at least in those tables.
and the user table contains our users and all their information, email, passwords, etc.. so, which tables can i look at to figure out why the installer wants to start fresh thinking there are no users..? |
Unsure of the relevance of this one.
But this looks bad, every project should have an owner here..?
This looks correct:
And this looks correct:
|
ok, restored my old 9.1.2 PG_VERSION=9.5 db to check.. and the content of the tables are exactly the same.. was trying to help but i don't know where to look or what to look for .. |
But as promised:
PG 9.6 DB Sentry 10.0.0:
|
Eep, just kidding! #1252 has a different actual result (missing issues). 😬
Right, so the report is: Steps to Reproduce
Expect Result
Actual Result
Yes? Looking at the code, here is the query that is failing:
Maybe there is a clue in there? What is the value of [a SQL approximation of] that query before and after running Another idea: you could try installing a clean 9.1.2 and then upgrading to 21.5.0, and (assuming it doesn't lose the org) inspecting the before/after to ensure we understand the "good" state. Also, have you reviewed the search results for the error message to see if there are some useful tips or clues there? |
@chadwhitacre yes, the changes you made are correct, we just can't afford spending more time on it, so we've decided to just start fresh. We'll keep our old 9.1.2 docker images/database if we should need to investigate old issues. |
Sounds reasonable. Good luck @brunis! :) |
Hello there, guys! |
If you know about the hard stops then you probably know about our upgrade documentation. Where better place to start? :) If you hit specific problems please open a new ticket. Good luck! |
Appreciate your quick answer. But what if a have non-Docker version? Documentation looks like docker-related only |
We only support the Docker version in this repo and in our documentation. Best to seek support from whomever made the version you are using, I think. |
Version
21.5.0
Steps to Reproduce
Expected Result
A running sentry with my data from Sentry 9.1.2
Actual Result
Fresh start, no data.
The text was updated successfully, but these errors were encountered: