I’m very new to truenas and nas in general, learning a lot and it’s been fun.
Here is the situation: I made an unencrypted dataset for immich following their documentation, imported all photo’s and video’s trough the mobile app and everything worked like a charm.
I figured using an encrypted dataset was more suited for this so I made a snapshot of the whole immich dataset, made a new encrypted dataset, and copied all files with local zfs replication to that folder.
Trough the truenas immich app I redirected all host paths to the new encrypted dataset. Now all video playbacks show extreme jitter and green artifacts, completely unwatchable. So I tried redirecting all host paths trough the truenas immich app back to the old unecrypted dataset, but the jitter and artifacts persist.
It’s a large collection of valuable personal family memories, so I’m very worried I messed up bad. I hope someone can tell what might have gone wrong, if it’s possible to restore and how to prevent this is the future.
I made one snapshot of the unencrypted immich parent dataset with all it’s children. When the snapshot was made the files were all intact. Other then that, no backups or any other form of data protection were made.
After that I made the encrypted dataset “tank/enc/immich” and started a zfs replication task from “tank/immich” to “tank/enc/immich”. No errors or failures and all went smooth.
Then I went to the immich app on truenas, edit configuration info and changed the host paths from “tank/immich” to “tank/enc/immich” for every dataset:
Now I opened the immich mobile app and all photo’s are working fine, but when I open a video it’s jitters A LOT and green artifacts.
After that, I changed back the host paths to “tank/immich” and restarted the server, but the videos are still corrupted.
I did not roll back the snapshot or touch anything after I saw the video files were corrupted. Because quite frankly I don’t know what I’m doing and scared to completely lose that data.
Immich makes it very clear in their documentation that Immich should not be used as the sole repository of valuable photos. From the very top of this page https://immich.app/⚠️ The project is under very active development. Expect bugs and changes. Do not use it as the only way to store your photos and videos!
Once you resolve the issue, make sure to keep a master copy of all your images outside of Immich.
your situation remember me what happen to me some months ago, but in your case i think it’s just a player problem as already pointed by Winnie. Check that as first thing, if data are safe the strategy to solve the problem will be totally different (and way more relaxed )
That, in itself, if a form of data protection. I hope that this snapshot still exists.
Can you download a video from the unecryted dataset back to your desktop and play it locally? Then do the same with the version of the same video in the snapshot. And with teh same video in the unencryted dataset.
The goal is to check whether the files themselves are damaged, and if so at which point, or whether Immich is borking the display.
Problem solved. The files were in fact NOT corrupted.
It was indeed codec related and had nothing to do with zfs replication or truenas.
These files are very old and have many different filetypes scattered around, some were supported by iPhone, some were not, like .MTS.
I must have opened different files thinking everything was working perfectly.
But I guess immich failed to transcode these .MTS files to something playable on iPhone so I will just convert them manually.