Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NzbtoDrone PPscript not notifying nzbdron #370

Closed
mattfox27 opened this issue May 3, 2014 · 28 comments
Closed

NzbtoDrone PPscript not notifying nzbdron #370

mattfox27 opened this issue May 3, 2014 · 28 comments

Comments

@mattfox27
Copy link

So I know this was working before but now it seems to have an issue again...

I decided to delete and reinstall nzbToMedia Dev branch to clean everything up and start fresh. SInce then nzbtodrone seems to be not working. In nzbget it shows PP succeeded but in nzbdrone it shows it not downloaded...here is the log

2014-05-03 11:28:49 INFO    ::MAIN:    #########################################################
2014-05-03 11:28:49 INFO    ::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
2014-05-03 11:28:49 INFO    ::MAIN:   #########################################################
2014-05-03 11:28:49 INFO    ::MAIN: Script triggered from NZBGet (11.0 or later).
2014-05-03 11:28:55 INFO    ::MAIN: Auto-detected SECTION:NzbDrone
2014-05-03 11:28:55 INFO    ::MAIN: Calling NzbDrone:TV to post-    process:Bobs.Burgers.S04E11.720p.HDTV.x264-KILLERS.nzb
2014-05-03 11:28:56 INFO    ::MAIN: Attempting to verify TV fork
2014-05-03 11:28:56 INFO    ::MAIN: NzbDrone:TV fork set to default
2014-05-03 11:28:56 INFO    ::TRANSCODER: Checking     [bobs.burgers.s04e11.720p.hdtv.x264-killers.mkv] for corruption, please stand by ...
2014-05-03 11:28:56 INFO    ::TRANSCODER: SUCCESS:     [bobs.burgers.s04e11.720p.hdtv.x264-killers.mkv] has no corruption.
2014-05-03 11:28:56 INFO    ::MAIN: FLATTEN: Flattening directory:   /media/USBHDD1/shares/NZBget/dst/myshow.S04E11.720p.HDTV.x264-   KILLERS
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE: SUCCESS: The download  succeeded, sending a post-process request
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE: {
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "name":   "DownloadedEpisodesScan",
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "message": "Starting",
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "startedOn": "0001-01-  01T00:00:00Z",
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "stateChangeTime": "2014-05-03T18:28:56.128776Z",
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "sendUpdatesToClient": false,
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "state": "running",
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "id": 24851
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE: }
2014-05-03 11:28:56 INFO    ::CLEANDIRS: Directory    /media/USBHDD1/shares/NZBget/dst/myshow.S04E11.720p.HDTV.x264-   KILLERS   still contains 2 unprocessed file(s), skipping ...
2014-05-03 11:28:56 INFO    ::CLEANDIRS: Directory     /media/USBHDD1/shares/NZBget/dst/myshow.S04E11.720p.HDTV.x264-     KILLERS   has been processed, removing ...
2014-05-03 11:28:56 INFO    ::MAIN: The     /media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia/nzbToNzbDrone.py script     completed successfully. 

AutoProcessmedia.cfg

[NzbDrone]
#### autoProcessing for TV Series
#### ndCategory - category that gets called for post-processing with NzbDrone
[[tv]]
enabled = 1
apikey = 0d883167f7a546adb34415xxxxxxxx
host = localhost
port = 8989
username = ""
password = ""
###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
web_root = ""
ssl = 0
delete_failed = 0
# Enable/Disable linking for Torrents
Torrent_NoLink = 0
extract = 1
# Set this to minimum required size to consider a media file valid (in MB)
minSize = 0
# Enable/Disable deleteing ignored files (samples and invalid media files)
delete_ignored = 0
##### Set to path where completed downloads are found on remote server for this category
remote_path = ""
##### Set to path where download client places completed downloads locally for this category
watch_dir = ""
[[TV]]
host = localhost
apikey = 0d883167f7a546adb34415c6bxxxxxxxxxx
port = 8989
ssl = 0
web_root = ""
enabled = 1

@clinton-hall
Copy link
Owner

The log section below comes from NZBDrone... it shows that the scan has started, but interestingly the startedon date looks to be corrupt.

2014-05-03 11:28:56 POSTPROCESS::NZBDRONE: {
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "name":   "DownloadedEpisodesScan",
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "message": "Starting",
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "startedOn": "0001-01-  01T00:00:00Z",
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "stateChangeTime": "2014-05-03T18:28:56.128776Z",
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "sendUpdatesToClient": false,
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "state": "running",
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE:   "id": 24851
2014-05-03 11:28:56 POSTPROCESS::NZBDRONE: }

so, are there any log entries in NZBDrone to show the request coming in and why it didn't process?

@JacobDorman
Copy link

I'm seeing the same thing. The worst part is, nzbtomedia deletes the directory after NZBDrone fails to import the file ...

Log from NZBDrone:

14-5-4 21:22:08.1|Error|ImportDecisionMaker|Couldn't import file./volume1/video/Completed/Series/Anthony.Bourdain.No.Reservations.S01E02.INTERNAL.DVDRip.XviD-PARTiCLE/anthony.bourdain.no.reservations.s01e02.dvdrip.xvid.particle.avi

System.IO.FileNotFoundException: File doesn't exist: /volume1/video/Completed/Series/Anthony.Bourdain.No.Reservations.S01E02.INTERNAL.DVDRip.XviD-PARTiCLE/anthony.bourdain.no.reservations.s01e02.dvdrip.xvid.particle.avi
  at NzbDrone.Common.Disk.DiskProviderBase.GetFileSize (System.String path) [0x00000] in <filename unknown>:0
  at NzbDrone.Core.MediaFiles.EpisodeImport.ImportDecisionMaker+<GetDecisions>d__0.MoveNext () [0x00000] in <filename unknown>:0

nzbget is running as root for some reason and creating files with -rw-r--r-- , but after chmod /volume1/video/Completed/Series/ to -rwxrwxrwx, the problem persists.

@clinton-hall
Copy link
Owner

Yeah.. permissions issues!

So if NZBGet runs as root, what user does NZBDrone run as?

@JacobDorman
Copy link

Yeah, i'm not sure it's a straight permissions issue.

NZBDrone is running as nzbdrone user. Have chowned both source and destination folders to nzbdrone user as well as chmodding the entire /volume1/video/ to 777.

Importing via Drone Factory interval works.

Could nzbtomedia be deleting the file before nzbdrone has a chance to import it?
timestamps

2014-05-04 22:30:29 INFO    ::CLEANDIRS: Directory /volume1/video/Completed/Series/Anthony.Bourdain.No.Reservations.S01E01.INTERNAL.DVDRip.XviD-PARTiCLE has been processed, removing ...
14-5-4 22:30:30.0|Error|ImportDecisionMaker|Couldn't import file./volume1/video/Completed/Series/Anthony.Bourdain.No.Reservations.S01E01.INTERNAL.DVDRip.XviD-PARTiCLE/anthony.bourdain.no.reservations.s01e01.dvdrip.xvid.particle.avi

@clinton-hall
Copy link
Owner

Ah, good catch...

I'll try to add a call to verify the episode is processed before cleaning up. Otherwise I'll just add a timed delay...

Sorry for the trouble here.

@clinton-hall
Copy link
Owner

Please update and try again.

What it now does is get the number of missing episodes in NZBDrone before it calls the process... then it checks the number of current missing episodes and either times out (wiat_for minutes if the number doesn't change) or keeps waiting until the number of missing episodes remains constant (i.e all episodes in this download have processed).

@mattfox27
Copy link
Author

Sorry, i had a system crash...just finished rebuilding...Im going to start testing fresh...thanks

@mattfox27
Copy link
Author

Still not working...its wierd it seems like it totally removes it from nzbgets history too...

It also says it can't find subsection labeled TV, there is not another small section under nzbdrone like SickBeard in autoprocess.cfg that is labeled TV

Logs http://pastebin.com/4CRufZbc

Here is my autoprocessmedia.cfg http://pastebin.com/9EDn7N74

@clinton-hall
Copy link
Owner

Can you confirm that in NZBGet, settings, nzbToNzbDrone, you have set ndCategory=TV

Note, this is case sensitive and must be "TV" not "tv"

@mattfox27
Copy link
Author

FYI...I just updated scripts and its still loading the wrong port number for NZBdrone, its loading 8081 and nzbdrones default port is 8989.

Thx

@mattfox27
Copy link
Author

Ya its wierd even if i go into autoprocessmedia and change the port to 8989 it defaults it back to 8081 when it processes...heres log

014-05-05 19:09:41 DEBUG ::MAIN: git fetch origin : returned successful
2014-05-05 19:09:41 DEBUG ::MAIN: Executing git rev-parse --verify --quiet "@{upstream}" with your shell in /media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia
2014-05-05 19:09:41 DEBUG ::MAIN: git output: 05cd3ef
2014-05-05 19:09:41 DEBUG ::MAIN: git rev-parse --verify --quiet "@{upstream}" : returned successful
2014-05-05 19:09:41 DEBUG ::MAIN: Executing git rev-list --left-right "@{upstream}"...HEAD with your shell in /media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia
2014-05-05 19:09:41 DEBUG ::MAIN: git output:
2014-05-05 19:09:41 DEBUG ::MAIN: git rev-list --left-right "@{upstream}"...HEAD : returned successful
2014-05-05 19:09:41 DEBUG ::MAIN: cur_commit = 05cd3ef % (newest_commit)= 05cd3ef, num_commits_behind = 0, num_commits_ahead = 0
2014-05-05 19:09:41 INFO ::MAIN: No update needed
2014-05-05 19:09:41 INFO ::MAIN: nzbToMedia Version:05cd3efaa9a5389df0995647d6d495b81b279ea2 Branch:dev (Linux 3.11.0-12-generic)
2014-05-05 19:09:41 WARNING ::MAIN: Failed to locate ffmpeg, transcoding disabled!
2014-05-05 19:09:41 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ...
2014-05-05 19:09:41 WARNING ::MAIN: Failed to locate ffprobe, video corruption detection disabled!
2014-05-05 19:09:41 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ...
2014-05-05 19:09:41 INFO ::MAIN: #########################################################
2014-05-05 19:09:41 INFO ::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
2014-05-05 19:09:41 INFO ::MAIN: #########################################################
2014-05-05 19:09:41 DEBUG ::MAIN: Options passed into nzbToMedia: ['/media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia/nzbToNzbDrone.py']
2014-05-05 19:09:41 INFO ::MAIN: Script triggered from NZBGet (11.0 or later).
2014-05-05 19:09:41 DEBUG ::MAIN: Adding NZB download info for directory /media/USBHDD1/shares/NZBget/dst/Bobs Burgers S04E18 Ambergris 720p Web-DL to database
2014-05-05 19:09:41 INFO ::MAIN: Auto-detected SECTION:NzbDrone
2014-05-05 19:09:41 INFO ::MAIN: Calling NzbDrone:TV to post-process:Bobs Burgers S04E18 Ambergris 720p Web-DL.nzb
2014-05-05 19:09:42 INFO ::MAIN: Attempting to verify TV fork
2014-05-05 19:09:42 INFO ::MAIN: NzbDrone:TV fork set to default
2014-05-05 19:09:42 INFO ::MAIN: FLATTEN: Flattening directory: /media/USBHDD1/shares/NZBget/dst/Myshows S04E18 Ambergris 720p Web-DL
2014-05-05 19:09:42 DEBUG ::MAIN: Checking for empty folders in:/media/USBHDD1/shares/NZBget/dst/Myshow S04E18 Ambergris 720p Web-DL
2014-05-05 19:09:42 POSTPROCESS::NZBDRONE: SUCCESS: The download succeeded, sending a post-process request
2014-05-05 19:09:42 DEBUG ::NZBDRONE: Opening URL: http://localhost:8081/api/missing

@clinton-hall
Copy link
Owner

this wa fixed
https://github.com/clinton-hall/nzbToMedia/blob/dev/nzbToNzbDrone.py#L33

What you need to do is change this in NZBGet settings, nzbToNzbDrone, ndport = 8989
then hit save all and restart nzbget to make this take effect.

@mattfox27
Copy link
Author

yep your right...my bad, missed that one...thanks

@mattfox27
Copy link
Author

So it failed again, but all the logs look pretty good...

Here is a screenshot of nzbget showing the PP-failure http://imgur.com/si2uIHH

Sorry, im not trying to be a pain, sorry if i keep bugging you, I really appreciate the help

M

2014-05-05 19:27:03 INFO ::MAIN: Loading config from [/media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia/autoProcessMedia.cfg]
2014-05-05 19:27:03 INFO ::MAIN: Checking database structure...
2014-05-05 19:27:03 DEBUG ::MAIN: Checking Initial Schema database upgrade
2014-05-05 19:27:03 DEBUG ::MAIN: InitialSchema upgrade not required
2014-05-05 19:27:03 DEBUG ::MAIN: Checking if we can use git commands: git version
2014-05-05 19:27:03 DEBUG ::MAIN: Executing git version with your shell in /media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia
2014-05-05 19:27:03 DEBUG ::MAIN: git output: git version 1.8.3.2
2014-05-05 19:27:03 DEBUG ::MAIN: git version : returned successful
2014-05-05 19:27:03 DEBUG ::MAIN: Using: git
2014-05-05 19:27:03 DEBUG ::MAIN: Executing git symbolic-ref -q HEAD with your shell in /media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia
2014-05-05 19:27:03 DEBUG ::MAIN: git output: refs/heads/dev
2014-05-05 19:27:03 DEBUG ::MAIN: git symbolic-ref -q HEAD : returned successful
2014-05-05 19:27:03 INFO ::MAIN: Checking if git needs an update
2014-05-05 19:27:03 DEBUG ::MAIN: Executing git rev-parse HEAD with your shell in /media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia
2014-05-05 19:27:03 DEBUG ::MAIN: git output: 05cd3ef
2014-05-05 19:27:03 DEBUG ::MAIN: git rev-parse HEAD : returned successful
2014-05-05 19:27:03 DEBUG ::MAIN: Executing git fetch origin with your shell in /media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia
2014-05-05 19:27:05 DEBUG ::MAIN: git output:
2014-05-05 19:27:05 DEBUG ::MAIN: git fetch origin : returned successful
2014-05-05 19:27:05 DEBUG ::MAIN: Executing git rev-parse --verify --quiet "@{upstream}" with your shell in /media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia
2014-05-05 19:27:05 DEBUG ::MAIN: git output: 05cd3ef
2014-05-05 19:27:05 DEBUG ::MAIN: git rev-parse --verify --quiet "@{upstream}" : returned successful
2014-05-05 19:27:05 DEBUG ::MAIN: Executing git rev-list --left-right "@{upstream}"...HEAD with your shell in /media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia
2014-05-05 19:27:05 DEBUG ::MAIN: git output:
2014-05-05 19:27:05 DEBUG ::MAIN: git rev-list --left-right "@{upstream}"...HEAD : returned successful
2014-05-05 19:27:05 DEBUG ::MAIN: cur_commit = 05cd3ef % (newest_commit)= 05cd3ef, num_commits_behind = 0, num_commits_ahead = 0
2014-05-05 19:27:05 INFO ::MAIN: No update needed
2014-05-05 19:27:05 INFO ::MAIN: nzbToMedia Version:05cd3efaa9a5389df0995647d6d495b81b279ea2 Branch:dev (Linux 3.11.0-12-generic)
2014-05-05 19:27:05 WARNING ::MAIN: Failed to locate ffmpeg, transcoding disabled!
2014-05-05 19:27:05 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ...
2014-05-05 19:27:05 WARNING ::MAIN: Failed to locate ffprobe, video corruption detection disabled!
2014-05-05 19:27:05 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ...
2014-05-05 19:27:05 INFO ::MAIN: #########################################################
2014-05-05 19:27:05 INFO ::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
2014-05-05 19:27:05 INFO ::MAIN: #########################################################
2014-05-05 19:27:05 DEBUG ::MAIN: Options passed into nzbToMedia: ['/media/USBHDD1/shares/NZBget/ppscripts/nzbToMedia/nzbToNzbDrone.py']
2014-05-05 19:27:05 INFO ::MAIN: Script triggered from NZBGet (11.0 or later).
2014-05-05 19:27:05 DEBUG ::MAIN: Adding NZB download info for directory /media/USBHDD1/shares/NZBget/dst/Bobs.Burgers.S04E18.720p.HDTV.X264-DIMENSION-NZBgeek to database
2014-05-05 19:27:11 INFO ::MAIN: Auto-detected SECTION:NzbDrone
2014-05-05 19:27:11 INFO ::MAIN: Calling NzbDrone:TV to post-process:Bobs.Burgers.S04E18.720p.HDTV.X264-DIMENSION-NZBgeek.nzb
2014-05-05 19:27:11 INFO ::MAIN: Attempting to verify TV fork
2014-05-05 19:27:11 INFO ::MAIN: NzbDrone:TV fork set to default
2014-05-05 19:27:11 INFO ::MAIN: FLATTEN: Flattening directory: /media/USBHDD1/shares/NZBget/dst/Bobs.Burgers.S04E18.720p.HDTV.X264-DIMENSION-NZBgeek
2014-05-05 19:27:11 DEBUG ::MAIN: Checking for empty folders in:/media/USBHDD1/shares/NZBget/dst/Bobs.Burgers.S04E18.720p.HDTV.X264-DIMENSION-NZBgeek
2014-05-05 19:27:11 POSTPROCESS::NZBDRONE: SUCCESS: The download succeeded, sending a post-process request
2014-05-05 19:27:11 DEBUG ::NZBDRONE: Opening URL: http://localhost:8989/api/missing

clinton-hall added a commit that referenced this issue May 6, 2014
@clinton-hall
Copy link
Owner

ah... no need to apologize.. I'm the one who is making silly mistakes :(

Try once more...

@JacobDorman
Copy link

@mattfox27 if you are using NZBGet 11+ make sure to make the configuration changes via the NZBGet web interface for post processing scripts. I found direct edits to autoProcessMedia.cfg were overwritten by the configuration in NZBGet.
Also make sure the config is in the correct post processing script section, ie nzbToMedia OR nzbtodrone

@JacobDorman
Copy link

Updated to latest commit dev 1f829db,

Now i'm seeing PP-Failures instead of success and file deletion (getting closer)

nzbtomedia.log

2014-05-06 21:06:59 INFO    ::MAIN: Loading config from [/volume1/video/Incoming/nzbget/ppscripts/nzbToMedia/autoProcessMedia.cfg]
2014-05-06 21:07:00 INFO    ::MAIN: Checking database structure...
2014-05-06 21:07:00 DEBUG   ::MAIN: Checking Initial Schema database upgrade
2014-05-06 21:07:00 DEBUG   ::MAIN: InitialSchema upgrade not required
2014-05-06 21:07:00 DEBUG   ::MAIN: Checking if we can use git commands: git version
2014-05-06 21:07:00 DEBUG   ::MAIN: Executing git version with your shell in /volume1/video/Incoming/nzbget/ppscripts/nzbToMedia
2014-05-06 21:07:00 DEBUG   ::MAIN: git output: /bin/sh: git: not found
2014-05-06 21:07:00 DEBUG   ::MAIN: git version returned : /bin/sh: git: not found, treat as error for now
2014-05-06 21:07:00 DEBUG   ::MAIN: Not using: git
2014-05-06 21:07:00 DEBUG   ::MAIN: Unable to find your git executable - Set git_path in your autoProcessMedia.cfg OR delete your .git folder and run from source to enable updates.
2014-05-06 21:07:00 DEBUG   ::MAIN: No git specified, can't use git commands
2014-05-06 21:07:00 INFO    ::MAIN: Checking if git needs an update
2014-05-06 21:07:00 DEBUG   ::MAIN: No git specified, can't use git commands
2014-05-06 21:07:00 ERROR   ::MAIN: Unable to determine installed version via git, please check your logs!
2014-05-06 21:07:00 INFO    ::MAIN: No update needed
2014-05-06 21:07:00 INFO    ::MAIN: nzbToMedia Version:9.3 Branch:dev (Linux 2.6.32.12)
2014-05-06 21:07:00 WARNING ::MAIN: Failed to locate ffprobe, video corruption detection disabled!
2014-05-06 21:07:00 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature  ...
2014-05-06 21:07:01 DEBUG   ::MAIN: Connecting to transmission: http://localhost:9091
2014-05-06 21:07:01 INFO    ::MAIN: #########################################################
2014-05-06 21:07:01 INFO    ::MAIN: ## ..::[nzbToMedia.py]::.. ##
2014-05-06 21:07:01 INFO    ::MAIN: #########################################################
2014-05-06 21:07:01 DEBUG   ::MAIN: Options passed into nzbToMedia: ['/volume1/video/Incoming/nzbget/ppscripts/nzbToMedia/nzbToMedia.py']
2014-05-06 21:07:01 INFO    ::MAIN: Script triggered from NZBGet (11.0 or later).
2014-05-06 21:07:01 DEBUG   ::MAIN: Adding NZB download info for directory /volume1/video/Completed/Series/Vikings.S02E08.HDTV.x264-KILLERS to database
2014-05-06 21:07:02 INFO    ::MAIN: Auto-detected SECTION:NzbDrone
2014-05-06 21:07:02 INFO    ::MAIN: Calling NzbDrone:Series to post-process:Vikings.S02E08.HDTV.x264-KILLERS.nzb
2014-05-06 21:07:02 INFO    ::MAIN: Attempting to verify Series fork
2014-05-06 21:07:06 INFO    ::MAIN: NzbDrone:Series fork set to default
2014-05-06 21:07:07 INFO    ::MAIN: FLATTEN: Flattening directory: /volume1/video/Completed/Series/Vikings.S02E08.HDTV.x264-KILLERS
2014-05-06 21:07:07 DEBUG   ::MAIN: Checking for empty folders in:/volume1/video/Completed/Series/Vikings.S02E08.HDTV.x264-KILLERS
2014-05-06 21:07:07 POSTPROCESS::NZBDRONE: SUCCESS: The download succeeded, sending a post-process request
2014-05-06 21:07:07 DEBUG   ::NZBDRONE: Opening URL: http://localhost:8989/api/command

nzbdrone.txt

14-5-6 21:07:46.5|Info|FailedDownloadService|Removing failed download from history: Vikings.S02E08.HDTV.x264-KILLERS
14-5-6 21:07:47.6|Error|Scheduler|Error occurred while executing task NzbDrone.Core.Download.CheckForFailedDownloadCommand

System.InvalidOperationException: Sequence contains more than one matching element
  at System.Linq.Enumerable.Single[NzbgetHistoryItem] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.SingleOrDefault[NzbgetHistoryItem] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.Download.Clients.Nzbget.NzbgetProxy.RemoveFromHistory (System.String id, NzbDrone.Core.Download.Clients.Nzbget.NzbgetSettings settings) [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.Download.Clients.Nzbget.Nzbget.RemoveFromHistory (System.String id) [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.Download.FailedDownloadService.CheckHistory (System.Collections.Generic.List`1 grabbedHistory, System.Collections.Generic.List`1 failedHistory) [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.Download.FailedDownloadService.Execute (NzbDrone.Core.Download.CheckForFailedDownloadCommand message) [0x00000] in <filename unknown>:0 
  at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[CheckForFailedDownloadCommand] (NzbDrone.Core.Messaging.Commands.Command command) [0x00000] in <filename unknown>:0 

... not sure that the nzbdrone log entries are even related to the post processing, running pp again through nzbget fails and produces no entries in nzbdrone.txt.

@clinton-hall
Copy link
Owner

can you check the nzbget logs? you should see the same entries, along with a traceback to show where this failed... I just can't see what is going on.

if you set all logging to console in nzbget, you should be able to view the actual errors right in nzbget.
otherwise, if you can send me the actual nzbget log via email that would help.

@clinton-hall
Copy link
Owner

ok... the trace-back was posted in #373

Based on that, I believe the error was the way i called an internal function... this has been corrected above and should be fixed now.

Please try once more...

@mattfox27
Copy link
Author

OK, so i got everything back up working and its still pp failing,,, I see there is a timer function i don't see that firing off...

Log http://pastebin.com/vy3fJN6m
autoprocess http://pastebin.com/KjjWERXs

@mattfox27
Copy link
Author

Does it do anything making edits directly to autoprocessmedia.cfg? Like putting api key in there direct or setting enabled=1 ? Or should i just leave that alone and make all changes direct from nzbget?

@clinton-hall
Copy link
Owner

Do it all in NZBGet.

@mattfox27
Copy link
Author

copy that...thats what i thought, just wanted to make sure

clinton-hall added a commit that referenced this issue May 7, 2014
@clinton-hall
Copy link
Owner

Ah... I need to learn how these classes work with the "self" calls.

Please tell me this is getting close.

@mattfox27
Copy link
Author

Its getting there..hang in there buddy...lol, I feel your pain!!!!

Is it all mixing together into twilight zone code world?...lol

I really appreciate the effort...

@clinton-hall
Copy link
Owner

Wow... maybe I should try adding a download from NZBDrone so that I can test this...

Latest commit should fix the latest issue...

clinton-hall added a commit that referenced this issue May 7, 2014
@mattfox27
Copy link
Author

OK let me try it...

@JacobDorman
Copy link

Working over here.

If the permissions are incorrect, nzbdrone.txt doesn't seem to log anything, but nzbtomedia.log will show:

WARNING ::NZBDRONE: The number of missing episodes does not appear to have changed status after 2 minutes, Please check your logs.
ERROR   ::MAIN: A problem was reported in the /volume1/video/Incoming/nzbget/ppscripts/nzbToMedia/nzbToMedia.py script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants