mirror of
https://github.com/plankanban/planka.git
synced 2026-02-24 19:08:59 +03:00
Migration Lock in database -- any way to clean up? #290
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @swcurran on GitHub (Feb 10, 2023).
It looks like I've got a problem in my Planka database on my local deploy. Is there an easy way to clean this up, or am I stuck? Naturally, I've not been taking backups... 🦤
Thanks
After a docker restart, here is what I get in the logs (via
docker logs).@meltyshev commented on GitHub (Feb 10, 2023):
Hi! I've never encountered this error. It seems to be some bug in Postgres, trying to find how to solve it...
@nickbe commented on GitHub (Feb 10, 2023):
The reason for this is most likey some hardware or file system related problem. This could also be caused by an antivirus software.
Check your file system for errors and check if your computer lost power suddenly in the past. But I'm afraid the only thing you can do is restore the database from the latest backup.
@meltyshev commented on GitHub (Feb 10, 2023):
You can also try to recreate the
migration_locktable (but maybe the problem is not in this table at all):I also found this way to copy data from a corrupted table:
Probably it should be done with all tables.
@swcurran commented on GitHub (Feb 10, 2023):
Thanks — I’ll let you know how it goes. Much appreciated!
@swcurran commented on GitHub (Feb 10, 2023):
I used the first script (below) and it worked — nice! Thanks so much. Closing this issue and submit a sponsor transaction!
@meltyshev commented on GitHub (Feb 10, 2023):
Very glad it worked! And thank you very much for the support 🙏