• 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 Can't Backup Jellyfin

     
    • 0 Vote(s) - 0 Average

    Can't Backup Jellyfin

    Hics
    Offline

    Junior Member

    Posts: 1
    Threads: 1
    Joined: 2024 Apr
    Reputation: 0
    #1
    2025-04-17, 02:06 PM
    Last night when I was trying to backup Jellyfin I ran into this error message: 

    "Could not read /var/lib/jellyfin/.aspnet/DataProtection-Keys/key-*random string of letters and numbers*.xml"

    I didn't include the exact random string of letters and numbers in case it has something to do with security. I've backed up Jellyfin multiple times in the last few years without running into this issue. Any idea how to fix it or if the .aspnet folder even needs to be backed up? 

    Thanks!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-04-17, 03:11 PM
    Depending on how you're doing backups, its possible this file existed when the contents of /var/lib/jellyfin were enumerated but was no longer present when the backup went to actually copy the file.

    Additionally, this implies you are backing up Jellyfin while it is running. 99% of the time this is probably ok, but we do recommend you shutdown Jellyfin during a backup to ensure that database commits are, at least, written to the database WAL/SHM files.

    If you happen to capture the database while a commit was pending in memory or mid-commit, the resulting restore may be corrupt.

    You can use rsync to do differential backups, which would massively cut down on backup times. My daily backups are quick enough that clients have enough buffer to not notice the disruption. Usually under 20 seconds from initiating shutdown to becoming fully available again. Though I run the backup in the middle of the night to ensure this goes unnoticed.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • 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