-
-
Notifications
You must be signed in to change notification settings - Fork 859
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
[Bug]: 0.18.5 -> Running user_updates_2020_04_02 -> column person.admin does not exist #4002
Comments
Okay, so someone else was stupid as me and has now the same problem :) !NO GUARANTEE AND PLEASE MAKE A BACKUP FIRST! First connect with the database of lemmy. If you use the provided docker example this can be done with:
Now you are inside the postgres container of Lemmy Type You need to create the admin table with (pay attention to
And set yourself back to admin again with:
Now exit the postgres simply with Restart the complete stack with It should start again now :) |
my docker exec was like
also you might want to make sure you're setting the correct user as admin before you run that UPDATE query, do like
|
I choosed id=2 because it is the first user you create, so it should work for most single user instances. If there are more admins, they can be set aagain via UI. The first mistake was to use this betaversion, but downgrading back did not work either. :D Thanks for the additional infod |
Excellent thanks both, this allowed me to upgrade to 0.18.5, seems to have been stable for last hour. I guess I should leave this open in case the bug gets addressed internally. If the maintainers want to close it as its just an edge case, go ahead. |
Thank for this everyone, I didn't notice the latest tag had been suspended and so decided to upgrade to 0.18.5 today and thankfully found this fix that worked perfectly. |
Did everyone run into this issue after upgrading from So by installing 0.18.5, you effectively downgraded from main branch to an older version which isnt really tested/supported. You need to manually downgrade the db as described above, or directly upgrade to 0.19.0 which should work without problems. And we need to ensure that tags are on the correct branch so this wont happen again in the future. |
I just checked, and the That means that the only people running into this issue, are ones who incorrectly used the docker:latest tag, which is nowhere in our docs, and which even docker recommends against using because its dangerous. This issue is now fixed by us removing all Also for anyone who did this, you will need to either restore from a DB backup before you upgraded, or manually run the DB commands in the |
Updated to 0.18.5, lemmy core starts to initialize and then exits (exitcode: 1)
Running docker via image: dessalines/lemmy:0.18.5 on Debian 11
Updated from 0.18.4-beta.8
The text was updated successfully, but these errors were encountered: