I’ll try to help; please forgive any typos, nowhere near a computer at the moment -
The first thing I’d do is to check the integrity of the storage location - if you’re on btrfs, something like ‘btrfs scrub start -d /mnt/cache’. The ‘-d’ option gives per-device stats at the end of the scrub, and once it completes, it’ll give an exit code of either 0 if it’s ‘all clear’, or 1-3 if it finds something/has issues.
Also, what are your volume mounts like for the container? Did you directly map ‘/mnt/cache/’, or did you use something like ‘/mnt/user//’? Is this a ‘cache only’ directory, or do you have mover enabled for it?
Having enabled server-side encryption really limits your recovery options, restricting you to only the tools available within NC. I’d first want to verify we’re using the same NC image, that it didn’t get updated for some reason. Are you using anything to auto update containers?
Check to see when the image was updated last (‘docker image list’ command, look at the ‘CREATED’ line). If this lines up with when you set up the container 4 months ago, you’re clear on this part at least. Otherwise, rolling back the container might be helpful.
What are you using for your database? Are you able to manually browse the database (using sqlite3/pgadmin/adminer/etc)?
A couple spitball ideas that might be helpful:
- Issue a filesystem scan from NC - “./occ files:scan-app-data” and “./occ files:scan --all”
- Run a repair - “./occ maintenance:repair”
Based on the fact that your .ocdata file up and disappeared though, I’m not holding out hope that the data is recoverable, especially with encryption enabled… Nothing to do with unraid IMO (unless maybe you did some manual mover stuff, which could bork it up), but more likely an issue with either the filesystem or the drives hosting it.
I know it’s been mentioned earlier, and I don’t want to seem like I’m kicking you while you’re down or anything, but at the very least, a backup should’ve been taken prior to enabling encryption so you at least had one point in time where the data could be worked with outside of the NC ecosystem in order to help enable a recovery op… I sincerely hope you’re able to get the data back, but if not, please do keep this in mind in the future.