Add protection against volume and file mount deletion to prevent /data and other critical directories from being deleted. #4010
Replies: 2 comments 1 reply
-
YIKES! I don't know how this was possible, but I think I just messed up my server because of this (and some mislabeled things). I added a directory mount (not really seeing any difference between mounting directories and volumes—especially since the documentation doesn't explain them). That gave me two delete buttons "delete" and "delete directory." Clicking "delete directory" warned me that doing so would delete all that folder's contents from my server. So I clicked "delete" and proceeded … which deleted all that folder's contents from my server! And since I was trying to do something with Good thing I had backups! But that should not have been possible to do, especially with the button I clicked. |
Beta Was this translation helpful? Give feedback.
-
Hey guys, Actually answering to issue #2410 In my case, it happened (a few times) when I was running as a non-root user. The container runs as www-data (UID 9999) but the SSH keys directory had different ownership. The Fix
docker ps | grep coolify
sudo docker exec -it --user=root [container-id] sh
chown -R 9999:www-data /var/www/html/storage/app/ssh && chmod -R 770 /var/www/html/storage/app/ssh && chmod 660 /var/www/html/storage/app/ssh/keys/* Ta-dah! Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
/data
as the directory mount in the container, then delete the directory mount and selectdelete on server
,/data
is nuked. We need to prevent this somehow, as deleting/data
will break Coolify.Beta Was this translation helpful? Give feedback.
All reactions