First things first: This post is super helpful. But in my case I got the following error showing up in the logs after starting my docker container:
Configuring Domain
/usr/local/bin/nextcloud-domain.sh: line 27: /usr/local/bin/ncc: Permission denied
I’m running Ubuntu Server (with Docker) on a Raspberry Pi 4.
- I mounted an external usb hdd with ext4 file system as described in this post above.
- I double checked permissions on the mount point and directory structure as statet in this article.
After a week of trial and error I noticed that there is one really important thing:
My Ubuntu mounted the external drive with the flag “noexec”. You can check this if you type “mount” without options in the terminal. After some research this should be the default behaviour if you set the flag “users”. But if this flag is set the docker container will fail all executions of scripts as the error shows - even though the permissions of the mount point allow execution.
You can solve this problem by editing /etc/fstab and add “exec” after the option “users”. Maybe it would be a good idea to add this in the post.