From 21f65e2e27720b43ac7d42ccf645c69c3d619bc1 Mon Sep 17 00:00:00 2001 From: JJBlue Date: Mon, 27 Oct 2025 15:43:31 -0400 Subject: [PATCH] Backport pull request #15220 from jellyfin/release-10.11.z Skip extracted files in migration if bad timestamp or no access Original-merge: a305204cfa43a97f255f0dea412f93d02de939c3 Merged-by: crobibero Backported-by: Bond_009 --- .../Migrations/Routines/MigrateKeyframeData.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs b/Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs index 612da05214..aa55309264 100644 --- a/Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs +++ b/Jellyfin.Server/Migrations/Routines/MigrateKeyframeData.cs @@ -122,6 +122,16 @@ public class MigrateKeyframeData : IDatabaseMigrationRoutine { lastWriteTimeUtc = File.GetLastWriteTimeUtc(filePath); } + catch (ArgumentOutOfRangeException e) + { + _logger.LogDebug("Skipping {Path}: {Exception}", filePath, e.Message); + return null; + } + catch (UnauthorizedAccessException e) + { + _logger.LogDebug("Skipping {Path}: {Exception}", filePath, e.Message); + return null; + } catch (IOException e) { _logger.LogDebug("Skipping {Path}: {Exception}", filePath, e.Message);