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.
Selfhosted
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:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
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.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
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 :(
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.
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.
You sure that's what is happening, and it's not just mounting a different snapshot/dataset being mounted "on top" ?
I've seen it happen, which is why I ask. Assume the root dataset is named pool0 and has set0 set1 and set1/set2 as child datasets.
Their mount points are as follows:
/pool0/set0
/pool0/set1
/pool0/set1/set2
Now, if somehow, say set2 gets unmounted.temporarily, and you save files to /pool0/set1/set2 while the data set is not mounted, it'll actually put those files in the set1 dataset, under the set2 directory.
But, when you mount the pool0/set1/set2 dataset again, the files under the set1 dataset are hidden by the set2 child.
Am I explaining it well enough for you to follow along?
Make sure you don't have some similar situation by temporarily unmounting any nested datasets and ls'ing their mount points.
Ok, I'll take a look at this and report back if I spot something.
UPDATE: So I checked on this, but I don't have a pool per se, I will say my drive configuration is as Mirror with sda and sdb drives seemingly side by side.
zfs list shows datasets.
zpool list shows pools.
mirror is a type of pool.
Is the SMB share set read-only?
This is a strange one.
Don't think so, but how can I make sure? Looking at the ACL rules I see that @owner (me), @group, and user (me) are all set to full control. However I also see two '@everyone' in the list, one set to modify and the second set to custom (screenshot attached) .
I am also attaching a screenshot of my main datasets screen here as I see that my Dataset Space Management is set to a total allocation of 1.16TB and I am not sure if this is the issue
EDIT: The Jellyfin SMB is still labeled plex media as it used to be Plex before I switched.
What's in the logs?
I don't see anything in the logs that I can gather, but how can I make sure I'm looking at the right log so I can copy it here?
I'd say you should check if any scheduled cleaning tasks are accidentally deleting your files.
Tripwire and auditd can monitor a filesystem and notify you about changes. I don't know the tools myself, because i never needed them. Maybe these can give you a hint on the responsible service.
If you suspect a certain service to be responsible: what do the logs of the service say? If nothing: increase the loglevel to info or debug?
Sorry. No solution. Just ideas. Good luck.