Owncloud on our server was fully functional until recently when we started seeing the following errors. It appears to be something that has been shared by others in the forums before. However, I could not identify a forum with clear solution for this issue. If someone happens to know the steps to resolve the issue, please share. Thanks in advance for your participation. Your Data directory is invalid Please check that the data directory contains a file ".ocdata" in its root. Your Data directory is not writable by ownCloud Permissions can usually be fixed by <a href="https://doc.owncloud.org/server/10.4/go.php?to=admin-dir_permissions" target="_blank" rel="noreferrer">giving the webserver write access to the root directory</a>.
Issue resolved for those who might be interested. For more details, please check this thread: https://central.owncloud.org/t/your-data-directory-error/27358