• 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 Troubleshooting SOLVED: Malformed Jellyfin Database

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    SOLVED: Malformed Jellyfin Database

    Malformed Jellyfin Database
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #11
    2025-03-17, 02:21 AM
    You can restore the backup from 10.10.4 and it should bring it up to 10.10.6. You'd lose any watch status since the backup, but you'd only need to rescan new content added since and your users should still be present.
    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]
    Winthryth
    Offline

    Junior Member

    Posts: 14
    Threads: 2
    Joined: 2024 May
    Reputation: 0
    Country:United States
    #12
    2025-03-17, 10:41 PM
    I was able to fix my database without having to restore form the backup! Running

    sudo sqlite3 library.db .dump
    sudo sqlite3 jellyfin.db .dump

    on a copy of my current database files revealed that my library.db had errors via the final line "ROLLBACK; -- due to errors"

    From https://stackoverflow.com/questions/5274...-malformed I ran the below script on both library.db and jellyfin.db

    #!/bin/bash
    cat <( sqlite3 "$1" .dump | grep "^ROLLBACK" -v ) <( echo "COMMIT;" ) | sqlite3 "fix_$1"


    and resorted them both both to /var/lib/jellyfin/data/ . I also deleted any .bak, db-shm and db-wal file I found for each database. Upon restarting jellyfin all of my data seems to be preserved and "Scan Media Library" and "Extract Chapter Images" tasked completed without errors.

    Thank you for all your help TheDreadPirate!
    1
    Pages (2): « Previous 1 2

    « Next Oldest | Next Newest »

    Users browsing this thread: 2 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