Sonarr Scan Hanging on a Directory

Sonarr version 3.0.10.1567:
Mono version 6.12.0.107:
Rocky Linux 9.2:

Debug Log up to point where scanner stops:

2023-08-12 23:01:30.4|Debug|VideoFileInfoReader|Getting media info from /mnt/naslib/plex/library/Series/Ben 10 - Ultimate Alien/Season 02/Ben.10-.Ultimate.Alien.S02E09.It’s.Not.Easy.Being.Gwen.mp4
2023-08-12 23:01:30.4|Debug|EpisodeTitleSpecification|/mnt/naslib/plex/library/Series/Ben 10 - Ultimate Alien/Season 02/Ben.10-.Ultimate.Alien.S02E09.It’s.Not.Easy.Being.Gwen.mp4 is in series folder, skipping check
2023-08-12 23:01:30.4|Debug|NotUnpackingSpecification|/mnt/naslib/plex/library/Series/Ben 10 - Ultimate Alien/Season 02/Ben.10-.Ultimate.Alien.S02E09.It’s.Not.Easy.Being.Gwen.mp4 is in series folder, skipping unpacking check
2023-08-12 23:01:30.4|Debug|Parser|Parsing string ‘Ben.10-.Ultimate.Alien.S02E07.The.Creature.from.Beyond.mp4’
2023-08-12 23:01:30.4|Debug|Parser|Episode Parsed. Ben 10- Ultimate Alien - S02E07
2023-08-12 23:01:30.4|Debug|QualityParser|Trying to parse quality for Ben.10-.Ultimate.Alien.S02E07.The.Creature.from.Beyond.mp4
2023-08-12 23:01:30.4|Debug|VideoFileInfoReader|Getting media info from /mnt/naslib/plex/library/Series/Ben 10 - Ultimate Alien/Season 02/Ben.10-.Ultimate.Alien.S02E07.The.Creature.from.Beyond.mp4

Description of issue:
At this point the scan will hang. It will never progress, and will consume two of my cores (shows running at 199%) on the system it’s running on. I’ve let it run for a week, and it never comes back. All other features work, but even though both seasons of the shows exist with all files, Season 1 says nothing is there, season 2 is 7 of 32 files.

I have ffprobe the video file in question and it comes back successfully when I do ffprobe -print_format json -show_format -show_streams -print_format json “/mnt/naslib/plex/library/Series/Ben 10 - Ultimate Alien/Season 02/Ben.10-.Ultimate.Alien.S02E07.The.Creature.from.Beyond.mp4”

All other functions contiune, it still will udpate, pull the RSS, search for things if I ask it too. The debug log continues for all of those, but there isn’t another scanner output (waited 10 m in case) and the sonarr app shows the scanner as running (spinning arrows).

If i restart sonarr, until you hit that file, if I force a scan of any other folder it’ll scan and be fine, but once it hits that file, the scan stops/system hangs.

my video player plays that video fine, it appears to be fine, i let it play for half hte length of the video.

The files are attached via NFS to a NAS, no other issues or errors

2023-08-13 17:15:08.4|Debug|Parser|Parsing string 'The.Other.Two.S01E07.Chase.Gets.a.Nosebleed.mp4'
2023-08-13 17:15:08.4|Trace|Parser|^(?<title>.+?)(?:(?:[-_\W](?<![()\[!]))+S?(?<season>(?<!\d+)(?:\d{1,2})(?!\d+))(?:[ex]|\W[ex]){1,2}(?<episode>\d{2,3}(?!\d+))(?:(?:\-|[ex]|\W[ex]|_){1,2}(?<episode>\d{2,3}(?!\d+)))*)\W?(?!\\)
2023-08-13 17:15:08.4|Debug|Parser|Episode Parsed. The Other Two - S01E07
2023-08-13 17:15:08.4|Debug|Parser|Language parsed: English
2023-08-13 17:15:08.4|Debug|QualityParser|Trying to parse quality for The.Other.Two.S01E07.Chase.Gets.a.Nosebleed.mp4
2023-08-13 17:15:08.4|Debug|Parser|Quality parsed: SDTV v1
2023-08-13 17:15:08.4|Debug|Parser|Release Group parsed:
2023-08-13 17:15:08.4|Trace|ConfigService|Using default config value for 'enablemediainfo' defaultValue:'True'
2023-08-13 17:15:08.4|Debug|VideoFileInfoReader|Getting media info from /mnt/naslib/plex/library/Series/The Other Two/Season 01/The.Other.Two.S01E07.Chase.Gets.a.Nosebleed.mp4
2023-08-13 17:15:08.4|Trace|MediaInfo|Read file offset 0-655360 (655360 bytes)
2023-08-13 17:15:08.4|Trace|MediaInfo|Read file offset 647637-696789 (49152 bytes)
2023-08-13 17:15:08.4|Trace|MediaInfo|Read file offset 1545949-1562333 (16384 bytes)

In an attempt to finish this as it is causing issues on my system, i moved that directory away to see if it would finish.

Instead, it froze at this spot. At this point, the scan stops. I turned on trace to try and see if I had any more information, and this is what I get.

What’s interesting to me is it says Debug|Parser|Quality parsed: SDTV v1

except its a 4k recording.

Any ideas? I can keep moving directories but I’m trying to figure out what is causing this

That’s because the filename lacks any quality information and .mp4 defaults to SDTV, at best Sonarr would see that as 4k TV source once media info is available, but that appears to be the issue, media info is hanging on that file, v4 switches to ffprobe which may work better for that particular file if you want to try the beta, or maybe upgrading mediainfo will help in the mean time.

OK, Moving to the v4 Beta and that error stopped and it scanned in the folder fine. works for me :slight_smile:
THanks for pointing out that, i didn’t notice v4 beta was ready.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.