mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
repeated loss of all data (maybe related to container updates) #101
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 @benj919 on GitHub (May 16, 2021).
Hi all
I've been running planka from the sample docker-compose file (plus host mounted volumes) for a few months and I've semi-regularly experienced a complete data loss with it; meaning I lost all boards and usernames.
Admittedly if this were a widespread problem it would be a bit more visible than just me writing this now. I suspect this might be a combination of how docker-compose, docker networks, and possibly restarting/rebuilding containers using ouroboros are interacting.
The log from the planka container show this error message:
The log from the postgresql container looks like this:
and docker ps show the postgres container being updated more recently than the planka app container itself:
All containers are run on a truenas scale server with docker-compose (planka and ouroboros). I'm not exactly sure how ourobors works, but it's possible it takes individual containers down and rebuilds them independently of what is connected to them, e.g taking the db server down without touching the planka container itself. Disabling or changing the settings of ouroboros is certainly possible though I'm not sure it is actually the cause of problem. It might also be that planka is not able to reconnect to the db after such an update?
Thanks for the great app and any potential help here.
@nickbe commented on GitHub (May 24, 2021):
My recommendation (and yes I don't like docker at all) - PLANKA is based on node and PostgreSQL - so some simple kindergarden requirements which you should be able to provide without even thinking of docker.
But if you must - use only the standard docker tools and refrain from using other non-supported third party docker addons or other hacks. PLANKA is not production ready in an enterprise environment - not yet - but it will be. After that and when other important features are working there will surely be a point when there's gonna be time to handle docker related issues. But I think for now it's a waste of time - for reasons above.
@benj919 commented on GitHub (May 25, 2021):
I'm not quite sure what you want to tell me here... Planka is currently provided as a docker image so that's what I'm using. Ouroboros is a simple script in a stand-alone container issuing docker stop, pull, and start/run commands, nothing about it being an unsupported hack or addon. Such auto-updates might not be the best idea but that is another topic.
Planka is clearly labelled as alpha, it's not like I put days worth of boards into it to just lose them. I have put some small sample project and boards into it with ~4 lists and maybe ten issues.
The issue might be because the db container gets rebuild or not, or it might be related to how planka is (un)able to handle losing the db connection, or something completely else. I put this here for the author(s) to take a look and decide if it's worth their time to investigate. That's what an alpha is for after all.