Invalid data directory. Ensure there is a file called ".ocdata" in the root of the data directory

Hi Support team,

Your data directory is invalid

Ensure there is a file called “.ocdata” in the root of the data directory.

Explanation:
Could someone please help me with this error, i have .ocdata file placed in root of data directory but still can’t get rid of this error. Also, what are the recommended permissions and users for data directory. Could you please help me know what can be the better solution?

thanks in advance!

the data folder (and all it’s files and folder) should be readable and writable by the webserver user. In ubuntu/debian-like environments www-data, other distrubutions/systems this can be www, http, httpd, apache, …

You can check what the webserver user is seeing in the data folder:

sudo -u www-data /path/to/data