Skip to content
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

Lost annotations #598

Open
ruiz-manuel opened this issue Apr 24, 2023 · 1 comment
Open

Lost annotations #598

ruiz-manuel opened this issue Apr 24, 2023 · 1 comment

Comments

@ruiz-manuel
Copy link

So I had an issue where a logfile grew too much that caused my containers to crash.

I located the 64G log file in /opt/docker/containers and deleted it.

My COCO-annotator was still down through the broswer so I ran "docker-compose up", to which I got:

ERROR: for annotator_mongodb cannot stop container: 01171a841... : permission denied

So I ran a "docker rm -f 01171a841" but got:
Error response from daemon: Could not kill running container 01171a841... , cannot remove - permission denied

So I ran "docker-compose start" but I had to create account again and lost all datasets and annotations. Is there a way to recover?

I now know that deleting the mongo container was a bad idea. But I wasn't even allowed to remove it, so it should all still be there.
Any ideas?

@SixK
Copy link

SixK commented Apr 25, 2023

not sure of all I'll say.
Luckily, you probably only destroyed containers content. (binaries/sources of applications)
data are stored in volumes in your case /opt/docker/volumes (and probably /opt/docker/volumes/coco-annotator_mongodb_data/ for mongo database)
images dataset are stored in datasets directory located in your coco-annotator sources directory.
If you already did some export of your coco-annotation, you may have some .exports/ directories that you could import. (located in datasets/yourdataset/.exports)

Well, you probably only have to build coco-annotator images again using "docker-compose -f docker-compose.build.yml build"
For permissions problem, I dunno if simply using sudo could help ?
Before doing anything, first backup you /opt/docker/volumes/ mongo db volumes first.
If docker-compose don't find your volumes, first try to see if volume name has changed.
You'll may have to copy your mongodb files to the new mongodb volume (after having stopped mongodb)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants