• 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 Custom k8s config has jellyfins database locked

     
    • 0 Vote(s) - 0 Average

    Custom k8s config has jellyfins database locked

    SpiderUnderUrBed
    Offline

    Junior Member

    Posts: 9
    Threads: 4
    Joined: 2023 Oct
    Reputation: 0
    Country:New Zealand
    #1
    2025-03-30, 08:13 AM
    https://pastebin.com/qfZJs0uh
    ^ How come, when i run this config, and after my custom image of jellyfin builds (I am using a custom image because I kept on getting errors with jellyfins provided images). I get the error:
    Code:
    [font=monospace][color=#000000][07:22:33] [INF] [4] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: [] [/color]
    [07:22:35] [INF] [4] Emby.Server.Implementations.ApplicationHost: There are pending EFCore migrations in the database. Applying... (This may take a while, do not
    stop Jellyfin)
    [07:23:05] [ERR] [4] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (30,022ms) [Parameters=[], CommandType='Text', CommandTimeout='30'
    ]
    PRAGMA journal_mode = 'wal';
    [07:23:05] [FTL] [4] Main: Error while starting server
    Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked'.
      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.Sqlite.Storage.Internal.SqliteDatabaseCreator.Create()
      at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.CreateAsync(CancellationToken cancellationToken)
      at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateAsync(String targetMigration, CancellationToken cancellationToken)
      at Emby.Server.Implementations.ApplicationHost.InitializeServices()
      at Emby.Server.Implementations.ApplicationHost.InitializeServices()
      at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
    [07:23:05] [INF] [4] Main: Running query planner optimizations in the database... This might take a while
    [07:23:05] [INF] [4] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
    [07:23:05] [INF] [4] Emby.Server.Implementations.ApplicationHost: Disposing PluginManager
    [/font]
    There is no pods, no other pods that is using the database, jellyfins database just immediately locks up.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-03-30, 03:31 PM
    Do you have the playback reporting plugin installed?
    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]
    SpiderUnderUrBed
    Offline

    Junior Member

    Posts: 9
    Threads: 4
    Joined: 2023 Oct
    Reputation: 0
    Country:New Zealand
    #3
    2025-03-30, 05:48 PM (This post was last modified: 2025-03-30, 05:49 PM by SpiderUnderUrBed.)
    @TheDreadPirate
    How do I check that?
    Here is the full logs incase its in here:
    https://pastebin.com/0Dvcju7E

    The webui isnt opening since its crashing, here is my config folder, idk if that helps:
    [spiderunderurbed@extranucConfused-facemnt/media/jellyfin/config]$ ls
    config data log metadata
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-03-31, 12:21 AM
    Go to where you mounted /config and go to /config/plugins.
    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]
    SpiderUnderUrBed
    Offline

    Junior Member

    Posts: 9
    Threads: 4
    Joined: 2023 Oct
    Reputation: 0
    Country:New Zealand
    #5
    2025-03-31, 12:48 AM (This post was last modified: 2025-03-31, 10:26 AM by SpiderUnderUrBed. Edited 1 time in total.)
    (2025-03-30, 05:48 PM)SpiderUnderUrBed Wrote: @TheDreadPirate
    How do I check that?
    Here is the full logs incase its in here:
    https://pastebin.com/0Dvcju7E

    The webui isnt opening since its crashing, here is my config folder, idk if that helps:
    [spiderunderurbed@extranucConfused-facemnt/media/jellyfin/config]$ ls
    config  data  log  metadata

    (2025-03-31, 12:21 AM)TheDreadPirate Wrote: Go to where you mounted /config and go to /config/plugins.

    I do not have a plugins directory, initially when i first got this error, i thought about rm'ing config, and have it regenerate when i next restarted it, it did not regenerate. Could I manually initilize jellyfin in that directory? Would that fix it, Or is the issue elsewhere? (the plugins directory did not regenerate, everything else in config did, i assume)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2025-03-31, 01:09 PM
    Another thing to check is whether the user running the container has full read/write permissions to what /config is. The fact that you don't have a plugins directory is a good indicator that this is a permissions issue.
    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