Adding Volumes: hostPath does not exist
-
wrote on Jan 3, 2023, 12:46 PM last edited by girish Jan 3, 2023, 8:16 PM
Server log:
POST /api/v1/volumes 400 Bad Request hostPath does not exist. Please create it on the server first 6.257 ms - 107
However, the path exists, is chown'ed to yellowtent and has permissions 777.
It's a filesystem - a secondary data drive (SSD HDD)
-
-
Do you see any further logs around that in the box.logs / system logs when trying to add this volume?
wrote on Jan 3, 2023, 3:08 PM last edited by@nebulon I found that I could add files within the /srv/ directory via symlink as talked about here:
https://forum.cloudron.io/topic/7619/filesystem-mount-inside-container/7Not sure why I could only add directories in the /srv/
-
Ah, I guess the error message could be more descriptive. Currently there is a hard-coded allowlist of paths on the filessystem to be used as volumes, to avoid accidents where someone might add system folders. The list is at https://git.cloudron.io/cloudron/box/-/blob/master/src/volumes.js#L57
-