To preface; I am very new to this, linux and OMV in general, but I have done my best to rule out the typical culprits.
rundown / TLDR:
Last night, most of my movies and tv shows in my share were deleted from the drive, I am (was...) watching them on a Jellyfin container in docker installed using omv-extras. I have managed to recover about 10% of the files from the drive but the rest are lost. On the bright side however, I will now never miss a backup again.
I don't think it was Jellyfin and I did not consciously delete the files myself. I noticed sub folders behaving strangely a day prior, being moved into other, seemingly random sub folders without me doing so myself. i.e media/jellyfin/movies/21 Jump Street was moved into the media/jellyfin/movies/AvP folder which itself had been moved into the media/jellyfin/movies/Ant man folder.
After the deletion, all sub folders in media/jellyfin/movies and media/jellyfin/tvshows were present with the same titles, just emptied. Non library folders such as media/jellyfin/profile pics were not touched.
longer / extra info:
Some movies were not deleted, specifically ALL of the AvP movies on the drive
. so I have those to watch as consolation whenever this has me feeling down.
I have checked logs, but I am having trouble identifying what could have caused the issue, or even what logs I should be looking at. I have downloaded all the logs I could find from the day and I am keeping them well away from the problem drive for now...
Other folders within the drive did not seem to be affected, only the /media/jellyfin/movies and tvshows folders. For example, I had a small folder with profile pictures at the path /media/jellyfin/profile pics.
This has not happened again (yet), I have put a smaller collection of movies and tv shows back on the drive in the same library to see if it happens again but it seems fine for now. However, there was no issue for at least a day prior to this happening either.
I did install and subsequently uninstall the Kubernetes plugin prior to installing omv-extras docker plugin since it seemed too complex for me at the time and I could find no definitive guide compared to the resources on the omv-extras wiki. Not sure if this is relevant though.
rule outs:
I am 99.9% sure I did not (consciously) delete these myself. I didn't do anything weird with the share and was not touching the files or drive at the time. The .1% is an awareness of the fact I could have possibly done something extremely stupid without realising. ![]()
They were definitely deleted from the drive. The Jellyfin movies and tvshows folders were entirely empty bar the sub folders which once contained the movies. It is not just Jellyfin not picking up the library path.
I don't think it was Jellyfin that did the deleting. In one of the log files I obtained it showed:
[21:03:59] [INF] [39] Emby.Server.Implementations.IO.LibraryMonitor: movies (/jellyfin/jellyfin/movies) will be refreshed.
[21:03:59] [INF] [39] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Movie, Name: Blade Runner 2049, Path: /jellyfin/jellyfin/movies/Bladerunner 2049 (2017)/Bladerunner 2049 (2017) - 1.1 Recut Edition.mkv, Id: 7473a806-6c64-eb94-7b82-d6bf720eb696
and identical messages continuing on to remove most of the other entries for all my other movies and eventually TV shows. However I read somewhere that "Removing" is not the same as "Deleting" in Jellyfin's case and this is confirmed by later logs showing it actually deleting more useless data like images and thumbnails for the movies it could no longer detect.
If anyone's feeling generous, curious or particularly bored I would like some help trying to figure out the cause of this issue so I can avoid it happening again. PLEASE! Especially if it is my own fault. The issue happened somewhere between 20:30-21:30 on the 15th. The syslog.txt was too big to attach to this post, so I have uploaded it to a catbox HERE.
Thank you! ![]()