-
Notifications
You must be signed in to change notification settings - Fork 16
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
when do bash scripts/clean.sh
, db/data/*/** cannot be purged
#94
Comments
This is to solve issue nusdbsystem#94 by changing bash ./scripts/save_db.sh to bash ./scripts/docker_swarm/save_db.sh
Hi, this issue was investigated and solution proposed here |
@naili-xing Pls help to merge this proposed #97 |
Update stop_db.sh. This is to solve issue #94
This is to solve issue nusdbsystem#94 by changing bash ./scripts/save_db.sh to bash ./scripts/docker_swarm/save_db.sh
This issue is native for docker. Since when container binds volume to a directory of certain uid:gid (numeric), the binded volume would have the same . Refer to moby/moby#3124 And might be solved by manually bash into container as root, and following steps here https://stackoverflow.com/questions/42423999/cant--file-created-via-docker
but this method would cause container crash |
docker image need to be built with sub user added. https://vsupalov.com/docker-shared-permissions/ this issue happened since we did not add users into images. when we bash start.sh, and do start_db, there is a line docker run .... $VOLUME_MOUNTS, copies these sudo files into container |
[USERNAME@panda14 singa-auto]$ bash scripts/clean.sh
---import common utility functions---
Confirm remove /hdd1/USERNAME/singa-auto/db/data/? (y/n) y
Removing /hdd1/USERNAME/singa-auto/db/data/...
rm: cannot remove '/hdd1/USERNAME/singa-auto/db/data/base/13014': Permission denied
rm: cannot remove '/hdd1/USERNAME/singa-auto/db/data/base/1': Permission denied
rm: cannot remove '/hdd1/USERNAME/singa-auto/db/data/base/13015': Permission denied
rm: cannot remove '/hdd1/USERNAME/singa-auto/db/data/pg_multixact/members': Permission denied
rm: cannot remove '/hdd1/USERNAME/singa-auto/db/data/pg_multixact/offsets': Permission denied
The text was updated successfully, but these errors were encountered: