• 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: Can't "parse/scrape" all music into library

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    SOLVED: Can't "parse/scrape" all music into library

    Especially mp3's
    alike
    Offline

    Member

    Posts: 55
    Threads: 8
    Joined: 2024 Feb
    Reputation: 0
    Country:Norway
    #11
    2025-04-06, 10:02 AM (This post was last modified: 2025-04-06, 10:25 AM by alike. Edited 4 times in total.)
    I will try to rebuild the whole mp3 database. Just remove the library from Jellyfin and then add it back and see how things go. Its quite big, but that's the way it has to be I guess.

    I noticed the library is still present and playable even after I removed it from the library gui. Tried to restart the server and it did some automatic cleanup of playlists. The result is the same however. I have noticed this before as well when removing libraries. The folder is removed from C:\ProgramData\Jellyfin\Server\root\default when I check. Perhaps this just take some time? I've waited for 10 minutes. Or is this a symptom of the bad library database?
    alike
    Offline

    Member

    Posts: 55
    Threads: 8
    Joined: 2024 Feb
    Reputation: 0
    Country:Norway
    #12
    2025-04-06, 02:02 PM (This post was last modified: 2025-04-06, 02:47 PM by alike. Edited 7 times in total.)
    [Image: 4ynFPp4.png]

    This is the log when I try updating the library in question:
    https://privatebin.net/?10263f369893368e...4GZhnX1jV4

    I then tried
    [Image: X4fZdU2.png]
    But the new.db is 0 bytes. Something it does when there are errors in the sql, I am told.

    I tried understanding what this error message relates to. I have the database in sql format in plaintext in front of me. It looks ok to the eye but its almost a million lines of data. Any idea how I can get SQLite to give me the lines that it thinks I need to fix or fix this automatically itself? I've googled a lot on this but looks like one need to find a error message in a log that says which lines are bad and then fix or remove them.

    This didn't help enough. It doesn't say whats wrong as you see.

    If I create a new DB for library, will all the users watched lists and so still be kept and connected to the new DB? Its the user and history data that is most important for me.
    alike
    Offline

    Member

    Posts: 55
    Threads: 8
    Joined: 2024 Feb
    Reputation: 0
    Country:Norway
    #13
    2025-04-06, 03:07 PM (This post was last modified: 2025-04-06, 03:10 PM by alike. Edited 2 times in total.)
    I tried something else. I had in the SQL file I had dumped to dump.sql, a line that said "ROLLBACK; -- due to errors" at the end of the file. I changed this to "COMMIT;" and then dumped the dump.sql to .db using command "SQLite3 library.db" and then ".read dump.sql"

    Now the former bad library is working at 85% syncing the changes since... a along time ago. I don't know if I actually fixed the database, but at least I am allowed to search for changes on it for now. Very excited! I'll share the jellyfin server log later when its finished.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #14
    2025-04-06, 03:44 PM
    I'm not sure which DB watch status is stored in. Assuming watch status saved in jellyfin.db, removing library.db and re-adding libraries would likely result in watch status reset anyway.
    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]
    alike
    Offline

    Member

    Posts: 55
    Threads: 8
    Joined: 2024 Feb
    Reputation: 0
    Country:Norway
    #15
    2025-04-06, 06:53 PM
    Since the db was not syncing while I tried to remove and re-add it, everything stayed the same before I repaired the the database file. So when it was working again and started updating the DB, it actually didn't ruin my watched/listened list. And it looks like most if not all my music got scraped fully or partly, with most of them having pictures and correct track-lists and so on from what I could check in the short time I spent doing it.

    There was a lot of activity in the log as the update of the DB was working. I started scraping the repaired library around 17.30 or so.
    Warning, the log is huge.
    https://privatebin.net/?94f92bb24e0bf315...dscFTr7Xu1

    Entirely different issue: I seem to have some issues with my webhook plugin, not sure what but will have to look at it when I have time.

    All in all very happy and proud that I managed to repair the DB.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #16
    2025-04-06, 08:21 PM
    Can't help with webhook. Never used it.
    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]
    Pages (2): « Previous 1 2

    « 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