Disappearing Folders and Files

I am running version 25.04.2.3 of the community edition of TrueNAS. I have four identical drives running in mirrored configuration. I have two data sets and each data set has a share. I created a folder in one of the shares and copied a number of files into the folder. I was able to access the folder from another machine but then shortly after, when I went to copy another file into the folder, the folder had disappeared.

This is a nightmare for me as if I can’t trust that files and folders will not disappear, how can I use my NAS.

Is this a known issue? Have I configured something wrong?
Is there somewhere I can see a log to see if TrueNAS is doing this?

Andy

Further to this, I noticed in TrueNAS that there was a lock on the folder that was disappearing. When I closed the application that I was creating the files in, I saw all my files and folder disappear from Explorer !!!

Andy

It is possible to create folders where you can write files but not read them. You might have created such a folder by messing up the ACL.

To check if that is the case, can you list the directory contents as root user and check if the files are there?

If you don’t know how to list directory contents using the shell:

  1. Go to System > Shell
  2. Execute sudo ls -al /mnt/tank/foo. Replace tank with your pool name and foo with your dataset name.

Thanks for the advice.
I have not changed the ACL’s since creating the dataset/shares which was some weeks ago and have not seen this issue before.
I can list the files in the directory that I previously had an issue with - if this problem happens again, I will see if I can see the files in the shell.

Best Regards

Andy

In that case my guess was incorrect. Glad it’s working again, hope it stays that way :slight_smile:

It turns out that I think this issue was down to an application I was using. I don’t think it was closing file handles and so when I closed down the application, the files were not persisted - bizarre :frowning: