Nextcloud causing .ocodata file missing error with luks encrypted drive

I installed nextcloud via snap on a ubuntu 18.04 lts vm. The vm hosted on proxmox has a 1tb hdd passed to it which i have encrypted via luks inside of ubuntu.The drive automatically unlocks when ubuntu boots up. Next cloud states “.ocodata file missing error, file should be in root of data directory”.

i had followed nextcloud snap with data-directory on external harddrive - Ask Ubuntu this to change the location of the default snap data directly to the desired hard disk location.

I guess this is a nextcloud not being able to access the disk issue or something of that sort. Is there a better way to do this ? a better tutorial or something that uses a encrypted drive

Edit : even without a encrypted disk the same issue occurs