2024-12-19, 12:33 PM
(This post was last modified: 2024-12-19, 01:15 PM by PappaB. Edited 1 time in total.)
All of a sudden, without any changes made to my system (only new media added), new media scanning gets stuck (at between 95 and 96%) for what seem forever.
I have looked at and tried solutions already offered in this forum, but to no avail.
My Jellyfin is v 10.10.3, running on Ubuntu under Proxmox with enough resources. Before this issue started, a new media scan would at a maximum take 90s before completing.
What I see in the logs is that it seems ffprobe is not completing, but not failing with an exit code either.
Todays log below - the log from two days ago further down:
[2024-12-19 09:56:11.706 +00:00] [INF] Removing virtual season 5 in series "Emily in Paris"
[2024-12-19 09:56:11.706 +00:00] [INF] Removing item, Type: "Season", Name: "Season 5", Path: "", Id: adc2ae36-8fc8-b3d8-1547-f55e6b053852
[2024-12-19 09:56:20.998 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-12-19 09:56:24.285 +00:00] [INF] Creating Season "Season Unknown" entry for "Three Women"
[2024-12-19 09:56:24.322 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/Three Women/Season 01/Three Women S01E03.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-19 09:56:24.325 +00:00] [INF] Removing virtual season null in series "The Big Bang Theory"
[2024-12-19 09:56:24.325 +00:00] [INF] Removing item, Type: "Season", Name: "Season Unknown", Path: "", Id: ebcb893e-5a69-9cc9-d4b0-e87ea7bfc38f
[2024-12-19 09:56:24.402 +00:00] [INF] Creating Season "Season Unknown" entry for "The Big Bang Theory"
[2024-12-19 09:56:24.564 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/The Big Bang Theory/Season 12/The Big Bang Theory S12E14.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-19 09:58:20.998 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-12-19 09:59:08.997 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-12-19 10:01:08.999 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-12-19 10:01:56.998 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-12-19 10:03:56.997 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
Excerpt from log from two days ago:
[2024-12-17 05:21:23.850 +00:00] [WRN] Unable to find linked item at path "/mnt/omv/Weskus/Wuthering Heights (2009).mp4"
[2024-12-17 05:21:26.162 +00:00] [INF] Creating Season "Season Unknown" entry for "No Good Deed"
[2024-12-17 05:21:26.841 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E07.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:28.910 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E02.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:30.153 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E08.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:31.307 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E05.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:32.110 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E03.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:32.911 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E06.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:33.598 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E01.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:34.306 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E04.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:35.124 +00:00] [INF] Removing virtual season null in series "No Good Deed"
[2024-12-17 05:21:35.124 +00:00] [INF] Removing item, Type: "Season", Name: "Season Unknown", Path: "", Id: 9c2619e6-0879-751a-72b9-aa65d96fd8e4
[2024-12-17 05:21:43.916 +00:00] [INF] Watching directory "/media/jellyfin/Clips"
[2024-12-17 05:21:43.919 +00:00] [INF] Watching directory "/media/jellyfin/Music"
[2024-12-17 05:21:43.924 +00:00] [INF] Watching directory "/media/jellyfin/Videos"
[2024-12-17 05:21:43.929 +00:00] [INF] Watching directory "/media/jellyfin/Series"
[2024-12-17 05:21:43.929 +00:00] [INF] Watching directory "/media/jellyfin/Photos"
From the difference, it is clear that the ffprobe instances previously ran quite quickly, and in rapid succession.
From the log today it seems to start the probe, but does not continue to the rest of the newly added media (more than 100 files added since previous scan).
If I remove the media I added, Jellyfin does a complete scan without a problem. But I suppose that is because there is nothing new to scan.
The moment I add any new media again, it gets stuck.
If I execute the ffprobe command manually, from the CLI, it reads the file very quickly and produce all the information.
I have tried with different media, different sources, etc, but it just hangs as per the subject line.
I have rebooted, done updates and upgrades, and even reinstalled Jellyfin, but the problem persists.
I have checked permissions, and everything is perfect, except the the fact that ffprobe seems not to finish when executed by Jellyfin Media Scan.
I have looked at and tried solutions already offered in this forum, but to no avail.
My Jellyfin is v 10.10.3, running on Ubuntu under Proxmox with enough resources. Before this issue started, a new media scan would at a maximum take 90s before completing.
What I see in the logs is that it seems ffprobe is not completing, but not failing with an exit code either.
Todays log below - the log from two days ago further down:
[2024-12-19 09:56:11.706 +00:00] [INF] Removing virtual season 5 in series "Emily in Paris"
[2024-12-19 09:56:11.706 +00:00] [INF] Removing item, Type: "Season", Name: "Season 5", Path: "", Id: adc2ae36-8fc8-b3d8-1547-f55e6b053852
[2024-12-19 09:56:20.998 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-12-19 09:56:24.285 +00:00] [INF] Creating Season "Season Unknown" entry for "Three Women"
[2024-12-19 09:56:24.322 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/Three Women/Season 01/Three Women S01E03.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-19 09:56:24.325 +00:00] [INF] Removing virtual season null in series "The Big Bang Theory"
[2024-12-19 09:56:24.325 +00:00] [INF] Removing item, Type: "Season", Name: "Season Unknown", Path: "", Id: ebcb893e-5a69-9cc9-d4b0-e87ea7bfc38f
[2024-12-19 09:56:24.402 +00:00] [INF] Creating Season "Season Unknown" entry for "The Big Bang Theory"
[2024-12-19 09:56:24.564 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/The Big Bang Theory/Season 12/The Big Bang Theory S12E14.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-19 09:58:20.998 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-12-19 09:59:08.997 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-12-19 10:01:08.999 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-12-19 10:01:56.998 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-12-19 10:03:56.997 +00:00] [INF] Sending ForceKeepAlive message to 1 inactive WebSockets.
Excerpt from log from two days ago:
[2024-12-17 05:21:23.850 +00:00] [WRN] Unable to find linked item at path "/mnt/omv/Weskus/Wuthering Heights (2009).mp4"
[2024-12-17 05:21:26.162 +00:00] [INF] Creating Season "Season Unknown" entry for "No Good Deed"
[2024-12-17 05:21:26.841 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E07.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:28.910 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E02.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:30.153 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E08.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:31.307 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E05.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:32.110 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E03.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:32.911 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E06.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:33.598 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E01.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:34.306 +00:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/mnt/omv/Series/No Good Deed/Season 01/No Good Deed S01E04.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-12-17 05:21:35.124 +00:00] [INF] Removing virtual season null in series "No Good Deed"
[2024-12-17 05:21:35.124 +00:00] [INF] Removing item, Type: "Season", Name: "Season Unknown", Path: "", Id: 9c2619e6-0879-751a-72b9-aa65d96fd8e4
[2024-12-17 05:21:43.916 +00:00] [INF] Watching directory "/media/jellyfin/Clips"
[2024-12-17 05:21:43.919 +00:00] [INF] Watching directory "/media/jellyfin/Music"
[2024-12-17 05:21:43.924 +00:00] [INF] Watching directory "/media/jellyfin/Videos"
[2024-12-17 05:21:43.929 +00:00] [INF] Watching directory "/media/jellyfin/Series"
[2024-12-17 05:21:43.929 +00:00] [INF] Watching directory "/media/jellyfin/Photos"
From the difference, it is clear that the ffprobe instances previously ran quite quickly, and in rapid succession.
From the log today it seems to start the probe, but does not continue to the rest of the newly added media (more than 100 files added since previous scan).
If I remove the media I added, Jellyfin does a complete scan without a problem. But I suppose that is because there is nothing new to scan.
The moment I add any new media again, it gets stuck.
If I execute the ffprobe command manually, from the CLI, it reads the file very quickly and produce all the information.
I have tried with different media, different sources, etc, but it just hangs as per the subject line.
I have rebooted, done updates and upgrades, and even reinstalled Jellyfin, but the problem persists.
I have checked permissions, and everything is perfect, except the the fact that ffprobe seems not to finish when executed by Jellyfin Media Scan.