Jellyfin Docker Server suddenly won't start - schtocker - 2025-05-08
My Jellyfin set up has been running fine for months, but I was messing around today with adding an IPTV service to it, and at one point thought it might help to restart the Docker container but after I did so the server won't come back up.
After reading several threads and suspecting plugins (specifically the Xtream plugin I was using for IPTV), I went through the config files and deleted all mention of that plugin, but again restarting the container it got stuck at the same point (according to the logs). Then I went through the config folder and deleted all mentions of Live TV and Recordings too, but again no joy.
Log below;
Quote:[15:44:28] [INF] [1] Main: Jellyfin version: 10.10.7
[15:44:28] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_DATA_DIR, /config]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_CACHE_DIR, /cache]"]
[15:44:28] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll"]
[15:44:28] [INF] [1] Main: Operating system: Debian GNU/Linux 12 (bookworm)
[15:44:28] [INF] [1] Main: Architecture: X64
[15:44:28] [INF] [1] Main: 64-Bit Process: True
[15:44:28] [INF] [1] Main: User Interactive: True
[15:44:28] [INF] [1] Main: Processor count: 4
[15:44:28] [INF] [1] Main: Program data path: /config
[15:44:28] [INF] [1] Main: Log directory path: /config/log
[15:44:28] [INF] [1] Main: Config directory path: /config/config
[15:44:28] [INF] [1] Main: Cache path: /cache
[15:44:28] [INF] [1] Main: Temp directory path: /tmp/jellyfin
[15:44:28] [INF] [1] Main: Web resources path: /jellyfin/jellyfin-web
[15:44:28] [INF] [1] Main: Application directory: /jellyfin/
[15:44:28] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
[15:44:29] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[15:44:30] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.OpenSubtitles, Version=20.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Open Subtitles_20.0.0.0/Jellyfin.Plugin.OpenSubtitles.dll
[15:44:30] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[15:44:30] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[15:44:30] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[15:44:30] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "172.25.1.2"]
[15:44:30] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"]
[15:44:30] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is Allowlist
[15:44:30] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
It always get stuck after the "Filtered subnets:" line and doesn't report anything else. Again looking at other threads people often get errors right after this line, but my server doesn't even seem to be able to log the error.
Thanks in advance for any suggestions!
RE: Jellyfin Docker Server won't start - Cutter - 2025-05-08
Maybe debug logging will give more info:
https://jellyfin.org/docs/general/administration/troubleshooting#debug-logging
RE: Jellyfin Docker Server won't start - schtocker - 2025-05-08
It occurred to me that I also edited the Published Server URIs (because the Xtream plugin suggested it as troubleshooting) which I figured could be the problem, seeing as it appeared to get stuck at a networking stage. So I edited my changes out of the network.xml but it made no difference.
Then I read that if you just delete the network.xml, Jellyfin should repopulate it automatically so I figured it was worth ago and deleted it. Unfortunately it hasn't fixed it, but also Jellyfin is not recreating the .xml file, which seems like a bad sign too.
RE: Jellyfin Docker Server won't start - schtocker - 2025-05-08
I enabled debug logging as instructed by the docs, new logs below (although the first line says "Failed to create/read logger configuration" there are definitely new lines in the log so, not sure if it worked?(
Quote:[16:16:47] [FTL] [1] : Failed to create/read logger configuration
System.ArgumentException: A source source must be provided. (Parameter 'source')
at Serilog.Configuration.LoggerMinimumLevelConfiguration.Override(String source, LoggingLevelSwitch levelSwitch)
at Serilog.Settings.Configuration.ConfigurationReader.<>c__DisplayClass11_1.<ApplyMinimumLevel>b__3(LoggerMinimumLevelConfiguration configuration, LoggingLevelSwitch levelSwitch)
at Serilog.Settings.Configuration.ConfigurationReader.<>c__DisplayClass11_0.<ApplyMinimumLevel>g__ApplyMinimumLevelConfiguration|1(IConfigurationSection directive, Action`2 applyConfigAction)
at Serilog.Settings.Configuration.ConfigurationReader.ApplyMinimumLevel(LoggerConfiguration loggerConfiguration)
at Serilog.Settings.Configuration.ConfigurationReader.Configure(LoggerConfiguration loggerConfiguration)
at Serilog.Configuration.LoggerSettingsConfiguration.Settings(ILoggerSettings settings)
at Serilog.ConfigurationLoggerConfigurationExtensions.Configuration(LoggerSettingsConfiguration settingConfiguration, IConfiguration configuration, ConfigurationReaderOptions readerOptions)
at Jellyfin.Server.Helpers.StartupHelpers.InitializeLoggingFramework(IConfiguration configuration, IApplicationPaths appPaths)
[16:16:47] [INF] [1] Main: Jellyfin version: 10.10.7
[16:16:47] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_DATA_DIR, /config]"]
[16:16:47] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll"]
[16:16:47] [INF] [1] Main: Operating system: Debian GNU/Linux 12 (bookworm)
[16:16:47] [INF] [1] Main: Architecture: X64
[16:16:47] [INF] [1] Main: 64-Bit Process: True
[16:16:47] [INF] [1] Main: User Interactive: True
[16:16:47] [INF] [1] Main: Processor count: 4
[16:16:47] [INF] [1] Main: Program data path: /config
[16:16:47] [INF] [1] Main: Log directory path: /config/log
[16:16:47] [INF] [1] Main: Config directory path: /config/config
[16:16:47] [INF] [1] Main: Cache path: /cache
[16:16:47] [INF] [1] Main: Temp directory path: /tmp/jellyfin
[16:16:47] [INF] [1] Main: Web resources path: /jellyfin/jellyfin-web
[16:16:47] [INF] [1] Main: Application directory: /jellyfin/
[16:16:47] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
[16:16:47] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[16:16:47] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.OpenSubtitles, Version=20.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Open Subtitles_20.0.0.0/Jellyfin.Plugin.OpenSubtitles.dll
[16:16:48] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[16:16:48] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[16:16:48] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[16:16:48] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "172.25.1.2"]
[16:16:48] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"]
[16:16:48] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is Allowlist
[16:16:48] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
[16:16:50] [INF] [1] Microsoft.EntityFrameworkCore.Database.Command: Executed DbCommand (23ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT COUNT(*) FROM "sqlite_master" WHERE "name" = '__EFMigrationsHistory' AND "type" = 'table';
[16:16:50] [INF] [1] Microsoft.EntityFrameworkCore.Database.Command: Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT "MigrationId", "ProductVersion"
FROM "__EFMigrationsHistory"
ORDER BY "MigrationId";
RE: Jellyfin Docker Server suddenly won't start - schtocker - 2025-05-08
Actually got the debug logging working (the instructions as written in the docs didn't work for me), new log below. It seems to be something to do with the database reading, perhaps my database is buggered? None of the log lines actually seem like errors though.
Quote:[16:39:43] [INF] [1] Main: Jellyfin version: 10.10.7
[16:39:43] [INF] [1] Main: Environment Variables: ["[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_DATA_DIR, /config]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]"]
[16:39:43] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll"]
[16:39:43] [INF] [1] Main: Operating system: Debian GNU/Linux 12 (bookworm)
[16:39:43] [INF] [1] Main: Architecture: X64
[16:39:43] [INF] [1] Main: 64-Bit Process: True
[16:39:43] [INF] [1] Main: User Interactive: True
[16:39:43] [INF] [1] Main: Processor count: 4
[16:39:43] [INF] [1] Main: Program data path: /config
[16:39:43] [INF] [1] Main: Log directory path: /config/log
[16:39:43] [INF] [1] Main: Config directory path: /config/config
[16:39:43] [INF] [1] Main: Cache path: /cache
[16:39:43] [INF] [1] Main: Temp directory path: /tmp/jellyfin
[16:39:43] [INF] [1] Main: Web resources path: /jellyfin/jellyfin-web
[16:39:43] [INF] [1] Main: Application directory: /jellyfin/
[16:39:44] [DBG] [1] Jellyfin.Server.Migrations.MigrationRunner: Skipping migration 'CreateNetworkConfiguration' since it is already applied
[16:39:44] [DBG] [1] Jellyfin.Server.Migrations.MigrationRunner: Skipping migration 'MigrateMusicBrainzTimeout' since it is already applied
[16:39:44] [DBG] [1] Jellyfin.Server.Migrations.MigrationRunner: Skipping migration 'MigrateNetworkConfiguration' since it is already applied
[16:39:44] [DBG] [1] Jellyfin.Server.Migrations.MigrationRunner: Skipping migration 'MigrateEncodingOptions' since it is already applied
[16:39:44] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
[16:39:44] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[16:39:44] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.OpenSubtitles, Version=20.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Open Subtitles_20.0.0.0/Jellyfin.Plugin.OpenSubtitles.dll
[16:39:44] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of MediaBrowser.Common.Providers.SubtitleConfigurationFactory
[16:39:44] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of MediaBrowser.Common.Net.NetworkConfigurationFactory
[16:39:44] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of MediaBrowser.Controller.Library.MetadataConfigurationStore
[16:39:44] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of Emby.Server.Implementations.Branding.BrandingConfigurationFactory
[16:39:44] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of MediaBrowser.MediaEncoding.Configuration.EncodingConfigurationFactory
[16:39:44] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of MediaBrowser.XbmcMetadata.Configuration.NfoConfigurationFactory
[16:39:44] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of Jellyfin.Server.Migrations.MigrationsFactory
[16:39:44] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Creating instance of Jellyfin.LiveTv.Configuration.LiveTvConfigurationFactory
[16:39:44] [DBG] [1] Jellyfin.Networking.Manager.NetworkManager: Refreshing LAN information.
[16:39:44] [DBG] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN interface addresses as user provided no LAN details.
[16:39:44] [DBG] [1] Jellyfin.Networking.Manager.NetworkManager: Refreshing interfaces.
[16:39:44] [DBG] [1] Jellyfin.Networking.Manager.NetworkManager: Discovered 2 interfaces.
[16:39:44] [DBG] [1] Jellyfin.Networking.Manager.NetworkManager: Interfaces addresses: ["127.0.0.1", "172.25.1.2"]
[16:39:44] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[16:39:44] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[16:39:44] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[16:39:44] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "172.25.1.2"]
[16:39:44] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"]
[16:39:44] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is Allowlist
[16:39:44] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
[16:39:44] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Found API endpoints in plugin Jellyfin.Plugin.OpenSubtitles, Version=20.0.0.0, Culture=neutral, PublicKeyToken=null
[16:39:44] [DBG] [1] Emby.Server.Implementations.ApplicationHost: Found API endpoints in plugin MediaBrowser.Providers, Version=10.10.7.0, Culture=neutral, PublicKeyToken=null
[16:39:46] [DBG] [1] Microsoft.EntityFrameworkCore.Model: The index {'UserId'} was not created on entity type 'DisplayPreferences' as the properties are already covered by the index {'UserId', 'ItemId', 'Client'}.
[16:39:46] [DBG] [1] Microsoft.EntityFrameworkCore.Model: The index {'UserId'} was not created on entity type 'Permission' as the properties are already covered by the index {'UserId', 'Kind'}.
[16:39:46] [DBG] [1] Microsoft.EntityFrameworkCore.Model: The index {'UserId'} was not created on entity type 'Preference' as the properties are already covered by the index {'UserId', 'Kind'}.
[16:39:46] [DBG] [1] Microsoft.EntityFrameworkCore.Infrastructure: Entity Framework Core 8.0.11 initialized 'JellyfinDbContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:8.0.11' with options: MaxPoolSize=1024
[16:39:46] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Creating DbConnection.
[16:39:46] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Created DbConnection. (13ms).
[16:39:46] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Opening connection to database 'main' on server '/config/data/jellyfin.db'.
[16:39:46] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Opened connection to database 'main' on server '/config/data/jellyfin.db'.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Disposing connection to database 'main' on server '/config/data/jellyfin.db'.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Disposed connection to database 'main' on server '/config/data/jellyfin.db' (1ms).
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Command: Creating DbCommand for 'ExecuteScalar'.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Creating DbConnection.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Created DbConnection. (0ms).
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Command: Created DbCommand for 'ExecuteScalar' (9ms).
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Command: Initialized DbCommand for 'ExecuteScalar' (18ms).
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Opening connection to database 'main' on server '/config/data/jellyfin.db'.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Opened connection to database 'main' on server '/config/data/jellyfin.db'.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Command: Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT COUNT(*) FROM "sqlite_master" WHERE "name" = '__EFMigrationsHistory' AND "type" = 'table';
[16:39:47] [INF] [1] Microsoft.EntityFrameworkCore.Database.Command: Executed DbCommand (33ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT COUNT(*) FROM "sqlite_master" WHERE "name" = '__EFMigrationsHistory' AND "type" = 'table';
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Closing connection to database 'main' on server '/config/data/jellyfin.db'.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Closed connection to database 'main' on server '/config/data/jellyfin.db' (4ms).
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Opening connection to database 'main' on server '/config/data/jellyfin.db'.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Opened connection to database 'main' on server '/config/data/jellyfin.db'.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Command: Creating DbCommand for 'ExecuteReader'.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Command: Created DbCommand for 'ExecuteReader' (0ms).
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Command: Initialized DbCommand for 'ExecuteReader' (0ms).
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Command: Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT "MigrationId", "ProductVersion"
FROM "__EFMigrationsHistory"
ORDER BY "MigrationId";
[16:39:47] [INF] [1] Microsoft.EntityFrameworkCore.Database.Command: Executed DbCommand (5ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT "MigrationId", "ProductVersion"
FROM "__EFMigrationsHistory"
ORDER BY "MigrationId";
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Command: Closing data reader to 'main' on server '/config/data/jellyfin.db'.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Command: A data reader for 'main' on server '/config/data/jellyfin.db' is being disposed after spending 9ms reading results.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Closing connection to database 'main' on server '/config/data/jellyfin.db'.
[16:39:47] [DBG] [1] Microsoft.EntityFrameworkCore.Database.Connection: Closed connection to database 'main' on server '/config/data/jellyfin.db' (0ms).
RE: Jellyfin Docker Server suddenly won't start - bitmap - 2025-05-08
What plugins do you have installed?
There's nothing in the log you posted that shows any issues. For sharing logs, try to utilize a bin site like privatebin.net as it makes parsing a lot easier. Also a full log would be helpful if this is just a snippet. Debug logging creates a LOT of background noise and that can also obscure issues. There's certainly a use for it, but currently there doesn't appear to be any useful information.
|