Enforce update of projections
Hi All,
I had some issues with an upgrade and found out, that my "projections.users*" tables are not properly migrated. We had some back and forth with different binary versions and schema updates and now I am left with an existing set of "users13" projections that are missing all users that have been added recently in "users12".
Rerunning the setup phase does not fix the projections even after dropping the user13 tables. Is there any trick to enforce a check/migration or trigger it manually? While it is obvious that the user tables are broken, is there any way to check all other versioned items to be uptodate?
I am running self-hosted with Postres, current active binary is 2.54 and I am trying to upgrade to 2.59.
best regards
Oli
10 Replies
I am confused now...it seems that after waiting some minutes the systems started to copy the data from users12 to users13, but three (out of almost 58k users) are not copied and those are unfortunately the admin accounts. So I am now left with a system holding 58k users but no admin can any longer access the UI 😦
Uhm that sounds weird.
I guess 2.54 is still working. right?
Can you share the logs from the 2.59 setup job?
@FFO find attached the log of the setup command and the initial startup log. After some minutes the value of "iteration=XX" for the "user13" query reaches 0 which seems to be the point in time when all (but not the 3 missing accounts) are syned.
...and yes the installation is still working when running the same database with the old binary
hm let me ask internally about this and thanks for the information
thx - I can share the db if needed and privacy is guranteed
We are discussing this internally ATM, I keep you posted if we need additional infos.
Thanks for raising this
I meanwhile got the upgrade working (at least to what I was able to test in my local copy) by manually coping the missing items in the three users tables but I would really appreciate to get an "official" comment or fix for this before ruining my setup 🙂
So for anybody stumbling over this too, here is the SQL I used to fix the issue:
Find the users that are missing:
You need to feed the user ids found into the brackets
(...)
Thank you for sharing!