• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Jellyfin deletes all media metadata when unable to access media filles

     
    • 0 Vote(s) - 0 Average

    Jellyfin deletes all media metadata when unable to access media filles

    cthunsfrd
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2023 Jul
    Reputation: 0
    Country:China
    #1
    2024-05-13, 03:52 AM (This post was last modified: 2024-05-13, 03:53 AM by cthunsfrd. Edited 1 time in total.)
    Jellyfin server deletes all metadata during restart if unable to access media files.
    Because my media files are on another server and Jellyfin server access these files through local ethernet.
    These files are not always accessable if the server is not up or network error.
    This is not a problem if Jellyfin server keeps on as I disabled filesystem monitoring.
    When connection restores, I can access my movies again on Jellyfin server.
    But if Jellyfin server restarts at this time,I loses all midia metadata, Jellyfin server deletes all at startup.
    Is there any way to keep the metadata if media files are not accessable when restarting Jellyfin?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 11,852
    Threads: 10
    Joined: 2023 Jun
    Reputation: 347
    Country:United States
    #2
    2024-05-13, 12:11 PM
    What OS is the jellyfin server running? If it is Linux there are ways to modify the service file to wait for certain conditions before starting Jellyfin.
    Jellyfin 10.10.3 (Docker)
    Ubuntu 24.04 LTS 
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        3x WD Red Pro 6TB CMR in RAIDZ1 (JF Library)
    [Image: GitHub%20Sponsors-grey?logo=github]
    cthunsfrd
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2023 Jul
    Reputation: 0
    Country:China
    #3
    2024-05-14, 12:42 PM
    Server OS: Centos7.9(runs on esxi6.7)
    Jellyfin version : 10.8.10

    Media files are mouted via cifs during server startup
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 11,852
    Threads: 10
    Joined: 2023 Jun
    Reputation: 347
    Country:United States
    #4
    2024-05-14, 02:37 PM
    In the service file you can add "RequiresMountsFor=/your/cifs/mount/path"

    The service file is located at

    /etc/systemd/system/multi-user.target.wants/jellyfin.service

    Using my service file as an example, you would add RequiresMountFor like this.

    Code:
    [Unit]
    Description = Jellyfin Media Server
    After = network-online.target

    [Service]
    RequiresMountsFor=/media/library
    Type = simple
    EnvironmentFile = /etc/default/jellyfin
    User = jellyfin
    Group = jellyfin
    WorkingDirectory = /var/lib/jellyfin
    ExecStart = /usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
    Restart = on-failure
    TimeoutSec = 15
    SuccessExitStatus=0 143

    [Install]
    WantedBy = multi-user.target
    Jellyfin 10.10.3 (Docker)
    Ubuntu 24.04 LTS 
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        3x WD Red Pro 6TB CMR in RAIDZ1 (JF Library)
    [Image: GitHub%20Sponsors-grey?logo=github]
    cthunsfrd
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2023 Jul
    Reputation: 0
    Country:China
    #5
    2024-05-15, 12:06 PM
    Thanks, It works perfect,
    after reboot jellyfin server keeps running but no longer deletes any metadata now.
    « Next Oldest | Next Newest »

    Users browsing this thread:


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode