I have a NCP Docker container on my raspberry pi 4 and a external HDD connected to it. All runs smoothly so far.
The “data” folder is mapped to my pi, so i can create create and copy folders from via ssh from inside the container with no problem.
I tried to use the backup function to secure my data on another external HDD. I created a folder “backup” inside the mapped data folder and set the destination directory to
/data/backup
and it says path exists.
When clicking once the apply button it results in:
nc-backup write error
When i repeat clicking on apply i get:
Unauthorized request. Try reloading the page
What could be the reason for this error and how can I create a backupfile of NCP + Data?
ls -ld /media/storage/nextcloud/backup
with the result: drwxr-xr-x 2 www-data www-data 4096 Apr 6 16:04 /media/storage/nextcloud/backup
So i guess the folder permissions should’nt be a problem?
When changing from Nextcloud UI to the ncp-webgui I logged in with ncp account. I cannot remember to have set up more than 2 user up to now (ncp, privateUser) and I guess i would’t be able to login with another that is not admin into ncp-webgui.
Yes, i have one login for “using” nextcloud, and another for ncp settings. As you said, I cannot login for instance into ncp settings with the “nextcloud user”.
ummm i thought it was clear that all files on that folder - even those in subfolders - would be need to be owned by www-data:www-data - and thus you usually should enter a command like chown here with -R (recursive) - which would go down to the latest files in the most hidden subfolders…
so please keep that somewhere in your mind sudo chown -R "www-data:www-data" /media/storage/nextcloud
(same with chmod)
but good that you found the problem and solved it, finally