Nextcloud docker doesn't have permission in files reddit / selfhosted ---------------------------------------------------------------------- Ok_Maintenance_1946 · 2023-12-27 08:51 I've installed OpenMediaVault in a RPi4 and using dockers to install multiple services. Nextcloud sometimes and randomly gives me this error: `/entrypoint.sh: 137: cannot create /var/www/html/nextcloud-init- sync.lock: Read-only file system` I set the permission to this share folder for the user of nextcloud, that It supposed to be `www-data` Now the folder where I save all nextcloud files looks like this: drwxr-xr-x 43 www-data www-data 4096 Dec 25 10:50 3rdparty -rw-r--r-- 1 www-data www-data 23796 Dec 25 10:50 AUTHORS -rw-r--r-- 1 www-data www-data 34520 Dec 25 10:50 COPYING drwxr-xr-x 50 www-data www-data 4096 Dec 25 10:50 apps -rw-r--r-- 1 www-data www-data 1906 Dec 25 10:50 composer.json -rw-r--r-- 1 www-data www-data 3140 Dec 25 10:50 composer.lock drwxr-xr-x 2 www-data www-data 4096 Nov 6 13:51 config -rw-r--r-- 1 www-data www-data 4124 Dec 25 10:50 console.php drwxr-xr-x 24 www-data www-data 4096 Dec 25 10:51 core -rw-r--r-- 1 www-data www-data 6317 Dec 25 10:50 cron.php drwxr-xr-x 16 www-data www-data 4096 Dec 25 10:52 custom_apps drwxr-xr-x 2 root root 4096 Oct 16 01:38 data drwxr-xr-x 2 www-data www-data 20480 Dec 25 10:51 dist -rw-r--r-- 1 www-data www-data 156 Dec 25 10:50 index.html -rw-r--r-- 1 www-data www-data 4403 Dec 25 10:50 index.php drwxr-xr-x 6 www-data www-data 4096 Dec 25 10:51 lib -rw-r--r-- 1 root root 0 Dec 26 22:16 nextcloud- init-sync.lock -rwxr-xr-x 1 www-data www-data 283 Dec 25 10:50 occ drwxr-xr-x 2 www-data www-data 4096 Dec 25 10:51 ocs drwxr-xr-x 2 www-data www-data 4096 Dec 25 10:51 ocs-provider -rw-r--r-- 1 www-data www-data 1070279 Dec 25 10:50 package- lock.json -rw-r--r-- 1 www-data www-data 6991 Dec 25 10:50 package.json -rw-r--r-- 1 www-data www-data 3187 Dec 25 10:50 public.php -rw-r--r-- 1 www-data www-data 5597 Dec 25 10:50 remote.php drwxr-xr-x 4 www-data www-data 4096 Dec 25 10:51 resources -rw-r--r-- 1 www-data www-data 26 Dec 25 10:50 robots.txt -rw-r--r-- 1 www-data www-data 2452 Dec 25 10:50 status.php drwxr-xr-x 3 www-data www-data 4096 Oct 16 01:38 themes -rw-r--r-- 1 www-data www-data 403 Dec 25 10:51 version.php Is it normal that the file that can't create is belonging to root user? This also happens in some other dockers randomly, because if I restart the server or restart the docker (this last not always works) It works agains. In the ACL tab for the Shared Folder in OMV, I've just run it to set the permissions owner and group for this folder. ​ ---------------------------------------------------------------------- jimboolaya · 2023-12-27 10:23 "Read-only file system" Nothing to do with permissions. Something's wrong with the filesystem mount. ---------------------------------------------------------------------- Ok_Maintenance_1946 · 2023-12-27 11:09 So I understand that is the boot mounting that something fails, isn't it? ---------------------------------------------------------------------- jimboolaya · 2023-12-27 11:22 That's where I would start looking.