Offical Backup Process Always Fails, but Saves a Zip File #7461

Closed
opened 2025-12-22 05:49:10 +01:00 by backuprepo · 11 comments
Owner

Originally created by @ethaldeman on GitHub (Oct 20, 2025).

Description of the bug

After updating to 10.11.0, I tried to test the new backup capability. However anytime I try, the backup fails with a pop "An unknown error occurred". However a backup zip is still saved and listed.

Reproduction steps

  1. Attempt a new backup
  2. Observe that is fails with a popup "An unknown error occurred".
  3. Note that a backup zip is still saved and listed.

What is the current bug behavior?

The process is exiting with an error.

What is the expected correct behavior?

No error should be produced and the task should successfully complete.

Jellyfin Server version

10.10.0+

Specify commit id

No response

Specify unstable release number

No response

Specify version number

No response

Specify the build version

10.11.0

Environment

- OS: Ubuntu 24.04.3 LTS
- Linux Kernel: 6.8.0-85-generic
- Virtualization: None
- Clients: Web Client
- Browser: Firefox 
- Reverse Proxy: nginx/1.29.2

Jellyfin logs

[2025-10-20 19:01:07.561 -04:00] [INF] Attempt to create a new backup at "/var/lib/jellyfin/data/backups/jellyfin-backup-20251020190106.zip"
[2025-10-20 19:01:07.561 -04:00] [INF] Start backup process.
[2025-10-20 19:01:07.565 -04:00] [INF] Begin Database backup
[2025-10-20 19:01:07.565 -04:00] [INF] Begin backup of entity "AccessSchedules"
[2025-10-20 19:01:07.566 -04:00] [INF] backup of entity "DbSet`1" with 0 created
[2025-10-20 19:01:07.566 -04:00] [INF] Begin backup of entity "ActivityLogs"
[2025-10-20 19:01:07.638 -04:00] [INF] backup of entity "DbSet`1" with 2975 created
[2025-10-20 19:01:07.638 -04:00] [INF] Begin backup of entity "ApiKeys"
[2025-10-20 19:01:07.638 -04:00] [INF] backup of entity "DbSet`1" with 1 created
[2025-10-20 19:01:07.638 -04:00] [INF] Begin backup of entity "Devices"
[2025-10-20 19:01:07.641 -04:00] [INF] backup of entity "DbSet`1" with 51 created
[2025-10-20 19:01:07.641 -04:00] [INF] Begin backup of entity "DeviceOptions"
[2025-10-20 19:01:07.641 -04:00] [INF] backup of entity "DbSet`1" with 0 created
[2025-10-20 19:01:07.641 -04:00] [INF] Begin backup of entity "DisplayPreferences"
[2025-10-20 19:01:07.642 -04:00] [INF] backup of entity "DbSet`1" with 49 created
[2025-10-20 19:01:07.642 -04:00] [INF] Begin backup of entity "ImageInfos"
[2025-10-20 19:01:07.642 -04:00] [INF] backup of entity "DbSet`1" with 9 created
[2025-10-20 19:01:07.642 -04:00] [INF] Begin backup of entity "ItemDisplayPreferences"
[2025-10-20 19:01:07.642 -04:00] [INF] backup of entity "DbSet`1" with 49 created
[2025-10-20 19:01:07.642 -04:00] [INF] Begin backup of entity "CustomItemDisplayPreferences"
[2025-10-20 19:01:07.643 -04:00] [INF] backup of entity "DbSet`1" with 59 created
[2025-10-20 19:01:07.643 -04:00] [INF] Begin backup of entity "Permissions"
[2025-10-20 19:01:07.644 -04:00] [INF] backup of entity "DbSet`1" with 282 created
[2025-10-20 19:01:07.644 -04:00] [INF] Begin backup of entity "Preferences"
[2025-10-20 19:01:07.644 -04:00] [INF] backup of entity "DbSet`1" with 154 created
[2025-10-20 19:01:07.644 -04:00] [INF] Begin backup of entity "Users"
[2025-10-20 19:01:07.645 -04:00] [INF] backup of entity "DbSet`1" with 12 created
[2025-10-20 19:01:07.645 -04:00] [INF] Begin backup of entity "TrickplayInfos"
[2025-10-20 19:01:07.721 -04:00] [INF] backup of entity "DbSet`1" with 9676 created
[2025-10-20 19:01:07.721 -04:00] [INF] Begin backup of entity "MediaSegments"
[2025-10-20 19:01:07.836 -04:00] [INF] backup of entity "DbSet`1" with 14398 created
[2025-10-20 19:01:07.836 -04:00] [INF] Begin backup of entity "UserData"
[2025-10-20 19:01:07.983 -04:00] [INF] backup of entity "DbSet`1" with 18028 created
[2025-10-20 19:01:07.983 -04:00] [INF] Begin backup of entity "AncestorIds"
[2025-10-20 19:01:08.197 -04:00] [INF] backup of entity "DbSet`1" with 42963 created
[2025-10-20 19:01:08.197 -04:00] [INF] Begin backup of entity "AttachmentStreamInfos"
[2025-10-20 19:01:08.273 -04:00] [INF] backup of entity "DbSet`1" with 12942 created
[2025-10-20 19:01:08.273 -04:00] [INF] Begin backup of entity "BaseItems"
[2025-10-20 19:01:09.640 -04:00] [INF] backup of entity "DbSet`1" with 33069 created
[2025-10-20 19:01:09.641 -04:00] [INF] Begin backup of entity "Chapters"
[2025-10-20 19:01:09.780 -04:00] [INF] backup of entity "DbSet`1" with 15988 created
[2025-10-20 19:01:09.780 -04:00] [INF] Begin backup of entity "ItemValues"
[2025-10-20 19:01:09.822 -04:00] [INF] backup of entity "DbSet`1" with 7225 created
[2025-10-20 19:01:09.822 -04:00] [INF] Begin backup of entity "ItemValuesMap"
[2025-10-20 19:01:10.445 -04:00] [INF] backup of entity "DbSet`1" with 146688 created
[2025-10-20 19:01:10.445 -04:00] [INF] Begin backup of entity "MediaStreamInfos"
[2025-10-20 19:01:11.158 -04:00] [INF] backup of entity "DbSet`1" with 50080 created
[2025-10-20 19:01:11.158 -04:00] [INF] Begin backup of entity "Peoples"
[2025-10-20 19:01:11.254 -04:00] [INF] backup of entity "DbSet`1" with 19840 created
[2025-10-20 19:01:11.254 -04:00] [INF] Begin backup of entity "PeopleBaseItemMap"
[2025-10-20 19:01:12.204 -04:00] [INF] backup of entity "DbSet`1" with 117743 created
[2025-10-20 19:01:12.204 -04:00] [INF] Begin backup of entity "BaseItemProviders"
[2025-10-20 19:01:12.378 -04:00] [INF] backup of entity "DbSet`1" with 33542 created
[2025-10-20 19:01:12.378 -04:00] [INF] Begin backup of entity "BaseItemImageInfos"
[2025-10-20 19:01:12.743 -04:00] [INF] backup of entity "DbSet`1" with 29124 created
[2025-10-20 19:01:12.743 -04:00] [INF] Begin backup of entity "BaseItemMetadataFields"
[2025-10-20 19:01:12.744 -04:00] [INF] backup of entity "DbSet`1" with 0 created
[2025-10-20 19:01:12.744 -04:00] [INF] Begin backup of entity "BaseItemTrailerTypes"
[2025-10-20 19:01:12.745 -04:00] [INF] backup of entity "DbSet`1" with 0 created
[2025-10-20 19:01:12.745 -04:00] [INF] Begin backup of entity "KeyframeData"
[2025-10-20 19:01:14.294 -04:00] [INF] backup of entity "DbSet`1" with 8243 created
[2025-10-20 19:01:14.295 -04:00] [INF] Begin backup of entity "HistoryRow"
[2025-10-20 19:01:14.295 -04:00] [INF] backup of entity "HistoryRow" with 67 created
[2025-10-20 19:01:14.296 -04:00] [INF] Backup of folder "/etc/jellyfin"
[2025-10-20 19:01:14.296 -04:00] [INF] Backup of folder "/etc/jellyfin/users"
[2025-10-20 19:01:14.440 -04:00] [INF] Backup of folder "/etc/jellyfin/ScheduledTasks"
[2025-10-20 19:01:14.441 -04:00] [INF] Backup of folder "/var/lib/jellyfin/root"
[2025-10-20 19:01:14.441 -04:00] [INF] Backup of folder "/var/lib/jellyfin/data/collections"
[2025-10-20 19:01:14.448 -04:00] [INF] Backup of folder "/var/lib/jellyfin/data/playlists"
[2025-10-20 19:01:14.448 -04:00] [INF] Backup of folder "/var/lib/jellyfin/data/ScheduledTasks"
[2025-10-20 19:01:14.449 -04:00] [INF] Backup of folder "/var/lib/jellyfin/metadata"
[2025-10-20 19:01:33.404 -04:00] [ERR] Could not load "/var/lib/jellyfin/data/backups/jellyfin-backup-20251020190106.zip" path.
System.IO.IOException: The process cannot access the file '/var/lib/jellyfin/data/backups/jellyfin-backup-20251020190106.zip' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Init(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Int64& fileLength, UnixFileMode& filePermissions)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.File.OpenRead(String path)
   at Jellyfin.Server.Implementations.FullSystemBackup.BackupService.GetManifest(String archivePath)
   at Jellyfin.Server.Implementations.FullSystemBackup.BackupService.EnumerateBackups()
[2025-10-20 19:01:42.314 -04:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2025-10-20 19:01:53.496 -04:00] [INF] "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds
[2025-10-20 19:01:53.765 -04:00] [INF] "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2025-10-20 19:02:05.987 -04:00] [ERR] Could not load "/var/lib/jellyfin/data/backups/jellyfin-backup-20251020190106.zip" path.
System.IO.IOException: The process cannot access the file '/var/lib/jellyfin/data/backups/jellyfin-backup-20251020190106.zip' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Init(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Int64& fileLength, UnixFileMode& filePermissions)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.File.OpenRead(String path)
   at Jellyfin.Server.Implementations.FullSystemBackup.BackupService.GetManifest(String archivePath)
   at Jellyfin.Server.Implementations.FullSystemBackup.BackupService.EnumerateBackups()

FFmpeg logs


Client / Browser logs

No response

Relevant screenshots or videos

Image

Additional information

No response

Originally created by @ethaldeman on GitHub (Oct 20, 2025). ### Description of the bug After updating to 10.11.0, I tried to test the new backup capability. However anytime I try, the backup fails with a pop "An unknown error occurred". However a backup zip is still saved and listed. ### Reproduction steps 1. Attempt a new backup 2. Observe that is fails with a popup "An unknown error occurred". 3. Note that a backup zip is still saved and listed. ### What is the current _bug_ behavior? The process is exiting with an error. ### What is the expected _correct_ behavior? No error should be produced and the task should successfully complete. ### Jellyfin Server version 10.10.0+ ### Specify commit id _No response_ ### Specify unstable release number _No response_ ### Specify version number _No response_ ### Specify the build version 10.11.0 ### Environment ```markdown - OS: Ubuntu 24.04.3 LTS - Linux Kernel: 6.8.0-85-generic - Virtualization: None - Clients: Web Client - Browser: Firefox - Reverse Proxy: nginx/1.29.2 ``` ### Jellyfin logs ```shell [2025-10-20 19:01:07.561 -04:00] [INF] Attempt to create a new backup at "/var/lib/jellyfin/data/backups/jellyfin-backup-20251020190106.zip" [2025-10-20 19:01:07.561 -04:00] [INF] Start backup process. [2025-10-20 19:01:07.565 -04:00] [INF] Begin Database backup [2025-10-20 19:01:07.565 -04:00] [INF] Begin backup of entity "AccessSchedules" [2025-10-20 19:01:07.566 -04:00] [INF] backup of entity "DbSet`1" with 0 created [2025-10-20 19:01:07.566 -04:00] [INF] Begin backup of entity "ActivityLogs" [2025-10-20 19:01:07.638 -04:00] [INF] backup of entity "DbSet`1" with 2975 created [2025-10-20 19:01:07.638 -04:00] [INF] Begin backup of entity "ApiKeys" [2025-10-20 19:01:07.638 -04:00] [INF] backup of entity "DbSet`1" with 1 created [2025-10-20 19:01:07.638 -04:00] [INF] Begin backup of entity "Devices" [2025-10-20 19:01:07.641 -04:00] [INF] backup of entity "DbSet`1" with 51 created [2025-10-20 19:01:07.641 -04:00] [INF] Begin backup of entity "DeviceOptions" [2025-10-20 19:01:07.641 -04:00] [INF] backup of entity "DbSet`1" with 0 created [2025-10-20 19:01:07.641 -04:00] [INF] Begin backup of entity "DisplayPreferences" [2025-10-20 19:01:07.642 -04:00] [INF] backup of entity "DbSet`1" with 49 created [2025-10-20 19:01:07.642 -04:00] [INF] Begin backup of entity "ImageInfos" [2025-10-20 19:01:07.642 -04:00] [INF] backup of entity "DbSet`1" with 9 created [2025-10-20 19:01:07.642 -04:00] [INF] Begin backup of entity "ItemDisplayPreferences" [2025-10-20 19:01:07.642 -04:00] [INF] backup of entity "DbSet`1" with 49 created [2025-10-20 19:01:07.642 -04:00] [INF] Begin backup of entity "CustomItemDisplayPreferences" [2025-10-20 19:01:07.643 -04:00] [INF] backup of entity "DbSet`1" with 59 created [2025-10-20 19:01:07.643 -04:00] [INF] Begin backup of entity "Permissions" [2025-10-20 19:01:07.644 -04:00] [INF] backup of entity "DbSet`1" with 282 created [2025-10-20 19:01:07.644 -04:00] [INF] Begin backup of entity "Preferences" [2025-10-20 19:01:07.644 -04:00] [INF] backup of entity "DbSet`1" with 154 created [2025-10-20 19:01:07.644 -04:00] [INF] Begin backup of entity "Users" [2025-10-20 19:01:07.645 -04:00] [INF] backup of entity "DbSet`1" with 12 created [2025-10-20 19:01:07.645 -04:00] [INF] Begin backup of entity "TrickplayInfos" [2025-10-20 19:01:07.721 -04:00] [INF] backup of entity "DbSet`1" with 9676 created [2025-10-20 19:01:07.721 -04:00] [INF] Begin backup of entity "MediaSegments" [2025-10-20 19:01:07.836 -04:00] [INF] backup of entity "DbSet`1" with 14398 created [2025-10-20 19:01:07.836 -04:00] [INF] Begin backup of entity "UserData" [2025-10-20 19:01:07.983 -04:00] [INF] backup of entity "DbSet`1" with 18028 created [2025-10-20 19:01:07.983 -04:00] [INF] Begin backup of entity "AncestorIds" [2025-10-20 19:01:08.197 -04:00] [INF] backup of entity "DbSet`1" with 42963 created [2025-10-20 19:01:08.197 -04:00] [INF] Begin backup of entity "AttachmentStreamInfos" [2025-10-20 19:01:08.273 -04:00] [INF] backup of entity "DbSet`1" with 12942 created [2025-10-20 19:01:08.273 -04:00] [INF] Begin backup of entity "BaseItems" [2025-10-20 19:01:09.640 -04:00] [INF] backup of entity "DbSet`1" with 33069 created [2025-10-20 19:01:09.641 -04:00] [INF] Begin backup of entity "Chapters" [2025-10-20 19:01:09.780 -04:00] [INF] backup of entity "DbSet`1" with 15988 created [2025-10-20 19:01:09.780 -04:00] [INF] Begin backup of entity "ItemValues" [2025-10-20 19:01:09.822 -04:00] [INF] backup of entity "DbSet`1" with 7225 created [2025-10-20 19:01:09.822 -04:00] [INF] Begin backup of entity "ItemValuesMap" [2025-10-20 19:01:10.445 -04:00] [INF] backup of entity "DbSet`1" with 146688 created [2025-10-20 19:01:10.445 -04:00] [INF] Begin backup of entity "MediaStreamInfos" [2025-10-20 19:01:11.158 -04:00] [INF] backup of entity "DbSet`1" with 50080 created [2025-10-20 19:01:11.158 -04:00] [INF] Begin backup of entity "Peoples" [2025-10-20 19:01:11.254 -04:00] [INF] backup of entity "DbSet`1" with 19840 created [2025-10-20 19:01:11.254 -04:00] [INF] Begin backup of entity "PeopleBaseItemMap" [2025-10-20 19:01:12.204 -04:00] [INF] backup of entity "DbSet`1" with 117743 created [2025-10-20 19:01:12.204 -04:00] [INF] Begin backup of entity "BaseItemProviders" [2025-10-20 19:01:12.378 -04:00] [INF] backup of entity "DbSet`1" with 33542 created [2025-10-20 19:01:12.378 -04:00] [INF] Begin backup of entity "BaseItemImageInfos" [2025-10-20 19:01:12.743 -04:00] [INF] backup of entity "DbSet`1" with 29124 created [2025-10-20 19:01:12.743 -04:00] [INF] Begin backup of entity "BaseItemMetadataFields" [2025-10-20 19:01:12.744 -04:00] [INF] backup of entity "DbSet`1" with 0 created [2025-10-20 19:01:12.744 -04:00] [INF] Begin backup of entity "BaseItemTrailerTypes" [2025-10-20 19:01:12.745 -04:00] [INF] backup of entity "DbSet`1" with 0 created [2025-10-20 19:01:12.745 -04:00] [INF] Begin backup of entity "KeyframeData" [2025-10-20 19:01:14.294 -04:00] [INF] backup of entity "DbSet`1" with 8243 created [2025-10-20 19:01:14.295 -04:00] [INF] Begin backup of entity "HistoryRow" [2025-10-20 19:01:14.295 -04:00] [INF] backup of entity "HistoryRow" with 67 created [2025-10-20 19:01:14.296 -04:00] [INF] Backup of folder "/etc/jellyfin" [2025-10-20 19:01:14.296 -04:00] [INF] Backup of folder "/etc/jellyfin/users" [2025-10-20 19:01:14.440 -04:00] [INF] Backup of folder "/etc/jellyfin/ScheduledTasks" [2025-10-20 19:01:14.441 -04:00] [INF] Backup of folder "/var/lib/jellyfin/root" [2025-10-20 19:01:14.441 -04:00] [INF] Backup of folder "/var/lib/jellyfin/data/collections" [2025-10-20 19:01:14.448 -04:00] [INF] Backup of folder "/var/lib/jellyfin/data/playlists" [2025-10-20 19:01:14.448 -04:00] [INF] Backup of folder "/var/lib/jellyfin/data/ScheduledTasks" [2025-10-20 19:01:14.449 -04:00] [INF] Backup of folder "/var/lib/jellyfin/metadata" [2025-10-20 19:01:33.404 -04:00] [ERR] Could not load "/var/lib/jellyfin/data/backups/jellyfin-backup-20251020190106.zip" path. System.IO.IOException: The process cannot access the file '/var/lib/jellyfin/data/backups/jellyfin-backup-20251020190106.zip' because it is being used by another process. at Microsoft.Win32.SafeHandles.SafeFileHandle.Init(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Int64& fileLength, UnixFileMode& filePermissions) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode) at System.IO.File.OpenRead(String path) at Jellyfin.Server.Implementations.FullSystemBackup.BackupService.GetManifest(String archivePath) at Jellyfin.Server.Implementations.FullSystemBackup.BackupService.EnumerateBackups() [2025-10-20 19:01:42.314 -04:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets. [2025-10-20 19:01:53.496 -04:00] [INF] "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds [2025-10-20 19:01:53.765 -04:00] [INF] "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds [2025-10-20 19:02:05.987 -04:00] [ERR] Could not load "/var/lib/jellyfin/data/backups/jellyfin-backup-20251020190106.zip" path. System.IO.IOException: The process cannot access the file '/var/lib/jellyfin/data/backups/jellyfin-backup-20251020190106.zip' because it is being used by another process. at Microsoft.Win32.SafeHandles.SafeFileHandle.Init(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Int64& fileLength, UnixFileMode& filePermissions) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode) at System.IO.File.OpenRead(String path) at Jellyfin.Server.Implementations.FullSystemBackup.BackupService.GetManifest(String archivePath) at Jellyfin.Server.Implementations.FullSystemBackup.BackupService.EnumerateBackups() ``` ### FFmpeg logs ```shell ``` ### Client / Browser logs _No response_ ### Relevant screenshots or videos <img width="398" height="211" alt="Image" src="https://github.com/user-attachments/assets/267d13eb-5c58-4f89-af21-6e2ced446191" /> ### Additional information _No response_
backuprepo 2025-12-22 05:49:10 +01:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@DMtgd220 commented on GitHub (Oct 21, 2025):

Same here!

@DMtgd220 commented on GitHub (Oct 21, 2025): Same here!
Author
Owner

@YotamKorah commented on GitHub (Oct 21, 2025):

Also experiencing the same behavior running the docker image on k8s

@YotamKorah commented on GitHub (Oct 21, 2025): Also experiencing the same behavior running the docker image on k8s
Author
Owner

@pertile153 commented on GitHub (Oct 21, 2025):

Same issue happens here, and I’m using Windows 11.
System.IO.IOException: The process cannot access the file 'C:\ProgramData\Jellyfin\Server\data\backups\jellyfin-backup-20251021155824.zip' because it is being used by another process.

@pertile153 commented on GitHub (Oct 21, 2025): Same issue happens here, and I’m using Windows 11. `System.IO.IOException: The process cannot access the file 'C:\ProgramData\Jellyfin\Server\data\backups\jellyfin-backup-20251021155824.zip' because it is being used by another process.`
Author
Owner

@crobibero commented on GitHub (Oct 22, 2025):

The logs look like the client is requesting the list of backups while the backup is still being created.

Depending on what you attempt to back up the request could take a very long time.

I don't think this is a bug.

@crobibero commented on GitHub (Oct 22, 2025): The logs look like the client is requesting the list of backups while the backup is still being created. Depending on what you attempt to back up the request could take a _very_ long time. I don't think this is a bug.
Author
Owner

@ethaldeman commented on GitHub (Oct 22, 2025):

At least for me, I just left the webpage open while the back up was being preformed, and then never clicked anything. Thus if the client is making the request, it is doing it it own its own and not because user is trying to load/view the backup.

@ethaldeman commented on GitHub (Oct 22, 2025): At least for me, I just left the webpage open while the back up was being preformed, and then never clicked anything. Thus if the client is making the request, it is doing it it own its own and not because user is trying to load/view the backup.
Author
Owner

@Scuzz3y commented on GitHub (Oct 22, 2025):

I'm having this issue except the BackupService tries to allocate too much memory even though the backup should only be around 2GB (see memory graph in upper right). I tried to create backups twice, the cliff on the graph is after the first attempt.

Image
@Scuzz3y commented on GitHub (Oct 22, 2025): I'm having this issue except the BackupService tries to allocate too much memory even though the backup should only be around 2GB (see memory graph in upper right). I tried to create backups twice, the cliff on the graph is after the first attempt. <img width="1427" height="633" alt="Image" src="https://github.com/user-attachments/assets/06424047-455b-4608-806b-f4898756ea7d" />
Author
Owner

@YotamKorah commented on GitHub (Oct 22, 2025):

Update:
For me, the unknown error in the UI was a simple reverse proxy misconfiguration that caused an HTTP/504 (Gateway Timeout) error.
While testing with a longer timeout, the UI no longer shows an error however i noticed that every time i switch to jellyfin's tab from another a new GET /Backup is sent and i get this error in the logs:

[10:13:25] [ERR] [12] Jellyfin.Server.Implementations.FullSystemBackup.BackupService: Could not load /config/data/backups/jellyfin-backup-20251022101257.zip path.
System.IO.IOException: The process cannot access the file '/config/data/backups/jellyfin-backup-20251022101257.zip' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Init(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Int64& fileLength, UnixFileMode& filePermissions)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.File.OpenRead(String path)
   at Jellyfin.Server.Implementations.FullSystemBackup.BackupService.GetManifest(String archivePath)
   at Jellyfin.Server.Implementations.FullSystemBackup.BackupService.EnumerateBackups()

For me it seems that the issue is that the incomplete backup is being built in the same place the server expects completed ones to read metadata from. Perhaps it would be better to build the backups in a different directory and move them when ready?

@YotamKorah commented on GitHub (Oct 22, 2025): Update: For me, the unknown error in the UI was a simple reverse proxy misconfiguration that caused an HTTP/504 (Gateway Timeout) error. While testing with a longer timeout, the UI no longer shows an error however i noticed that every time i switch to jellyfin's tab from another a new GET /Backup is sent and i get this error in the logs: ``` [10:13:25] [ERR] [12] Jellyfin.Server.Implementations.FullSystemBackup.BackupService: Could not load /config/data/backups/jellyfin-backup-20251022101257.zip path. System.IO.IOException: The process cannot access the file '/config/data/backups/jellyfin-backup-20251022101257.zip' because it is being used by another process. at Microsoft.Win32.SafeHandles.SafeFileHandle.Init(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Int64& fileLength, UnixFileMode& filePermissions) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode) at System.IO.File.OpenRead(String path) at Jellyfin.Server.Implementations.FullSystemBackup.BackupService.GetManifest(String archivePath) at Jellyfin.Server.Implementations.FullSystemBackup.BackupService.EnumerateBackups() ``` For me it seems that the issue is that the incomplete backup is being built in the same place the server expects completed ones to read metadata from. Perhaps it would be better to build the backups in a different directory and move them when ready?
Author
Owner

@theguymadmax commented on GitHub (Oct 25, 2025):

Fixed by #15170

@theguymadmax commented on GitHub (Oct 25, 2025): Fixed by #15170
Author
Owner

@dlmorgan999 commented on GitHub (Dec 5, 2025):

I'm running 10.11.4 which appears to have this patch, but I'm getting the exact same error.

@dlmorgan999 commented on GitHub (Dec 5, 2025): I'm running 10.11.4 which appears to have this patch, but I'm getting the exact same error.
Author
Owner

@crobibero commented on GitHub (Dec 5, 2025):

I'm running 10.11.4 which appears to have this patch, but I'm getting the exact same error.

Please open a new issue.

@crobibero commented on GitHub (Dec 5, 2025): > I'm running 10.11.4 which appears to have this patch, but I'm getting the exact same error. Please open a new issue.
Author
Owner

@dlmorgan999 commented on GitHub (Dec 5, 2025):

I can, but there is already another open issue that appears to be the same thing.

@dlmorgan999 commented on GitHub (Dec 5, 2025): I can, but there is already another open [issue](https://github.com/jellyfin/jellyfin/issues/15536) that appears to be the same thing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#7461
No description provided.