Jellyfin Forum
media library fails and no playback - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: media library fails and no playback (/t-media-library-fails-and-no-playback)



media library fails and no playback - Ike - 2025-05-08

rather new here..
Scan media library fails at 90ish
I am running this on a synology nas with container manager

Code:
[2025-05-07 23:59:59.999 +00:00] [INF] [79] Jellyfin.Plugin.PlaybackReporting.TaskCleanDb: MaxDataAge : 3
[2025-05-08 00:00:00.000 +00:00] [INF] [79] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: DeleteOldData : "delete from PlaybackActivity where DateCreated < '2025-02-08 00:00:00.0003524'"
[2025-05-08 00:00:00.000 +00:00] [INF] [79] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Playback Reporting Trim Db" Completed after 0 minute(s) and 0 seconds
[2025-05-08 00:00:00.999 +00:00] [INF] [32] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Playback Reporting Trim Db" set to fire at 2025-05-09 00:00:00.000 +00:00, which is 23:59:59.0001118 from now.
[2025-05-08 00:00:04.959 +00:00] [INF] [79] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: Optimizing and vacuuming jellyfin.db...
[2025-05-08 00:00:05.534 +00:00] [INF] [79] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: jellyfin.db optimized successfully!
[2025-05-08 00:00:05.534 +00:00] [INF] [79] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Optimize database" Completed after 0 minute(s) and 0 seconds
[2025-05-08 00:00:10.436 +00:00] [INF] [32] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Clean Activity Log" Completed after 0 minute(s) and 0 seconds
[2025-05-08 00:00:10.831 +00:00] [INF] [80] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Clean Cache Directory" Completed after 0 minute(s) and 0 seconds
[2025-05-08 00:00:13.891 +00:00] [INF] [85] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Clean Log Directory" Completed after 0 minute(s) and 0 seconds
[2025-05-08 00:00:14.629 +00:00] [INF] [80] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Clean Transcode Directory" Completed after 0 minute(s) and 0 seconds
[2025-05-08 00:00:17.649 +00:00] [INF] [39] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Clean up collections and playlists" Completed after 0 minute(s) and 0 seconds
[2025-05-08 00:00:28.786 +00:00] [INF] [79] Jellyfin.Plugin.Tvdb.ScheduledTasks.UpdateTask: Checking for metadata updates.
[2025-05-08 00:00:28.793 +00:00] [INF] [79] Jellyfin.Plugin.Tvdb.ScheduledTasks.UpdateTask: Found 0 items to update.
[2025-05-08 00:00:28.793 +00:00] [INF] [79] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Check for metadata updates." Completed after 0 minute(s) and 0 seconds
[2025-05-08 00:00:29.839 +00:00] [INF] [80] Jellyfin.Plugin.Tvdb.ScheduledTasks.PurgeCacheTask: TheTvdb plugin cache purged successfully
[2025-05-08 00:00:29.839 +00:00] [INF] [80] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Purge TheTVDB plugin cache" Completed after 0 minute(s) and 0 seconds
[2025-05-08 00:00:42.762 +00:00] [INF] [80] Emby.Server.Implementations.IO.LibraryMonitor: "Movies" ("/Movies") will be refreshed.
[2025-05-08 00:00:42.764 +00:00] [INF] [85] Emby.Server.Implementations.IO.LibraryMonitor: "Newly_added_Movies" ("/Newly_added_Movies") will be refreshed.
[2025-05-08 00:00:43.180 +00:00] [ERR] [30] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 11: 'database disk image is malformed'.
  at Microsoft.Data.Sqlite.SqliteDataRecord.Read()
  at Emby.Server.Implementations.Data.SqliteExtensions.ExecuteQuery(SqliteCommand command)+MoveNext()
  at Emby.Server.Implementations.Data.SqliteItemRepository.GetPeople(InternalPeopleQuery query)
  at Emby.Server.Implementations.Library.LibraryManager.GetPeople(BaseItem item)
  at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.RefreshChildMetadata(BaseItem child, MetadataRefreshOptions refreshOptions, Boolean recursive, IProgress`1 progress, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.<>c__DisplayClass69_0`1.<<RunTasks>b__1>d.MoveNext()
--- End of stack trace from previous location ---
  at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func`3 task, IList`1 children, IProgress`1 progress, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
  at MediaBrowser.Providers.Manager.ProviderManager.RefreshItem(BaseItem item, MetadataRefreshOptions options, CancellationToken cancellationToken)
  at MediaBrowser.Providers.Manager.ProviderManager.StartProcessingRefreshQueue()



RE: media library fails and no playback - bitmap - 2025-05-08

Your database is corrupt in some way. If you know SQL you can try to find the offending entry/ies and remove them. This often occurs when there's an unexpected shutdown, whether a power outage, modification of the container without stopping first, or various other possibilities. Is this the full log? If not, you can post to privatebin.net and share here.

Somebody else can correct me if I'm wrong, but I haven't run across many folks who have successfully recovered a corrupted database.