windows server crash sometime #6274

Closed
opened 2026-02-07 03:22:53 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @lifeengines on GitHub (Sep 16, 2024).

This issue respects the following points:

  • This is a bug, not a question or a configuration issue; Please visit our forum or chat rooms first to troubleshoot with volunteers, before creating a report. The links can be found here.
  • This issue is not already reported on GitHub (I've searched it).
  • I'm using an up to date version of Jellyfin Server stable, unstable or master; We generally do not support previous older versions. If possible, please update to the latest version before opening an issue.
  • I agree to follow Jellyfin's Code of Conduct.
  • This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one.

Description of the bug

[2024-09-16 23:27:20.091 +08:00] [FTL] [27] Main: Unhandled Exception
System.IO.IOException: The process cannot access the file 'C:\ProgramData\Jellyfin\Server\cache\transcodes\aee17b0b61335647adf3b57e6047711f.concat' because it is being used by another process.
at System.IO.FileSystem.DeleteFile(String fullPath)
at MediaBrowser.MediaEncoding.Transcoding.TranscodeManager.KillTranscodingJob(TranscodingJob job, Boolean closeLiveStream, Func`2 delete)
at MediaBrowser.MediaEncoding.Transcoding.TranscodeManager.OnTranscodeKillTimerStopped(Object state)
at System.Threading.Tasks.Task.<>c.b__128_1(Object state)
at System.Threading.QueueUserWorkItemCallback.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

Reproduction steps

crash randomlly

What is the current bug behavior?

server exit,and not restart

What is the expected correct behavior?

server can handle this exception,dont exit

Jellyfin Server version

10.9.11+

Specify commit id

No response

Specify unstable release number

No response

Specify version number

No response

Specify the build version

10.9.11

Environment

- OS: Windows
- Linux Kernel:
- Virtualization:
- Clients:
- Browser: Chrome
- FFmpeg Version:
- Playback Method:
- Hardware Acceleration:
- GPU Model:
- Plugins:
- Reverse Proxy:
- Base URL:
- Networking:
- Storage:

Jellyfin logs

[2024-09-16 23:27:20.091 +08:00] [FTL] [27] Main: Unhandled Exception
System.IO.IOException: The process cannot access the file 'C:\ProgramData\Jellyfin\Server\cache\transcodes\aee17b0b61335647adf3b57e6047711f.concat' because it is being used by another process.
   at System.IO.FileSystem.DeleteFile(String fullPath)
   at MediaBrowser.MediaEncoding.Transcoding.TranscodeManager.KillTranscodingJob(TranscodingJob job, Boolean closeLiveStream, Func`2 delete)
   at MediaBrowser.MediaEncoding.Transcoding.TranscodeManager.OnTranscodeKillTimerStopped(Object state)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
   at System.Threading.QueueUserWorkItemCallback.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

FFmpeg logs

No response

Client / Browser logs

No response

Relevant screenshots or videos

No response

Additional information

No response

Originally created by @lifeengines on GitHub (Sep 16, 2024). ### This issue respects the following points: - [X] This is a **bug**, not a question or a configuration issue; Please visit our forum or chat rooms first to troubleshoot with volunteers, before creating a report. The links can be found [here](https://jellyfin.org/contact/). - [X] This issue is **not** already reported on [GitHub](https://github.com/jellyfin/jellyfin/issues?q=is%3Aopen+is%3Aissue) _(I've searched it)_. - [X] I'm using an up to date version of Jellyfin Server stable, unstable or master; We generally do not support previous older versions. If possible, please update to the latest version before opening an issue. - [X] I agree to follow Jellyfin's [Code of Conduct](https://jellyfin.org/docs/general/community-standards.html#code-of-conduct). - [X] This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one. ### Description of the bug [2024-09-16 23:27:20.091 +08:00] [FTL] [27] Main: Unhandled Exception System.IO.IOException: The process cannot access the file 'C:\ProgramData\Jellyfin\Server\cache\transcodes\aee17b0b61335647adf3b57e6047711f.concat' because it is being used by another process. at System.IO.FileSystem.DeleteFile(String fullPath) at MediaBrowser.MediaEncoding.Transcoding.TranscodeManager.KillTranscodingJob(TranscodingJob job, Boolean closeLiveStream, Func`2 delete) at MediaBrowser.MediaEncoding.Transcoding.TranscodeManager.OnTranscodeKillTimerStopped(Object state) at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state) at System.Threading.QueueUserWorkItemCallback.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() ### Reproduction steps crash randomlly ### What is the current _bug_ behavior? server exit,and not restart ### What is the expected _correct_ behavior? server can handle this exception,dont exit ### Jellyfin Server version 10.9.11+ ### Specify commit id _No response_ ### Specify unstable release number _No response_ ### Specify version number _No response_ ### Specify the build version 10.9.11 ### Environment ```markdown - OS: Windows - Linux Kernel: - Virtualization: - Clients: - Browser: Chrome - FFmpeg Version: - Playback Method: - Hardware Acceleration: - GPU Model: - Plugins: - Reverse Proxy: - Base URL: - Networking: - Storage: ``` ### Jellyfin logs ```shell [2024-09-16 23:27:20.091 +08:00] [FTL] [27] Main: Unhandled Exception System.IO.IOException: The process cannot access the file 'C:\ProgramData\Jellyfin\Server\cache\transcodes\aee17b0b61335647adf3b57e6047711f.concat' because it is being used by another process. at System.IO.FileSystem.DeleteFile(String fullPath) at MediaBrowser.MediaEncoding.Transcoding.TranscodeManager.KillTranscodingJob(TranscodingJob job, Boolean closeLiveStream, Func`2 delete) at MediaBrowser.MediaEncoding.Transcoding.TranscodeManager.OnTranscodeKillTimerStopped(Object state) at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state) at System.Threading.QueueUserWorkItemCallback.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() ``` ### FFmpeg logs _No response_ ### Client / Browser logs _No response_ ### Relevant screenshots or videos _No response_ ### Additional information _No response_
OVERLORD added the bugstale labels 2026-02-07 03:22:53 +03:00
Author
Owner

@oddstr13 commented on GitHub (Sep 16, 2024):

More log context would be nice, minimum 10 messages before, and everything after.

Looks to me like this could be a problem with antivirus or other software accessing the file while Jellyfin is attempting to delete it.

It would be best to exclude the cache directory, and probably others, from real time antivirus scanning.

@oddstr13 commented on GitHub (Sep 16, 2024): More log context would be nice, minimum 10 messages before, and everything after. Looks to me like this could be a problem with antivirus or other software accessing the file while Jellyfin is attempting to delete it. It would be best to exclude the cache directory, and probably others, from real time antivirus scanning.
Author
Owner

@jellyfin-bot commented on GitHub (Jan 15, 2025):

This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.

If you have any questions you can use one of several ways to contact us.

@jellyfin-bot commented on GitHub (Jan 15, 2025): This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs. If you have any questions you can use one of several ways to [contact us](https://jellyfin.org/contact).
Author
Owner

@jellyfin-bot commented on GitHub (Feb 5, 2025):

This issue was closed due to inactivity.

@jellyfin-bot commented on GitHub (Feb 5, 2025): This issue was closed due to inactivity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#6274