It was not possible to execute the cron job via CLI. The following technical errors have appeared:
Your data directory is invalid Ensure there is a file called ".ocdata" in the root of the data directory.
Your data directory is not writable Permissions can usually be fixed by giving the webserver write access to the root directory. See https://docs.nextcloud.com/server/18/go.php?to=admin-dir_permissions.
If the mentioned error message is shown Nextcloud has difficulties to access the directory, independently from what you believe you’ve done. So to start investigating further I would ask you to provide detailed information about your installation environment, software versions.
Additionally please show the output of this command:
You mention, that your Nextcloud is installed as Docker container, if I didn’t misunderstand your previous message. Please could you share with us, how you execute the Cron job?
Do you run the cron from the host machine, or within the docker container?