Post-Processing / Completed Downloading Handling issues

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
Repentant
Posts: 2
Joined: Sat Oct 26, 2019 12:28 am

Post-Processing / Completed Downloading Handling issues

Post by Repentant »

Greetings;

Having issues troubleshooting standing up a new mylar install.

Mylar is able to hit indexers, send nzbs to Sabnzbd which download, and appears to see the downloaded files. However, it's failing on a DUPECHECK which appears to be mixing folder and file names together. This ultimately leaves the downloaded comics in the downloaded folder. Could use some help.

Downloaded file: Catwoman 014 (2019) (Digital) (Oracle-SWA).cbr
Sabnzbd ultimately deposits this file in /downloads/complete/comics/Catwoman.014.2019.Digital.Oracle-SWA

Note in the logs under early POST-PROCESSING that mylar sees both the correct nzb name and nzb folder. However, the CLOCATION entry is incorrect; it's missing the nzb folder in the path, and the first DUPECHECK reference actually uses the nzb name twice, instead of nzbfolder/nzbname.

I feel like I'm missing something simple. Any ideas? Thanks!

Other data points:
Mylar Version: (HEAD detached at 5ffe8fb)
-- git build 5ffe8fbd3080e11884c6d11ad3aacbc9f6a73cb3.
Python Version : 2.7.16
Language : en_US.UTF-8
Running on apline linux 3.10
(this is the linuxserver/mylar image on hub.docker.com, which seems to be the best kept verison. Recommendations welcome here)

File is at:
/downloads/complete/comics/Catwoman.014.2019.Digital.Oracle-SWA/Catwoman 014 (2019) (Digital) (Oracle-SWA).cbr

Settings:
"Are Mylar / SABnzbd on separate machines" is checked; they're in separate containers
"SABnzbd Download Directory" is /downloads/complete/comics
"Enable Completed Download Handling" is checked. Sabnzbd has a category of comics defined, but no script designated
"Enable Post-Processing" is on, and moves files
Under Manual Post Processing, "Path to Manually Run" is set to /downloads/complete/comics, and this works when selected (i.e. comic in nzb folder subdirectory is renamed, moved, and subdirectory is removed)

Log:

Code: Select all

2019-10-25 19:20:04	ERROR	Uncaught exception: Traceback (most recent call last):
File "/app/mylar/mylar/logger.py", line 337, in new_run
old_run(*args, **kwargs)
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/app/mylar/mylar/PostProcessor.py", line 1651, in Process
if dupthis['action'] == 'dupe_src' or dupthis['action'] == 'dupe_file':
TypeError: 'NoneType' object has no attribute '__getitem__'
2019-10-25 19:20:04	WARNING	[DUPECHECK] Make sure if you are using ComicRN, you do not have Completed Download Handling enabled (or vice-versa). Aborting
2019-10-25 19:20:04	WARNING	[DUPECHECK] File cannot be located in location specified. Something has moved or altered the name.
2019-10-25 19:20:04	INFO	[DUPECHECK] Duplicate check for /downloads/complete/comics/Catwoman 014 (2019) (Digital) (Oracle-SWA).cbr/Catwoman 014 (2019) (Digital) (Oracle-SWA).cbr
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING] There are 1 files found that match on your watchlist, 0 files are considered one-off's, and 0 files do not match anything
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING][SUCCESSFUL MATCH: Catwoman-112028] Match verified for Catwoman 014 (2019) (Digital) (Oracle-SWA).cbr
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING][DEFINITIVE-NAME MATCH] Definitive name match exactly to : Catwoman [112028]
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING][CLOCATION] /downloads/complete/comics/Catwoman 014 (2019) (Digital) (Oracle-SWA).cbr
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING][ISSUE-VERIFY][Issue Year MATCH] Issue Year of 2019 is a match to the year found in the filename of : 2019
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING][ISSUE-VERIFY][Lone Volume FAILURE] Volume label of v5 indicates that there is more than one volume for this series, but the one on your watchlist has no volume label set.
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING][ISSUE-VERIFY] Now checking against Catwoman - 112028
2019-10-25 19:20:04	INFO	Now checking: Catwoman [112028]
2019-10-25 19:20:04	DEBUG	series title possibly: Catwoman
2019-10-25 19:20:04	DEBUG	sf_highest_series_pos: [u'Catwoman']
2019-10-25 19:20:04	DEBUG	issue verified as : 014
2019-10-25 19:20:04	DEBUG	issue_position: 1
2019-10-25 19:20:04	DEBUG	issue number :014
2019-10-25 19:20:04	DEBUG	yearposition: 2
2019-10-25 19:20:04	DEBUG	hyphen located at position: 37
2019-10-25 19:20:04	DEBUG	possible_issuenumbers: [{'position': 1, 'validcountchk': False, 'number': u'014', 'mod_position': 9}]
2019-10-25 19:20:04	DEBUG	highest_series_position: 2
2019-10-25 19:20:04	DEBUG	year verified as: 2019
2019-10-25 19:20:04	DEBUG	year verified as : 2019
2019-10-25 19:20:04	DEBUG	sctd: 2019
2019-10-25 19:20:04	DEBUG	datecheck: [{'date': u'2019', 'position': 2, 'mod_position': 13}]
2019-10-25 19:20:04	DEBUG	date: 2019
2019-10-25 19:20:04	DEBUG	checking date : 2019
2019-10-25 19:20:04	DEBUG	NEWLY SPLIT REORGD: [u'Catwoman', u'014', u'(2019)', u'(Digital)', u'(Oracle-SWA)']
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING] Now post-processing directly against ComicID: 112028 / IssueID: 716312
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING] SABnzbd Download folder option enabled. Directory set to : /downloads/complete/comics/Catwoman 014 (2019) (Digital) (Oracle-SWA).cbr
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING] NZB name as passed from SABnzbd: Catwoman 014 (2019) (Digital) (Oracle-SWA).cbr
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING] Using SABnzbd
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING] nzb folder: /downloads/complete/comics/Catwoman.014.2019.Digital.Oracle-SWA
2019-10-25 19:20:04	DEBUG	[POST-PROCESSING] nzb name: Catwoman 014 (2019) (Digital) (Oracle-SWA).cbr
2019-10-25 19:20:04	INFO	Now loading from post-processing queue: {'issueid': u'716312', 'apicall': True, 'nzb_name': u'Catwoman 014 (2019) (Digital) (Oracle-SWA).cbr', 'nzb_folder': u'/downloads/complete/comics/Catwoman.014.2019.Digital.Oracle-SWA', 'failed': False, 'ddl': False, 'comicid': u'112028'}
2019-10-25 19:20:00	DEBUG	Now searching experimental for issue number: 005 to try and ensure all the bases are covered
2019-10-25 19:20:00	INFO	File successfully downloaded - now initiating completed downloading handling.
2019-10-25 19:20:00	INFO	location found @ /downloads/complete/comics/Catwoman.014.2019.Digital.Oracle-SWA/Catwoman 014 (2019) (Digital) (Oracle-SWA).cbr
2019-10-25 19:20:00	INFO	found matching completed item in history. Job has a status of Completed
2019-10-25 19:19:59	INFO	File has now downloaded!
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Post-Processing / Completed Downloading Handling issues

Post by evilhero »

Try blanking out the SABnzbd Directory option within Mylar.

When Mylar encounters that field value, it over-rides what is given to it by SABnzbd and then tries to append on the given filename. I think, possibly, that when that option is enabled and you have CDH enabled (which supplies the full path regardless) - it's truncating at the wrong part. From what I remember (it's been awhile), the different machines option forces the use of a specified download directory, but it's intent was for the ComicRN users that have different physical machines in order to get the correct localized path (as the full path gets passed via CDH regardless).

I haven't been able to do any fixes/patches in the last little while due to some computer problems, but should be able to soon enough when I have the time needed to code it.
Repentant
Posts: 2
Joined: Sat Oct 26, 2019 12:28 am

Re: Post-Processing / Completed Downloading Handling issues

Post by Repentant »

Blanking out "SABnzbd Download Directory" in Settings -> Downloads did the trick. Thank you!
Post Reply