Page 1 of 1

Post Processing Failing

Posted: Thu Oct 08, 2020 1:55 pm
by Jackster1209
Mylar Info

Mylar Version: master
-- git (build eb7188e79801344910e573ba30a6580bd6f76070)
Python Version : 3.7.2
Language : en_US.cp1252


OS: Windows 10 20H2

Running Method: Running using NSSM with the service running under my main admin account for the user.

Issue: Post processing is not working for me. I have it set as pictured below in my screenshot.


https://i.ibb.co/8Y9b6Y4/Mylar-Post-Processing.png


LOG

2020-10-08 09:40:45 INFO [POST-PROCESSING] Post-Processing completed for: Lost Soldiers #1

2020-10-08 09:40:45 INFO [POST-PROCESSING][UPDATER] Updating Status (Post-Processed) now completed for Lost Soldiers issue: 1

2020-10-08 09:40:45 INFO [POST-PROCESSING] move successful to : E:\Comics\Lost Soldiers (2020)\Lost Soldiers #001 (2020).cbr

2020-10-08 09:40:45 INFO [POST-PROCESSING][DIRECTORY-CHECK] Found comic directory: E:\Comics\Lost Soldiers (2020)

2020-10-08 09:40:45 INFO b'Archive failed to export!\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:ComicInfo.xml attempt#1\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:ComicInfo.xml attempt#2\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:ComicInfo.xml attempt#3\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:ComicInfo.xml attempt#4\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:ComicInfo.xml attempt#5\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:ComicInfo.xml attempt#6\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:ComicInfo.xml attempt#7\r\nError reading in Comet XML for validation!\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:Lost Soldiers 01 (of 05)-003.jpg attempt#1\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:Lost Soldiers 01 (of 05)-003.jpg attempt#2\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:Lost Soldiers 01 (of 05)-003.jpg attempt#3\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:Lost Soldiers 01 (of 05)-003.jpg attempt#4\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:Lost Soldiers 01 (of 05)-003.jpg attempt#5\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:Lost Soldiers 01 (of 05)-003.jpg attempt#6\r\nreadArchiveFile(): [[WinError 87] The parameter is incorrect] C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr:Lost Soldiers 01 (of 05)-003.jpg attempt#7\r\nError while copying to C:\\Mylar3\\cache\\mylar_w4zamqi3\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbz: \r\n'

2020-10-08 09:40:30 INFO [POST-PROCESSING] [1/1] Starting Post-Processing for Lost Soldiers issue: 1

2020-10-08 09:40:30 INFO [DUPECHECK] Duplicate check for C:\Mylar3\cache\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr

2020-10-08 09:40:18 INFO Now checking: Lost Soldiers [129106]

2020-10-08 09:40:18 INFO Now loading from post-processing queue: {'nzb_name': 'Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr', 'nzb_folder': 'C:\\Mylar3\\cache\\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr', 'failed': False, 'issueid': '784466', 'comicid': '129106', 'apicall': True, 'ddl': True}

2020-10-08 09:40:18 INFO Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr successfully downloaded - now initiating post-processing for C:\Mylar3\cache\Lost Soldiers 01 (of 05) (2020) (Digital) (Zone-Empire).cbr

2020-10-08 09:39:53 INFO Now loading request from DDL queue: Lost Soldiers #1

2020-10-08 09:39:52 INFO [UPDATER] Updated the status (Snatched) complete for Lost Soldiers Issue: 1

2020-10-08 09:39:52 INFO mylar.COMICINFO: [{'ComicName': 'Lost Soldiers', 'ComicID': '129106', 'IssueID': '784466', 'ComicVolume': None, 'IssueNumber': '1', 'IssueDate': '2020-07-30', 'comyear': '2020', 'pack': False, 'pack_numbers': None, 'pack_issuelist': None, 'modcomicname': 'Lost Soldiers', 'oneoff': False, 'nzbprov': 'ddl', 'provider': 'ddl', 'nzbtitle': 'Lost Soldiers #1 (2020)', 'nzbid': '168568', 'link': 'https://getcomics.info/other-comics/los ... rs-1-2020/', 'size': '42.0 MB', 'tmpprov': 'ddl', 'kind': 'torrent', 'SARC': None, 'IssueArcID': None, 'newznab': None, 'torznab': None}]

2020-10-08 09:39:52 INFO Successfully snatched Lost.Soldiers.#1.(2020) from DDL site. It is currently being queued to download in position 1

Re: Post Processing Failing

Posted: Fri Oct 09, 2020 2:49 am
by evilhero
Did you do the requirements.txt installation as per the readme on the github ?

From some brief googling, it looks like it could be a problem with the version of python you're running. Try upgrading python to a newer build (3.7.5+) and seeing if that corrects the problem. I'm not sure if you're running straight python or something else (like CPython), but upgrading might solve the problem.

Otherwise what you're encountering looks like it's a problem with unrar - which if the above doesn't work, might boil down to seeing what version of winrar / unrar you have on your system, and ensuring that Mylar knows that's where they are.

But definitely try to upgrade - we've had some funky stuff happen with some builds of python that trail nearby the 3.7.2 branch, so I wouldn't be surprised if trying a newer version fixes everything.

Re: Post Processing Failing

Posted: Fri Oct 09, 2020 5:20 am
by Jackster1209
Upgrading Python worked for me! I upgraded to 3.7.9, restarted both Mylar and SABNZBD, and it worked just fine after that. Thank you very much.

Re: Post Processing Failing

Posted: Tue Oct 13, 2020 7:35 pm
by polybius
Mylar Version: master [v0.4.3 - Oh my stars and garters!]
-- source (build 3af6bb19fec0d2426d076ae574a3523a7a12ad6e)
Python Version : 3.8.1
Language : en_US.cp1252
OS: Windows Server 2016

If I could tag along here, I'm having the same issue. I can see that it makes a temp folder in mylar\cache and it looks like it attempts to convert to CBZ but fails with a similar error message in the logs. If it would resolve the issue, how would I point Mylar to an unrar executable? I couldn't tell the possible syntax required in the config file (if that's where you set it).

Thanks!

Re: Post Processing Failing

Posted: Wed Oct 14, 2020 2:26 pm
by evilhero
Latest master version is v0.4.6 - so you're a few updates behind. Important, because there were some recent fixes/patches after 0.4.3 that fixed some of the unrar / rar related issues people were having and saves them having to edit the ini file in most cases.

I would suggest updating to the latest master. Then put Mylar into debug mode (either by starting Mylar with the -v switch, or going into the HIstory tab / View Logs / Toggle Verbose Logging ON ), and once in debug mode attempt to replicate the error again. If it errors out, you can then either paste the log somewhere for us to see via a link (ie. pastebin), or you paste your carepackage file somewhere accessible (on the Configuration tab, there's a CarePackage button in the upper right that zips up your db file, attaches your api-cleaned logs, and also attaches your cleaned config.ini). Once we can see the full error(s) that you're getting it can be looked into more as to the cause of the problem.

Re: Post Processing Failing

Posted: Thu Oct 15, 2020 2:08 am
by polybius
I updated and it still happens :(

Here's the carepackage. Thanks again for your help! I really appreciate how engaged you are with us!

https://www.dropbox.com/s/b1j51enltxf9c ... e.zip?dl=0

Re: Post Processing Failing

Posted: Thu Oct 15, 2020 4:09 am
by evilhero
@polybius,

I'm not sure if you read the github page or not (most don't I know, so I thought I'd paste it here just in case):
  • Unrar is required to be on the system for ComicTagger integration to work (or RaR will work as well on Windows systems). If Unrar/RaR is not in the system path, the full path to the binary must be specified in the rar_exe_path field in .ComicTagger/settings located in either the root of Mylar or the user's home directory.
Make sure Mylar isn't running before you do any of the following.

So in your config.ini, you have your ComicTagger settings folder set to: C:\Services\mylar\.ComicTagger

If you browse to that directory, you should see a file called settings. If you open it up in Notepad or some other text editor (it's just a text file), you'll see some settings therein.

Find the rar_exe_path line and add in the full path to your winrar executable (ie. if you have winrar on your system it would be something like : rar_exe_path = C:\Program Files\WinRAR\Rar.exe).

Once you have it changed, save the file. Then start up Mylar and see if you can metatag an item - either manually for an a given issue that's already in a Downloaded status (from the series detail page of a given series), or by downloading something.

Re: Post Processing Failing

Posted: Thu Oct 15, 2020 5:00 am
by polybius
That was it! It did seem like it just couldn't do the actual unraring but I wasn't sure. Thanks!