I noticed a movie that I never downloaded somehow showed up in Jellyfin. I searched for the file and couldn’t find it anywhere so I clicked remove media and it deleted every movie I had downloaded. I was luckily able to recover everything but I’m kind of shaken. It deleted the entire movies folder I had.

  • krolden
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    If you have a piece if media in your jf library and its been deleted from disk, the first thing you should do is run a library scan which should remove any deleted files from your library.

    Where exactly did you click ‘remove media’? I can’t find that anywhere, the only thing close to that is ‘delete media’ which will obviously delete the file. If you dont want jellyfin to be able to delete files, you can set your file permissions to disallow write access to groups/all and run jellyfin as a different user than the owner of the file. Just make sure it still has read access to your files.

    I can’t quite figure out how it deleted all of your movies in that library. Did you click the remove option in the library page under the dashboard? I dont think that should actually delete your files, just remove the library from jf.

    • seahorse [Ohio]@midwest.socialOP
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      I right-clicked on that specific movie’s tile from the home page and clicked “Delete media”. My file system is set up like /data/media/movies/movie_title_dir/movie_file and next thing I know I do ls in the terminal and the movie directory was gone.

      • krolden
        link
        fedilink
        arrow-up
        5
        ·
        2 years ago

        Hmmm. I’m thinking maybe that phantom movie that was in your jf library was originally not in it’s own movie directory but in the root of your movies folder. It’s maybe possible that jellyfin then deleted the entire root directory of that movie when you hit delete, which would be your root movies folder.

        Never heard of this happening before but it’s conceivably possible. Was the entire movie directory deleted or just everything inside it?