After moving all the files from the default data folder, creating a new .ocdata file and changing the data directory from the config file nextcloud still shows the “missing .ocdata” error while trying to access it but works correctly if I select the default folder (I’m using nextcloud from a rpi and the new data folder is in an external hard disk)
Most likely the file access rights might be insufficient so that the user under which the web server is running cannot access it in that path. The best way to check this is by switch to that user and trying to navigate to that directory and file.
how would I fix that?
If necessary use the chown and chmod commands.