Closed thomaselmer closed 1 year ago
You need to make sure the filesystem of your storage is one that PostgreSQL supports and that the (unix) file permissions are suitable for the PostgreSQL instance to be able to read/write to it (I'm guessing it's something like vfat/FAT32, and PostgreSQL is probably not designed to handle that well).
Unfortunately, we do not have the bandwidth to provide in-depth integration/deployment/environment debugging or support here; these sorts of questions/requests would be more appropriately posted to a dedicated support forum, such as the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow.
I was trying to setup a Nextcloud instance with an Postgres database on a raspberry pi for a homelab. Therefore of course an external data drive is needed. Now I was able to reduce the problem to a permission failure. When trying to mount the external drive in the docker container for the _data directory I get an chown: changing ownership of
'/var/lib/postgresql/data': Operation not permitted
error. I also reduced the docker-compose to a simple command:Of course I tried to mount the drive in a simple ubuntu bash container:
here I got all files, can write on it, etc
I hope this is the right place to ask and thank's for help