Data directory is invalid. Please check that the data directory contains a file “.ocdata” in its root in nextcloud 19

hi,

i have this issue “Data directory is invalid. Please check that the data directory contains a file “.ocdata” in its root” just after i move /var/html/nextcloud/data to my new partition /data/,

i would like to know how to disappear this message,

i use nextcloud 19 on debian9

thanks for your response

Hi,

You should change your ‘datadirectory’ setting in config.php.

i put in my previous partition ‘datadirectory’ => ‘/var/www/html/nextcloud/data’, but same, i have the same error

You still got error after the cron task? If yes, I don’t know right now how to help you.

i don’t put a cron task

in basic settings i cliked on yebcron and its gone