• 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 SQLite Error 8: 'attempt to write a readonly database'.

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    SQLite Error 8: 'attempt to write a readonly database'.

    Windows/Jellyfin issue: SQLite Error 8: 'attempt to write a readonly database'.
    drnickriviera
    Offline

    Junior Member

    Posts: 11
    Threads: 2
    Joined: 2023 Aug
    Reputation: 0
    Country:United States
    #1
    2023-08-22, 12:18 PM (This post was last modified: 2023-08-22, 01:19 PM by drnickriviera. Edited 1 time in total. Edit Reason: Task Manager snip added )
    Hi all. I hope you can help me with this problem. I've been using Jellyfin for a few years now with no issues - but I'm not a power-user by any means. I started having some problems with my database (constant spinning circle for days) after having to move my media after a lightning strike took out a computer. Eventually I decided to start from scratch. I totally removed Jellyfin and its install directories and installed version 10.8.10 using the Windows installer.

    Now HALF OF THE TIME when Jellyfin starts up it immediately crashes. Basically, Jellyfin starts, immediately crashes, click OK, exit Jellyfin from the tray and restart from the icon and it works fine from that point (although I think if you start stop it again you have to go through the same crash/no crash procedure).

    There are no entries in the Jellyfin log but the Windows Event Log shows the following. Does anyone know why this issue is sporadic, more importantly, how to fix it? It's not the end of the world but I'd like to see it go back to working flawlessly. Thanks in advance.

    Application: jellyfin.exe
    CoreCLR Version: 6.0.1623.17311
    .NET Version: 6.0.16
    Description: The process was terminated due to an unhandled exception.
    Exception Info: Microsoft.Data.Sqlite.SqliteException (0x80004005):
    SQLite Error 8: 'attempt to write a readonly database'.
       at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32
    rc, sqlite3 db)
       at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
       at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior
    behavior)
       at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader()
       at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
       at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject
    parameterObject)
       at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.ExecuteSqlRaw(DatabaseFacade
    databaseFacade, String sql, IEnumerable`1 parameters)
       at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.ExecuteSqlRaw(DatabaseFacade
    databaseFacade, String sql, Object[] parameters)
       at Jellyfin.Server.Program.StartApp(StartupOptions options)
       at Jellyfin.Server.Program.<Main>(String[] args)


    Attached Files Thumbnail(s)
       
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 376
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #2
    2023-08-22, 12:56 PM
    Hey @drnickriviera

    The error "attempt to write a readonly database" usually indicates 2 instances of the jellyfin server running concurrently.
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    drnickriviera
    Offline

    Junior Member

    Posts: 11
    Threads: 2
    Joined: 2023 Aug
    Reputation: 0
    Country:United States
    #3
    2023-08-22, 01:02 PM
    OK. How would I determine that? I ask because I don't see any evidence of that. I only see one instance of Jellyfin in the system tray when this happens.
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 376
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #4
    2023-08-22, 01:04 PM
    Did you check on the Task Manager if there is maybe another instance running? Or a Jellyfin as a service?
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    drnickriviera
    Offline

    Junior Member

    Posts: 11
    Threads: 2
    Joined: 2023 Aug
    Reputation: 0
    Country:United States
    #5
    2023-08-22, 01:20 PM
    I added a screen capture to the original post. I don't see anything under services. I see 4 things under "Startup Apps" for Jellyfin - but I don't see anything duplicated. Am I looking in the right place?
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 376
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #6
    2023-08-22, 01:24 PM
    Try look at the Details Tab and look for instances of jellyfin server
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2023-08-22, 03:17 PM
    Is jellyfin running as a service or as a user startup app?
    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]
    drnickriviera
    Offline

    Junior Member

    Posts: 11
    Threads: 2
    Joined: 2023 Aug
    Reputation: 0
    Country:United States
    #8
    2023-08-22, 03:26 PM (This post was last modified: 2023-08-22, 03:29 PM by drnickriviera. Edited 1 time in total.)
    OK. Thanks for trying to help me with this. I rebooted the PC to get through the whole process.

    PC starts. JellyFin Tray Icon appears.
    Error - jellyfin.exe has stopped working (see screenshot SC1)
    Task Manager DETAILS shows only one JellyFin running (see screenshot SC2)
    Task Manager PROCESSES shows only one Jellyfin running (see screenshot SC3)
    Task Manager STARTUP APPS shows four items, no duplicates (see screenshot SC4)
    System Tray only shows one instance of Jellyfin running (see screenshot sc5)

    Right click the tray icon and exit. Restart from desktop icon and now everything works perfectly.


    Attached Files Thumbnail(s)
                       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #9
    2023-08-22, 04:27 PM
    I'm assuming "rkast" is your user? Which tells me this is running as a user startup application.

    What happens when you run Jellyfin as administrator?
    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]
    drnickriviera
    Offline

    Junior Member

    Posts: 11
    Threads: 2
    Joined: 2023 Aug
    Reputation: 0
    Country:United States
    #10
    2023-08-22, 04:47 PM (This post was last modified: 2023-08-22, 04:49 PM by drnickriviera. Edited 1 time in total.)
       
    I feel like we are getting somewhere. Some recent finds:

    1) When I run Jellyfin from the desktop shortcut it works fine. (points to "C:\Program Files\Jellyfin\Server\Jellyfin.Windows.Tray.exe")
    2) When I try to run Jellyfin from "C:\Program Files\Jellyfin\Server\Jellyfin.Windows.Tray.exe" it crashes.
    3) When I run Jellyfin from "C:\Program Files\Jellyfin\Server\Jellyfin.Windows.Tray.exe" as administrator it DOES NOT CRASH

    I'm looking at that desktop shortcut that works and I don't see anything indicating that it is running as administrator so I have no idea what the difference could be. Thoughts?    
    Pages (2): 1 2 Next »

    « 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