Nexcloud 18 - Up and running, but error with datadirectory and ocdata

Hi,

my NC Installation on ubuntu 18.04 with nginx (no docker) is working fine with the webui - i moved the data partition to another disk but got several issues:

It was not possible to execute the cron job via CLI. The following technical errors have appeared:

* Ihr Datenverzeichnis muss einen eindeutigen Pfad haben Überprüfen Sie bitte die Angabe unter „datadirectory“ in Ihrer Konfiguration
* Ihr Datenverzeichnis ist ungültig. Stellen Sie sicher, dass eine Datei ".ocdata" im Wurzelverzeichnis des data-Verzeichnisses existiert.

The mountpoint looks right:

fstab:
UUID=xxxx /mnt/nextcloud-data ext4 defaults 0 2

-rwxrwxr-x 1 www-data www-data 0 Feb 19 07:07 /mnt/nextcloud-data/.ocdata

as well as the config.php:

‘datadirectory’ => ‘/mnt/nextcloud-data’,

and the .ocdata:

ls -l /mnt/nextcloud-data/.ocdata
-rwxrwxr-x 1 www-data www-data 0 Feb 19 07:07 /mnt/nextcloud-data/.ocdata

and in my database:

select * from oc_storages where id like 'local%';
+------------+-----------------------------+-----------+--------------+
| numeric_id | id                          | available | last_checked |
+------------+-----------------------------+-----------+--------------+
|          1 | local::/mnt/nextcloud-data/ |         1 |         NULL |
+------------+-----------------------------+-----------+--------------+

so i am running out of ideas - what could be wrong ?

Thanks in advance,
Tom

Got the same issue after migrating installation to a new server. Any ideas?

EDIT: The problem went away after I switched Background jobs to use cron and installed a crontab for the nextcloud user to run cron.php every 5 minutes as documented in https://docs.nextcloud.com/server/18/admin_manual/configuration_server/background_jobs_configuration.html