this post was submitted on 10 Jul 2025
39 points (93.3% liked)

Selfhosted

49386 readers
905 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hi everyone, I have Truenas core running on an old desktop at home. For the past year everything has been going great. However for the past month or so I started to notice that my SMB share for Jellyfin was getting reset to some 6 movies. All of my home videos, music, TV shows, and other movies where gone. I have a backup drive where I store all this data so I copied the files back and Jellyfin saw them immediately again... but by the next day all where gone again. At first I thought someone had deleted them by accident so I checked the user access of my family members and no one except me has access to delete movies and the logs don't show any media deletion that I wasn't aware of (I found 2 duplicated movies). The server isn't exposed in any way to the internet except for a VPN connection that I keep closed tabs regarding access. I checked the permissions of Jellyfin's container in my Truenas server and both UID and GID are set to 568 per the Internet's recommendation when I set it up originally. My server is running on two 4TB HDDs configured in a mirror. I checked the health of both drives and both show healthy and without errors. I still suspect that when the server syncs the data, that somehow the data from the wrong drive is overwriting the data of the one with the media and deleting it, but I don't know enough on how to check.

Please let me know if you need more information and how to get it, as I am a complete noob when it comes to servers but I am trying to learn.

Thanks y'all

UPDATE: Some have suggested that my Syncthings server could have been the issue, however turning off the server has not fixed the issue and once again files got deleted.

UPDATE 2: I looked at the SMB logs and noticed a bunch of "Unlink" events that seem to be running every morning around 7am and go over every one of my media files. I am assuming "Unlink" means delete somehow, but I can't determine what is calling it.

you are viewing a single comment's thread
view the rest of the comments
[–] Pantsofmagic@lemmy.world 15 points 2 days ago (1 children)

I don't know much about these specific services but this is the kind of behavior I'd expect to see if you've got a data synchronization service running and the clocks are out of sync. Like if it thinks an action was taken in the future that was actually in the past. Might be useful to check time zone configs and any other synchronization-related items.

[–] HurlingDurling@lemmy.world 8 points 2 days ago* (last edited 1 day ago) (1 children)

Interesting, I wonder if my Syncthing server could be the culprit. They are on different pools but I'll turn it off and see if it does anything.

UPDATE: Files still got deleted :(

[–] Onomatopoeia@lemmy.cafe 6 points 2 days ago (1 children)

Oh, Syncthing? It could definitely do this, I've had it happen.

Once files are deleted, ST will have the deletion in it's database. You can recreate the files all you want, ST is going to delete them.

[–] HurlingDurling@lemmy.world 1 points 1 day ago

The thing was I have never deleted them, one day they just started getting deleted by themselves and nothing I do gets them to stay in the drives.