-
-
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
Restore doesn't properly restore everything #2394
Comments
A fix for this is coming in 23.9, which should land in a few days, though it will probably require making a new backup. The basic issue (among many) is that the old backup JSON file was incomplete, so rehydrating from it is basically impossible. You can track work at getsentry/team-ospo#153. |
Is there any way to fix it as it is now? We're certainly not afraid to get dirty with a bit of postgresql 😁 Also, on a slightly unrelated note, using Sentry SaaS would cost us potentially thousands based on our event volume and replays (we stopped using SaaS when our costs started hitting scary close to the quadruple digits mark). We can host it using spare capacity on our own infrastructure, which I'm sure is a shared experience among many who stick with self hosting. But, perhaps, that's a discussion for another time. |
The backup feature is currently broken. Part of the work for the linked bug will fix it for self-hosted as well, so you are not compelled to upgrade to SaaS. The work stream for fixing this feature and for supporting easier migration to SaaS is covered by the same issue - sorry about the confusion!
You can certainly try to |
So, ah, let's say we don't have the old database around. All I'm really concerned about is fixing the aforementioned login issue - though more data being restored will of course be nice in the future 👍 |
Sorry, just to be clear: you no longer have the original db? So the only thing remaining is the JSON backup file? In that case, you can probably edit the JSON manually: find the user you are logging in as and set their |
See, it does recognize me as a super admin. Just not on initial login. If I go to org settings, it shows my account as the owner and won't let me change it. But when logging in, I get "no organization access" until I click "user settings" and I can go from there |
If you do want to make this user an admin with complete privileges, you can do add something like this to the end of your import:
For example, if the user you want to be a super user is
Does this help? |
This is very odd. I'm not sure I have other suggestions without seeing the backup JSON, and even then, the tool is not in a great state at the moment, so I would not be surprised if something in it was corrupted. I'm sorry - we're working hard to make this a better exeperience! |
We're probably going to have to start over anyway. Upgrading from 23.7.1 to 23.8.0 rendered most of our instance unusable. Most JavaScript required to load any page now returns 404. |
Honestly, it really feels like y'all intentionally cripple the self hosted instance just so you can say it's open source but get people to use SaaS. We've yet to have an upgrade go smoothly, and every single time we end up having to reset the image to get in an usable state. |
Sorry to hear that. We host our own version of self-hosted Sentry for internal use and for what it's worth, it's upgraded daily without issues so far so mileage definitely varies here. As mentioned above, we're trying to improve the backup/restore process so it's much more usable in the future so please be patient with us while we improve the process. |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Self-Hosted Version
23.7.1
CPU Architecture
x86_64
Docker Version
24.0.6
Docker Compose Version
2.21.0
Steps to Reproduce
Expected Result
Restore works fine and so does login
Actual Result
Event ID
No response
The text was updated successfully, but these errors were encountered: