-
Notifications
You must be signed in to change notification settings - Fork 21
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
Upgrading does not work #54
Comments
@winks you might be running into #45 (comment) if so, did the migration and server startup continue after the error (it should have)? i made modifications after the first error report to log the error and continue. it's in a migration that rebuilds the timeline and notifications (vs. changing the schema of the database). how many of these errors did you get? |
I didn't count, but 20ish for sure. Meanwhile I rebuilt without Sorry for the noise, I'll keep an eye on it - but right now it looks ok. |
thanks! did you get the same number of errors each time, or did it vary? |
That's lost to the terminal history, sorry. I manually scrolled back and saw that it was the same error, then rolled back to the old version - didn't really count or save it, but maybe I can replay from backup and count later. |
Reran with the old db dump earlier,
I was patient and at some point the log had:
and it went just fine. So I guess the main problem is the stack trace, and that there are so many of them so a user who doesn't look at the log in detail fails, like I did. |
@winks see this issue before you upgrade: #55 you might also have duplicate rows in your actors and objects table—in fact, given this error i suspect you do. recent changes add a uniqueness constraint in the database to prevent this, but you will need to explicitly delete the duplicate before you can apply it. |
FYI, I had the same issue with 2.0.0-6 (not with 2.0.0-5 for some reason, though). The info from #55 (comment) cleared the issue and the docker-image started successfully afterwards. Might be a good idea to have a periodic clean-up process in ktistec? Or is the risk of data-loss too high in that case? |
that could always be managed with a backup. aside for cases like the one that led to the duplicates, which are going to cause problems (like it did), i'm trying to make the database resilient to garbage, if for no other reason than the fact that my database, which is about two years old now, probably is full of it! |
I tried to upgrade from a dist version from ~2022-04-26 to 2.0.0-5 and there seem to be some db migrations missing or not documented well:
Unfortunately so far the only message I got was:
but maybe the db changes are small enough to just manually do the migration, I'll look further into the code.
The text was updated successfully, but these errors were encountered: