Some episodes not completing

I’ve got a number of episodes from different series that have been successfully downloaded but sonarr does not import them. I’ve rebuilt my seedbox and replicated the issue with a single episode that I know exhibits the behavior.

To reproduce:

  • Add series ‘Fat to Fit to Fat’, monitor none.
  • Monitor for episode 3, and click search.
  • Episode will be found and sent to download client (sabnzbd). Download will complete in sabnzbd (and is visible on disk in the sonarr-complete directory).

Expected result: Sonarr shows the download has completed and will import it to the final media directory.

Actual result: Sonarr shows that the download has not completed (marked as 16% done).

The tooltip for the episode in the activity queue simply says that it is still Downloading, no errors are marked.

After a restart, the episode is no longer in the queue, it is now in the history section. The tooltip reads that the nzb was grabbed and sent to the download client, but there is no further information or progress.

In addition, the check for finished downloads task frequently spins, and will not continue running with a restart.

System Info:

Sonarr Version: 2.0.0.3732
Mono Version: 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Nov 12 09:52:44 UTC 2015)
OS: Debian Wheezy
Kernel: Linux seedbox 3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u2 x86_64 GNU/Linux
Sabnzbd Version: 1.0.0RC1 [00de72b]

Confirmation of completed download:

seedbox /data/sabnzbd/sonarr-complete/Fit.to.Fat.to.Fit.S01E03.Adonis.and.Alissa.WS.DSR.x264-NY2: ll
total 344M
drwxr-xr-x 2 root root 4.0K Feb 20 12:33 .
drwxr-xr-x 3 root root 4.0K Feb 20 12:33 ..
-rw-r--r-- 1 root root 3.8K Feb 20 12:33 fitofatofi103adanalwsdsx2ny.16
-rw-r--r-- 1 root root 344M Feb  3 09:03 Fit.To.Fat.To.Fit.S01E03.Adonis.and.Alissa.WS.DSR.x264-NY2.mp4
seedbox /data/sabnzbd/sonarr-complete/Fit.to.Fat.to.Fit.S01E03.Adonis.and.Alissa.WS.DSR.x264-NY2:

Contents of the .16 file (seems to just be mediainfo output):

seedbox /data/sabnzbd/sonarr-complete/Fit.to.Fat.to.Fit.S01E03.Adonis.and.Alissa.WS.DSR.x264-NY2: cat fitofatofi103adanalwsdsx2ny.16
General
Complete name                            : Fit.To.Fat.To.Fit.S01E03.Adonis.and.Alissa.WS.DSR.x264-NY2.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42
File size                                : 343 MiB
Duration                                 : 41mn 39s
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 151 Kbps
Encoded date                             : UTC 2036-02-06 06:28:16
Tagged date                              : UTC 2036-02-06 06:28:16
Writing application                      : HandBrake 0.10.2 2015060900

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L4
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 41mn 39s
Bit rate                                 : 1 016 Kbps
Width                                    : 704 pixels
Height                                   : 356 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.135
Stream size                              : 303 MiB (88%)
Writing library                          : x264 core 142 r2479 dd79a61
Encoding settings                        : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=300 / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=20.5 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=25000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2036-02-06 06:28:16
Tagged date                              : UTC 2036-02-06 06:28:16
Color range                              : Limited
Color primaries                          : BT.601 NTSC
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 41mn 39s
Bit rate mode                            : Variable
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 38.3 MiB (11%)
Title                                    : Stereo / Stereo
Language                                 : English
Encoded date                             : UTC 2036-02-06 06:28:16
Tagged date                              : UTC 2036-02-06 06:28:16


seedbox /data/sabnzbd/sonarr-complete/Fit.to.Fat.to.Fit.S01E03.Adonis.and.Alissa.WS.DSR.x264-NY2:

Logs:

Info-level log of a successful download and import to confirm configuration.

Trace-level log of the file that refuses to complete.

Trace-level log taken after restarting.

DB and Sonarr config:

This file is a tarball of ~/.config. API keys have been rolled.

Please let me know if any additional information would help. I’d really like to get this sorted out.

1 Like

This looks like a media info issue, which version of mediainfolib is installed?

The logs indicate that Sonarr is check getting info from Media Info and then it just stops and the CheckForFinishedDownload task never completes.

16-2-20 12:34:12.3|Debug|ImportDecisionMaker|Analyzing 1/1 files.
16-2-20 12:34:12.3|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for /data/sabnzbd/sonarr-complete/Fit.to.Fat.to.Fit.S01E03.Adonis.and.Alissa.WS.DSR.x264-NY2/Fit.To.Fat.To.Fit.S01E03.Adonis.and.Alissa.WS.DSR.x264-NY2.mp4
16-2-20 12:34:12.4|Debug|VideoFileInfoReader|Getting media info from /data/sabnzbd/sonarr-complete/Fit.to.Fat.to.Fit.S01E03.Adonis.and.Alissa.WS.DSR.x264-NY2/Fit.To.Fat.To.Fit.S01E03.Adonis.and.Alissa.WS.DSR.x264-NY2.mp4
16-2-20 12:34:12.4|Trace|MediaInfo|Read file offset 0-2113536 (2113536 bytes)
16-2-20 12:34:14.7|Trace|CommandQueueManager|Publishing CheckForFinishedDownload
16-2-20 12:34:14.7|Trace|CommandQueueManager|Checking if command is queued or started: CheckForFinishedDownload
16-2-20 12:34:14.7|Trace|CommandQueueManager|Command is already in progress: CheckForFinishedDownload

The subsequent logs are filled with attempting to publish the CheckForFinishedDownload command and it being rejected because the command is already running.

Just took a look:

seedbox ~: dpkg -l | grep -i mediainfo
ii  libmediainfo0:amd64                                         0.7.58-1                         amd64        library for reading metadata from media files -- shared library
ii  mediainfo                                                   0.7.58-1                         amd64        command-line utility for reading information from audio/video files
seedbox ~:

Looks like that’s the only version available:

seedbox ~: apt-cache policy libmediainfo0
libmediainfo0:
  Installed: 0.7.58-1
  Candidate: 0.7.58-1
  Version table:
 *** 0.7.58-1 0
        500 http://ftp.us.debian.org/debian/ wheezy/main amd64 Packages
        500 http://http.us.debian.org/debian/ wheezy/main amd64 Packages
        100 /var/lib/dpkg/status
seedbox ~:

Fwiw, the command line version of mediainfo runs on the file fine.

Thats a pretty old version of mediainfo lib.

In some cases mediainfo will work, but mediainfolib won’t because Sonarr is checking specific parts of the file, not the whole file as checking the whole file is extremely slow.

Unfortunately that’s the latest version in wheezy.

I rebuilt on Ubuntu 14.04, and was able to download successfully, but Sonarr crashed every few minutes.

I then rebuilt on Jessie, and aside from needing to compile Mono rather than using the provided packages, things seem to be working now.

1 Like

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