I was running NC 29 and last week I have deleted the current container and recreated it again, this way the version 30 was downloaded. Everything was fine no errors during the data migration. Once the container was up and running I was able to access my NC server. But today I have received this error:
Error
Your data directory is invalid.
Ensure there is a file called “.ncdata” in the root of the data directory. It should have the content: “# Nextcloud data directory”
When I try to open the web interface, no changes are made after the upgrade. I have checked the permissions of the folders and everything looks fine:
The owner of the data and config folders is set via compose file with environment variables PUID and GUID. I have verified that the same user have the permissions.
Same here after 30.0.0 upgrade. Right after upgrade it worked but today in the morning it started to throw this error.
OCC commands won’t work either (same error). Tried to redeploy same image but it didn’t help.
Just to add here I am having the same issue even with a force reinstall of Nextcloud 30. I’ll try a downgrade but to be clear this appears to be a wider issue.
By adding the .ncdata as well in the folder everything is working now. Thank you very much.
For all that will use the fix, be careful with the owner and permission of the file you will create.