Nzbget 16.0 failed download handling not working

I’m using NZBGet 16.0 with sonarr master 2.0.0.3357. This always worked fine but since a couple of weeks the failed downloads are not handled correctly sometimes.

In nzbget the download failed with status: DELETE: SCAN
This is because of the following log:
INFO Wed Oct 14 2015 08:40:58 Collection ** added to history
ERROR Wed Oct 14 2015 08:40:58 Error parsing nzb-file **.nzb
ERROR Wed Oct 14 2015 08:40:58 Error parsing nzb-file: Start tag expected, ‘<’ not found

In sonarr the download is stuck in activity with timeleft: 00:00:00 and progress empty. However an episode is downloaded correctly and added through sonarr(I guess this is another download or something but I can’t verify this as completed downloads gets deleted from the nzbget log. But in Sonarr the completed episode is added on 8:41 so I guess it’s another one.)

Beside this I also configured sonarr to remove failed downloads from nzbget but this particular download isn’t removed from the nzbget log also. Looks like it’s not detected correctly or something.

Any fix for this?

Please hastebin a couple minutes of trace logs so we can see the status coming from nzbget, we’ll also need to know when release it is.

Oke, I’ve enabled trace logs. Will update once I got another failed release.

Got 2 broken downloads this morning again seems sonarr crashes:

Logs shows:

15-10-16 08:41:44.2|Info|Nzbget|Adding report [The Player 2015 S01E04 720p HDTV x264-FLEET] to the queue.
15-10-16 08:41:44.4|Trace|CommandExecutor|CheckForFinishedDownloadCommand → DownloadMonitoringService
15-10-16 08:41:44.4|Trace|CommandQueueManager|Marking command as started: CheckForFinishedDownload
15-10-16 08:41:44.6|Debug|NzbgetProxy|Url: http://localhost:6789/jsonrpc
15-10-16 08:41:44.6|Debug|NzbgetProxy|Url: http://localhost:6789/jsonrpc
15-10-16 08:41:44.6|Trace|NzbgetProxy|Response: {
15-10-16 08:41:45.2|Trace|ConfigService|Using default config value for ‘downloadclienthistorylimit’ defaultValue:‘30’
15-10-16 08:41:45.2|Warn|ProcessDownloadDecisions|Couldn’t add report to download queue. The Player 2015 S01E04 720p HDTV x264-FLEET

NzbDrone.Core.Download.Clients.DownloadClientException: Failed to add nzb The Player 2015 S01E04 720p HDTV x264-FLEET.nzb
at NzbDrone.Core.Download.Clients.Nzbget.Nzbget.AddFromNzbFile (NzbDrone.Core.Parser.Model.RemoteEpisode remoteEpisode, System.String filename, System.Byte fileContent) [0x00000] in :0
at NzbDrone.Core.Download.UsenetClientBase1[NzbDrone.Core.Download.Clients.Nzbget.NzbgetSettings].Download (NzbDrone.Core.Parser.Model.RemoteEpisode remoteEpisode) [0x00000] in <filename unknown>:0 at NzbDrone.Core.Download.DownloadService.DownloadReport (NzbDrone.Core.Parser.Model.RemoteEpisode remoteEpisode) [0x00000] in <filename unknown>:0 at NzbDrone.Core.Download.ProcessDownloadDecisions.ProcessDecisions (System.Collections.Generic.List1 decisions) [0x00000] in :0

I removed a part of the json response, as this didn’t include any information about the show. But I can send you more logs if needed.

I’m not really sure if it’s the same release(but I think so) but somehow it seems to work when I manually retry it(a few hours later, the broken nzb was retrieved just after startup of sonarr in the morning(nas starts up at 8:30). Somehow sonarr can’t fetch a correct nzb or something.

nzbget log for the download:

Fri Oct 16 08:41:44 2015 INFO Adding collection The Player 2015 S01E04 720p HDTV x264-FLEET.nzb to queue
Fri Oct 16 08:41:44 2015 ERROR Error parsing nzb-file: Start tag expected, ‘<’ not found
Fri Oct 16 08:41:44 2015 ERROR Error parsing nzb-file The Player 2015 S01E04 720p HDTV x264-FLEET.nzb
Fri Oct 16 08:41:44 2015 ERROR Could not add collection The Player 2015 S01E04 720p HDTV x264-FLEET.nzb to queue
Fri Oct 16 08:41:44 2015 INFO Collection The Player 2015 S01E04 720p HDTV x264-FLEET added to history

Please post the full log to hastebin.

mono needs to be runnign with the --debug switch and currently isn’t.

This looks like the release failed to get sent to nzbget (invalid NZB), knowing where the NZB came from (which indexers do you have enabled), coupled with logs should help track down the problem.

Seems like the logs are gone, I will post them when I have some new logs.

Do you really need --debug logs of mono as it’s already showing an error in the normal log.

I’ve enabled many indexers(27) since many of them have an api limit. I will check which indexer has been used for the broken download.

The --debug switch shows us exactly where it failed in the code down to the line, it is required for troubleshooting.

And we need trace logs to see how it was processed/give us more details, the error is the symptom, we need to know the cause.

Oke, i’ve enabled trace log again and added debug parameter like this:

/usr/local/bin/mono --debug /share/MD0_DATA/.qpkg/NzbDrone/NzbDrone/NzbDrone.exe --nobrowser

This is correct I guess?

Will post again when I have some logs

I also noticed one download which broke this morning showed a negative age like:

Name:
Marvels.Agents.of.S.H.I.E.L.D.S03E04.720p.HDTV.x264
Indexer:
nzb.ag
Info:
http://nzb.ag/details/b00a8f4ba2ebff7f07a571e16200f7e9c6587225
Download Client:
Nzbget
Age (when grabbed):
-87.8 minutes
Published Date:
21 Oct 2015 10:11:01

Maybe that can be a reason.

Negative age means one of a couple things:

  • Your time is off (wrong time, timezone or DST settings)
  • The indexer is reporting the wrong time (More common than it should be)

The first issue is easy to fix, the 2nd would require you to contact your indexer and ask them to fix it.

Seems I am experiencing this issue too:

  1. nzbget erroring on some nzb files Sonarr passes it (ie. doesn’t like the nzb file itself and therefore fails during parsing it and doesn’t attempt to process it further).
  2. Sonarr doesn’t seem to (fully) recognise this as a failed download (technical a not-even-started-downloaded, but the same result) and it hangs around in the Sonarr activity window instructing the user to take a look in the downloader client (as I presume it would with say a password-protected downloaded that required end-user interaction).

Guess this is a change that occurred with nzbget v16 (and onwards) as it is around about here I started seeing this issue.

(thanks)

Stop NZBGet, delete the main log and then start NZBGet again. That may fix your issue.

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