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.

  • Vega
    link
    fedilink
    51 year ago

    Never happened to me. You sure there are no misconfigurations on your side or (deeply worse) someone had actual access to your server?

    • seahorse [Ohio]OPA
      link
      31 year ago

      I’ll have to check the configs. I doubt someone had access to my server but I suppose it’s possible. My initial thought was that it has a bug where if something doesn’t exist it accidentally just just rm -rf * somehow.

  • krolden
    link
    fedilink
    41 year 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]OPA
      link
      31 year 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
        41 year 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?