your directory looks OK at first glance. user is 33:33 by default often it maps to www-data, but might be different depending on distribution… user rights of 770 are not common - 750/640 is default but likely this is not the root cause. Please share more details especially your docker run command or docker compose file…
As you can see, my data directory is /mnt/NC which is a mounted drive. .ocdata file is located right there. Next thing: I noticed, that i can’t see the log files in web interface. I’ll get the error Could not load log entries but the file is located in /mnt/NC/nextcloud.log. I can see the content with tail -f /mnt/NC/nextcloud.log from my host system. Are these issues related to each other?
I feel it is not common to mount top-level /var/www/html to one directory and a child directory /var/www/html/data to another destination. Please review if there is another copy of /var/www/html/data in the host /home/user/docker-compose-files/nextcloud/nextcloud maybe it takes precedence over mnt/NC
maybe you get better insights using docker inspect <container name> command. container name may vary… as long I get you setup right it could be nextcloud-app-1 - review with docker-compose ps
My point was simply that I found another problem that could be related to the original problem. Before it is now incorrectly assumed that the original problem has been solved, and I have a new one, I just wanted to clarify this as an opening sentence. I’m not being impatient or pointing the finger at volunteers, I just wanted to make it clear that my initial problem still exists; quite simply and objectively and not emotionally. I am grateful for any help and therefore also very grateful for your help.
Okay. Regardless of this, fun fact: the problem has actually been solved. So not the logging problem which i mentioned later, but the .ocdata error. I had to restart my containers several times for reasons and tweaked the docker-compose.yml a bit. In the end it was probably due to several restarts and the fact that I haven’t updated my NC instance for a while. Whatever the reason, the message is gone.
But while we were on the subject:
As /var/www/html/data/ are my personal data (files, pictures and so on) and /var/www/html the files for appache, i want to separate them. I don’t want stuff which is located in /var/www/html/ on my external hard drive which is only for my personal data. So i thought this is a good workaround, isn’t it?
I’m not sure how such top-level/child-level volume mount is expected to work. definitely it’s not very easy to understand. see the reference I provided - you can definitely separate the 3 mounts for apps, data and config (which IMHO you should keep close to data).
AFAIK there is no need to persist anything else than this 3 directories and you can leave under container control.
if mounting additional volumes, you should note that data inside the main folder (/var/www/html) may be removed during installation and upgrades…
for the log problem use search there is an issue with nc28 which is fixed with 28.0.1