[Help] Jellyfin freeze the F4-424

Discussion on Jellyfin media server, clients
Post Reply
User avatar
exqo
Posts: 31
Joined: 20 Dec 2025, 19:54
France

[Help] Jellyfin freeze the F4-424

Post by exqo »

Hello,

I faced an issue on my F4-424 (TOS 6) since couple of weeks, the NAS became unreachable with Jellyfin on Docker.
I spent some time to find the NAS killer. Finally by switch ON/OFF some containers, i finally found that Jellyfin is the one..

Unfortunatly I can't find any logs about it.
I just have an unreachable NAS. CPU or RAM are OK just before the tornado. I use Beszel to get some monitoring data.

Here is my docker-compose:

Code: Select all

services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    environment:
      - PUID=Anonymous
      - PGID=Anonymous
      - TZ=Europe/Paris
    volumes:
      - /Volume2/DockerAppsData/jellyfin/config:/config
      - /Volume2/jellyfin:/data/media
    ports:
      - 8096:8096
    devices:
      - /dev/dri:/dev/dri
    restart: unless-stopped
    deploy:
      resources:
        limits:
          cpus: "2.00"
          memory: 4096M
networks: {}
If you found something to optimize in my file, please let me now.
And if you already faced this kind of issue, please let me know how I can solve it.

For the moment, I am back on the community app but I would prefer to have it on Docker...
I'll try again under TOS7 when it will be available in stable version.
F4-424 - 2x4TB (Ironwolf) Traid + 1x8TB (WD Red)
TOS: 7.0.0746
RAM: 8GB
Bios: BJFX-ADLN-109
User avatar
exqo
Posts: 31
Joined: 20 Dec 2025, 19:54
France

Re: [Help] Jellyfin freeze the F4-424

Post by exqo »

I finally found some logs about issue with SqlLite.

How can i fix it ?

Code: Select all

2026-01-22T06:54:59.998639334Z [07:54:59] [INF] [16] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 172.19.0.1 request
2026-01-22T06:55:03.784765264Z [07:55:03] [WRN] [25] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS 172.19.0.1 error receiving data: The remote party closed the WebSocket connection without completing the close handshake.
2026-01-22T06:55:03.791967209Z [07:55:03] [INF] [25] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 172.19.0.1 closed
2026-01-22T10:10:04.205049997Z [11:10:04] [ERR] [27] Microsoft.EntityFrameworkCore.Database.Connection: An error occurred using the connection to database 'main' on server '/config/data/data/jellyfin.db'.
2026-01-22T10:10:04.222183216Z [11:10:04] [ERR] [27] Microsoft.EntityFrameworkCore.Query: An exception occurred while iterating over the results of a query for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'.
2026-01-22T10:10:04.222217004Z Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked For more information on this error code see https://www.sqlite.org/rescode.html'.
2026-01-22T10:10:04.222223446Z    at Microsoft.Data.Sqlite.SqliteConnection.Open()
2026-01-22T10:10:04.222226963Z    at System.Data.Common.DbConnection.OpenAsync(CancellationToken cancellationToken)
2026-01-22T10:10:04.222230018Z --- End of stack trace from previous location ---
2026-01-22T10:10:04.222233411Z    at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
2026-01-22T10:10:04.222236886Z    at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
2026-01-22T10:10:04.222256743Z    at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)
2026-01-22T10:10:04.222262388Z    at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
2026-01-22T10:10:04.222266040Z    at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken)
2026-01-22T10:10:04.222269426Z    at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
2026-01-22T10:10:04.222272628Z Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked For more information on this error code see https://www.sqlite.org/rescode.html'.
2026-01-22T10:10:04.222275922Z    at Microsoft.Data.Sqlite.SqliteConnection.Open()
2026-01-22T10:10:04.222278944Z    at System.Data.Common.DbConnection.OpenAsync(CancellationToken cancellationToken)
2026-01-22T10:10:04.222282003Z --- End of stack trace from previous location ---
2026-01-22T10:10:04.222284866Z    at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
2026-01-22T10:10:04.222289185Z    at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
2026-01-22T10:10:04.222292400Z    at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)
2026-01-22T10:10:04.222295650Z    at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
2026-01-22T10:10:04.222298873Z    at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken)
2026-01-22T10:10:04.222302048Z    at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
2026-01-22T10:10:04.224831957Z [11:10:04] [ERR] [27] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL GET /Items.
2026-01-22T10:10:04.224852313Z Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked For more information on this error code see https://www.sqlite.org/rescode.html'.
2026-01-22T10:10:04.224857306Z    at Microsoft.Data.Sqlite.SqliteConnection.Open()
2026-01-22T10:10:04.224860905Z    at System.Data.Common.DbConnection.OpenAsync(CancellationToken cancellationToken)
2026-01-22T10:10:04.224864440Z --- End of stack trace from previous location ---
2026-01-22T10:10:04.224867879Z    at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
2026-01-22T10:10:04.224871319Z    at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
2026-01-22T10:10:04.224889298Z    at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)
2026-01-22T10:10:04.224894720Z    at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
2026-01-22T10:10:04.224898793Z    at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken)
2026-01-22T10:10:04.224902475Z    at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
2026-01-22T10:10:04.224906109Z    at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
2026-01-22T10:10:04.224909926Z    at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
2026-01-22T10:10:04.224913348Z    at Jellyfin.Server.Implementations.Security.AuthorizationContext.GetAuthorizationInfoFromDictionary(Dictionary`2 auth, IHeaderDictionary headers, IQueryCollection queryString)
2026-01-22T10:10:04.224917919Z    at Jellyfin.Server.Implementations.Security.AuthorizationContext.GetAuthorizationInfoFromDictionary(Dictionary`2 auth, IHeaderDictionary headers, IQueryCollection queryString)
2026-01-22T10:10:04.224921740Z    at Jellyfin.Server.Implementations.Security.AuthorizationContext.GetAuthorizationInfo(HttpRequest requestContext)
2026-01-22T10:10:04.224925126Z    at Emby.Server.Implementations.HttpServer.Security.AuthService.Authenticate(HttpRequest request)
2026-01-22T10:10:04.224928396Z    at Jellyfin.Api.Auth.CustomAuthenticationHandler.HandleAuthenticateAsync()
2026-01-22T10:10:04.224931431Z    at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()
2026-01-22T10:10:04.224934514Z    at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)
2026-01-22T10:10:04.224937731Z    at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
2026-01-22T10:10:04.224940895Z    at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
2026-01-22T10:10:04.224945993Z    at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
2026-01-22T10:10:04.224949455Z    at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
2026-01-22T10:10:04.224952728Z    at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
2026-01-22T10:10:04.224956043Z    at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
F4-424 - 2x4TB (Ironwolf) Traid + 1x8TB (WD Red)
TOS: 7.0.0746
RAM: 8GB
Bios: BJFX-ADLN-109
User avatar
ColaChen
TM Support
Posts: 164
Joined: 11 Aug 2023, 18:15
China

Re: [Help] Jellyfin freeze the F4-424

Post by ColaChen »

The issue is caused by permission/occupation/corruption of the SQLite database file, which prevents EF Core from establishing a connection. In 90% of cases, this is a permission mismatch problem in Docker deployment. You can resolve it by modifying the mounted volume's permission to 755 before redeployment.
Post Reply

Return to “Jellyfin Media Server”