Import not creating CBZ

Post any problems / bugs / issues that are Mylar-related in here.
User avatar
oldirtdog
Posts: 61
Joined: Fri Nov 04, 2016 7:52 pm

Re: Import not creating CBZ

Post by oldirtdog »

no, it's fine... I think our issues are very similar, so they can be discussed in parallel... I'm not sure our solution will be the same, but it's worth having it down... as for another topic, I don't think he's going to have much luck in this particular thread :)
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Import not creating CBZ

Post by evilhero »

Yeah, I mean you can post in here about related issues - but generally speaking when I look quickly at the list of open items, and I see something based on the topic I relate all items to the given topic. So if someone posts something off-topic in the thread, the odds of me actually addressing it or even referencing it, goes way down as I might think the issue has been fixed, but there's another, completely different issue inside still.

But here's some info:
@dosaceos: check your config.ini and see what the value for your cache_dir is set to. It looks like you don't have a trailing slash which might be causing the problem with the actual extraction path. Try adding on a '\' to the end of the cache_dir field in the config.ini (with Mylar not running of course). Mylar is putting in a '/', which is obviously wrong for the OS, but the '/' acts like a non-directory seperator, so it might appear that the path is actually way different than what it's trying to metatag.

@oldirtdog: the comictagger.py script you're running is exactly the same as what Mylar uses, so it's interesting that it works from the CLI but not from within Mylar. It could suggest either a library problem of some kind (perhaps different versions), or even a permissions problem when it comes to accessing something. Are you just performing a ComicBookLover tagging or a ComicBookRack tagging as well ? If you can, in the mylar/cmtagmylar.py file (not the .pyc), edit the file and find line 241:

Code: Select all

logger.warn(module + '[COMIC-TAGGER][CBR-TO-CBZ] Failed to convert cbr to cbz - check permissions on...
tidyup(og_filepath, new_filepath, new_folder, manualmeta)
when you find that line, put a # in front of the tidyup line, so it looks like:

Code: Select all

logger.warn(module + '[COMIC-TAGGER][CBR-TO-CBZ] Failed to convert cbr to cbz - check permissions on...
#tidyup(og_filepath, new_filepath, new_folder, manualmeta)
That will tell Mylar not to delete the file on a failed conversion so that you can actually see the contents of the cache directory and hopefully figure out what's going on.
dosaceos
Posts: 15
Joined: Fri Oct 09, 2015 1:10 pm

Re: Import not creating CBZ

Post by dosaceos »

No dice, swapped the slash but didn't seem to make a difference.

Code: Select all

04-Sep-2018 11:43:35 - INFO    :: mylar.duplicate_filecheck.2089 : Thread-17 : [DUPECHECK] Duplicate check for B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire\Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr
04-Sep-2018 11:43:35 - INFO    :: mylar.duplicate_filecheck.2120 : Thread-17 : [DUPECHECK] Existing Status already set to Downloaded
04-Sep-2018 11:43:35 - INFO    :: mylar.duplicate_filecheck.2149 : Thread-17 : [DUPECHECK] Existing file within db :Hunt For Wolverine 1 (2018).cbz has a filesize of : 76740483 bytes.
04-Sep-2018 11:43:35 - DEBUG   :: mylar.duplicate_filecheck.2164 : Thread-17 : [DUPECHECK] Based on duplication preferences I will retain based on : filesize
04-Sep-2018 11:43:35 - INFO    :: mylar.duplicate_filecheck.2212 : Thread-17 : [DUPECHECK-FILESIZE PRIORITY] [#1] Retaining currently scanned in filename : Hunt For Wolverine 1 (2018).cbz
04-Sep-2018 11:43:35 - INFO    :: mylar.duplicate_filecheck.2089 : Thread-17 : [DUPECHECK] Duplicate check for B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire\Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr
04-Sep-2018 11:43:35 - INFO    :: mylar.duplicate_filecheck.2221 : Thread-17 : [DUPECHECK] Duplication detection returned no hits. This is not a duplicate of anything that I have scanned in as of yet.
04-Sep-2018 11:43:35 - INFO    :: mylar.Process_next.1717 : Thread-17 : [POST-PROCESSING] [2/4] Starting Post-Processing for Hunt For Wolverine: Dead Ends issue: 1
04-Sep-2018 11:43:35 - DEBUG   :: mylar.Process_next.1720 : Thread-17 : [POST-PROCESSING] issueid: 682657
04-Sep-2018 11:43:41 - DEBUG   :: mylar.Startit.75 : CP Server Thread-9 : Now searching experimental for issue number: 001 to try and ensure all the bases are covered
04-Sep-2018 11:43:50 - DEBUG   :: mylar.Process_next.1721 : Thread-17 : [POST-PROCESSING] issuenumOG: 1
04-Sep-2018 11:43:50 - DEBUG   :: mylar.Process_next.1801 : Thread-17 : [POST-PROCESSING] Zero Suppression set to : none
04-Sep-2018 11:43:50 - DEBUG   :: mylar.Process_next.1828 : Thread-17 : issue detected less than 10
04-Sep-2018 11:43:50 - DEBUG   :: mylar.Process_next.1839 : Thread-17 : Zero level supplement set to none. Issue will be set as : 1
04-Sep-2018 11:43:50 - DEBUG   :: mylar.Process_next.1873 : Thread-17 : [POST-PROCESSING] Pretty Comic Issue is : 1
04-Sep-2018 11:43:51 - DEBUG   :: mylar.Process_next.1876 : Thread-17 : [POST-PROCESSING] Issue Year : 2018
04-Sep-2018 11:43:51 - DEBUG   :: mylar.Process_next.1883 : Thread-17 : [POST-PROCESSING] Publisher: Marvel
04-Sep-2018 11:43:51 - DEBUG   :: mylar.Process_next.1887 : Thread-17 : [POST-PROCESSING] Series: Hunt For Wolverine: Dead Ends
04-Sep-2018 11:43:51 - DEBUG   :: mylar.Process_next.1895 : Thread-17 : [POST-PROCESSING] Year: 2018
04-Sep-2018 11:43:51 - DEBUG   :: mylar.Process_next.1898 : Thread-17 : [POST-PROCESSING] Comic Location: B:\Media\Comics\Hunt For Wolverine Dead Ends (2018)
04-Sep-2018 11:43:51 - DEBUG   :: mylar.Process_next.1901 : Thread-17 : [POST-PROCESSING] Comic Version: None
04-Sep-2018 11:43:51 - DEBUG   :: mylar.Process_next.1910 : Thread-17 : [POST-PROCESSING] No version # found for series, removing from filename
04-Sep-2018 11:43:51 - DEBUG   :: mylar.Process_next.1911 : Thread-17 : [POST-PROCESSING] New format is now: $Series $Issue ($Year)
04-Sep-2018 11:43:51 - DEBUG   :: mylar.Process_next.1919 : Thread-17 : [POST-PROCESSING] Not an annual - removing from filename parameters
04-Sep-2018 11:43:51 - DEBUG   :: mylar.Process_next.1920 : Thread-17 : [POST-PROCESSING] New format: $Series $Issue ($Year)
04-Sep-2018 11:43:51 - DEBUG   :: mylar.Process_next.1987 : Thread-17 : [POST-PROCESSING] Metatagging enabled - proceeding...
04-Sep-2018 11:43:51 - DEBUG   :: mylar.run.26 : Thread-17 : [META-TAGGER] dirName:B:\Admin\Downloads\complete
04-Sep-2018 11:43:51 - DEBUG   :: mylar.run.31 : Thread-17 : ComicTagger Path location for internal comictagger.py set to : C:\Program Files (x86)\mylar-development\comictagger.py
04-Sep-2018 11:43:51 - DEBUG   :: mylar.run.35 : Thread-17 : [META-TAGGER] Filename is : B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire\Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr
04-Sep-2018 11:43:51 - DEBUG   :: mylar.run.50 : Thread-17 : Filepath: B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire\Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr
04-Sep-2018 11:43:51 - DEBUG   :: mylar.run.51 : Thread-17 : Filename: Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr
04-Sep-2018 11:43:51 - DEBUG   :: mylar.run.53 : Thread-17 : New_Folder: C:\Program Files (x86)\mylar-development\cache\mylar_fen7tc
04-Sep-2018 11:43:51 - DEBUG   :: mylar.run.55 : Thread-17 : New_Filepath: C:\Program Files (x86)\mylar-development\cache\mylar_fen7tc\Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr
04-Sep-2018 11:43:52 - DEBUG   :: mylar.run.73 : Thread-17 : [META-TAGGER] Paths / Locations:
04-Sep-2018 11:43:52 - DEBUG   :: mylar.run.74 : Thread-17 : [META-TAGGER] scriptname : Mylar.py
04-Sep-2018 11:43:52 - DEBUG   :: mylar.run.75 : Thread-17 : [META-TAGGER] downloadpath : B:\Admin\Downloads\complete
04-Sep-2018 11:43:52 - DEBUG   :: mylar.run.76 : Thread-17 : [META-TAGGER] sabnzbdscriptpath : C:\Program Files (x86)\mylar-development
04-Sep-2018 11:43:58 - DEBUG   :: mylar.Startit.190 : CP Server Thread-9 : No Results Found
04-Sep-2018 11:43:59 - DEBUG   :: mylar.run.77 : Thread-17 : [META-TAGGER] comicpath : C:\Program Files (x86)\mylar-development\cache\mylar_fen7tc
04-Sep-2018 11:43:59 - INFO    :: mylar.search_init.366 : CP Server Thread-9 : Could not find Issue 1 of Web of Venom: Ve'Nam (2018) using experimental [api]
04-Sep-2018 11:43:59 - DEBUG   :: mylar.run.78 : Thread-17 : [META-TAGGER] Running the ComicTagger Add-on for Mylar
04-Sep-2018 11:44:00 - DEBUG   :: mylar.run.119 : Thread-17 : [META-TAGGER] ComicTagger 1.25.1 [ninjas.walk.alone / SHURIKEN]
 being used - using personal ComicVine API key supplied via mylar.
04-Sep-2018 11:44:00 - DEBUG   :: mylar.run.131 : Thread-17 : [META-TAGGER] CR Tagging enabled.
04-Sep-2018 11:44:00 - DEBUG   :: mylar.run.136 : Thread-17 : [META-TAGGER] CBL Tagging enabled.
04-Sep-2018 11:44:00 - DEBUG   :: mylar.run.190 : Thread-17 : [META-TAGGER] Enabling ComicTagger script: ['C:\\Python27\\python.exe', 'C:\\Program Files (x86)\\mylar-development\\comictagger.py'] with options: ['-e', '--delete-rar', u'C:\\Program Files (x86)\\mylar-development\\cache\\mylar_fen7tc\\Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr']
04-Sep-2018 11:44:04 - DEBUG   :: mylar.run.198 : Thread-17 : [META-TAGGER] Executing command: ['C:\\Python27\\python.exe', 'C:\\Program Files (x86)\\mylar-development\\comictagger.py', '-e', '--delete-rar', u'C:\\Program Files (x86)\\mylar-development\\cache\\mylar_fen7tc\\Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr']
04-Sep-2018 11:44:04 - DEBUG   :: mylar.run.199 : Thread-17 : [META-TAGGER] Absolute path to script: C:\Python27\python.exe
04-Sep-2018 11:44:05 - WARNING :: mylar.run.241 : Thread-17 : [META-TAGGER][COMIC-TAGGER][CBR-TO-CBZ] Failed to convert cbr to cbz - check permissions on folder : C:\Program Files (x86)\mylar-development\cache\ and/or the location where Mylar is trying to tag the files from.
04-Sep-2018 11:44:05 - DEBUG   :: mylar.Process_next.2008 : Thread-17 : [POST-PROCESSING] Unable to write metadata successfully - check mylar.log file. Attempting to continue without tagging...
04-Sep-2018 11:44:05 - DEBUG   :: mylar.Process_next.2091 : Thread-17 : [POST-PROCESSING] ofilename:Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr
04-Sep-2018 11:44:16 - DEBUG   :: mylar.Process_next.2099 : Thread-17 : [POST-PROCESSING] odir: B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire
04-Sep-2018 11:44:16 - DEBUG   :: mylar.Process_next.2100 : Thread-17 : [POST-PROCESSING] ofilename: Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr
04-Sep-2018 11:44:16 - DEBUG   :: mylar.Process_next.2102 : Thread-17 : [POST-PROCESSING] ext:.cbr
04-Sep-2018 11:44:16 - DEBUG   :: mylar.Process_next.2112 : Thread-17 : [POST-PROCESSING] Original Filename: Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr [.cbr]
04-Sep-2018 11:44:16 - DEBUG   :: mylar.Process_next.2130 : Thread-17 : [POST-PROCESSING] New Filename: Hunt For Wolverine Dead Ends 1 (2018)
04-Sep-2018 11:44:17 - INFO    :: mylar.validateAndCreateDirectory.1369 : Thread-17 : [POST-PROCESSING][DIRECTORY-CHECK] Found comic directory: B:\Media\Comics\Hunt For Wolverine Dead Ends (2018)
04-Sep-2018 11:44:17 - DEBUG   :: mylar.Process_next.2147 : Thread-17 : [POST-PROCESSING] Source: B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire\Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr
04-Sep-2018 11:44:17 - DEBUG   :: mylar.Process_next.2148 : Thread-17 : [POST-PROCESSING] Destination: B:\Media\Comics\Hunt For Wolverine Dead Ends (2018)\Hunt For Wolverine Dead Ends 1 (2018).cbr
04-Sep-2018 11:44:17 - DEBUG   :: mylar.Process_next.2195 : Thread-17 : [POST-PROCESSING] Renaming B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire\Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr
04-Sep-2018 11:44:17 - DEBUG   :: mylar.Process_next.2199 : Thread-17 : [POST-PROCESSING] odir src : B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire\Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr
04-Sep-2018 11:44:17 - DEBUG   :: mylar.Process_next.2200 : Thread-17 : [POST-PROCESSING][move] B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire\Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr ... to ... B:\Media\Comics\Hunt For Wolverine Dead Ends (2018)\Hunt For Wolverine Dead Ends 1 (2018).cbr
04-Sep-2018 11:44:17 - DEBUG   :: mylar.get_free_space.3479 : Thread-17 : [FREESPACE-CHECK] B:\Media\Comics\Hunt For Wolverine Dead Ends (2018) has 1.1TiB free
04-Sep-2018 11:44:17 - INFO    :: mylar.Process_next.2217 : Thread-17 : [POST-PROCESSING] move successful to : B:\Media\Comics\Hunt For Wolverine Dead Ends (2018)\Hunt For Wolverine Dead Ends 1 (2018).cbr
04-Sep-2018 11:44:17 - DEBUG   :: mylar.tidyup.223 : Thread-17 : File Option: move [META-ENABLED: True]
04-Sep-2018 11:44:17 - DEBUG   :: mylar.tidyup.224 : Thread-17 : odir: B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire [filename: Hunt for Wolverine - Dead Ends 001 (2018) (Digital) (Zone-Empire).cbr][self.nzb_folder: B:\Admin\Downloads\complete]
04-Sep-2018 11:44:18 - DEBUG   :: mylar.tidyup.225 : Thread-17 : sub_path: B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire [cacheonly: False][del_nzbdir: True]
04-Sep-2018 11:44:18 - DEBUG   :: mylar.tidyup.229 : Thread-17 : Sub-directory detected during cleanup. Will attempt to remove if empty: B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire
04-Sep-2018 11:44:18 - DEBUG   :: mylar.tidyup.252 : Thread-17 : [POST-PROCESSING] Tidying up. Deleting sub-folder location : B:\Admin\Downloads\complete\Hunt.for.Wolverine.-.Dead.Ends.001.2018.Digital.Zone-Empire
04-Sep-2018 11:44:18 - DEBUG   :: mylar.totals.1580 : Thread-17 : totalfiles: 1
04-Sep-2018 11:44:18 - DEBUG   :: mylar.totals.1581 : Thread-17 : status: Snatched
04-Sep-2018 11:44:18 - DEBUG   :: mylar.totals.1594 : Thread-17 : incremented havefiles: 1
04-Sep-2018 11:44:18 - DEBUG   :: mylar.foundsearch.717 : Thread-17 : [POST-PROCESSING][UPDATER] comicid: 113074
04-Sep-2018 11:44:18 - DEBUG   :: mylar.foundsearch.718 : Thread-17 : [POST-PROCESSING][UPDATER] issueid: 682657
04-Sep-2018 11:44:18 - INFO    :: mylar.foundsearch.857 : Thread-17 : [POST-PROCESSING][UPDATER] Setting status to Post-Processed in history.
04-Sep-2018 11:44:18 - INFO    :: mylar.foundsearch.914 : Thread-17 : [POST-PROCESSING][UPDATER] Updating Status (Post-Processed) now complete for Hunt For Wolverine: Dead Ends issue: 1
04-Sep-2018 11:44:18 - DEBUG   :: mylar.Process_next.2266 : Thread-17 : writing: {'Status': 'Downloaded', 'Location': u'Hunt For Wolverine Dead Ends 1 (2018).cbr'} -- {'IssueID': u'682657'}
04-Sep-2018 11:44:18 - INFO    :: mylar.Process_next.2364 : Thread-17 : [POST-PROCESSING] Post-Processing completed for: Hunt For Wolverine: Dead Ends #1
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Import not creating CBZ

Post by evilhero »

I just noticed now, that both of you guys are moving items from a storage location, to the cache location on a different drive possibly (cause it moves the cbr/cbz file from the original location to the cache folder to metatag), and then Mylar moves it from the cache to the series location.

In most of those particular cases, it's a permissions problem - whether the user running Mylar doesn't have enough permissions in order to create/delete in the cache location, or doesn't have enough permission to remove from the original location (as Mylar will move the file from the original location to the cache folder, if you're post-processing action is set to move) as a move is basically a copy / remove.

Can both of you verify this - an easy way to do this perform a manual post-processing against a folder that's located on the same drive (or roughly location) as where the cache folder is located. So find a cbr file that needs to get metatagged, manually move it into a newly created directory as indicated above, then set the manual post-processing location to that newly created directory (Manage tab / Manual Post-Processing). If my hunch is correct, the post-processing should succeed and tag properly.
Post Reply