I did
chown -R www-data:www-data /mnt/ncdata
chmod -R 750 /mnt/ncdata
And it looks like itâs working. I can login, create folders and upload files
My next problem was that updating is was not working. I fixed that with:
chown -R www-data:www-data /var/www/nextcloud
My only problem now is that settings tell me âthere are errors in your setupâ (translated from Dutch). But it doesnât tell me what kind of errors.
I think i found the error, when i do sudo -u www-data php occ files:scan --all
It tells me that Home storage of user BLABLA is not writeable
I tried chmod 750 /mnt/ncdata and chmod 770 /mnt/ncdata, 750/770 doesnât solve the problem.
I donât know if itâs useful in your case, but try this when you are in your nextcloud server directorie :
sudo -u www-data php occ maintenance:repair
This command tells me âNot a MySQL database -> nothing to doâ.
My problem keeps being that when i remove the virtual drives that hold the ZFS pool (after moving the data to new virtual disc) i keep getting the error (after reboot):
Data folder is invalid.
Make sure .ocdata is present
Could you tell me how to create a new .ocdata file, maybe that is the solution because moving the old one doesnât seem to work.
What i do get is when i do: find / -name .ocdata it tells me /mnt/ncdata/.ocdata
But when i use /mnt/ncdata/ls i donât see the .ocdata file. Is that normal? Plus if the .ocdata file is in the right directory why does it break down when i remove the ZFS pool drives which are not doing anything anymore as for as i know.
ok I find a reason for thit error: Home storage for user NAME not writeable
It appears when the user never logged in
i have the same error for user has never logged into their accounts
For .ocdata file , i looked at mine and it is empty
Ahhh like that! When i use ls -a i do see the .ocdata file. When i open the file it is empty (like yours). I tried to write and save a word in the file. That is possible so it looks like the file is writeable right?