Not Postprocessing, Exit1

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
beefmo
Posts: 3
Joined: Wed Apr 30, 2014 3:26 am

Not Postprocessing, Exit1

Post by beefmo »

I think the ComicRN.py script isn't working for me. Sabnzbd returns with "Exit(1)" and the comic files aren't moved to their respective series folders or renamed.
post processing is enabled, I have edited the cfg file to include the mylar connection settings, and i have left the sabnzbd directory setting in mylar blank.
I have my stuff set up so that the folder where Sabnzbd dumps all downloads is in the same directory where the Series folders are located.
I'm on the development build df4f897b8204f1937a5f61b4857eb359a4cd87cf
Why aren't my files being processed?

Here's what Mylar log says

Code: Select all

29-Apr-2014 20:53:27 - INFO    :: CP Server Thread-7 : Starting postprocessing for : All-Star Superman 012 (2008) (Digital) (Zone-Empire)
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : nzb name: All-Star Superman 012 (2008) (Digital) (Zone-Empire)
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : nzb folder: C:\Users\Alex\COMICS
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : After conversions, nzbname is : All-Star.Superman.012.(2008).(Digital).(Zone-Empire)
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : issueid:139029
29-Apr-2014 20:53:27 - INFO    :: CP Server Thread-7 : issuenzb found.
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : issueid: 139029
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : issuenumOG: 12
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : Zero Suppression set to : none
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : Pretty Comic Issue is : 12
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : Issue Year : 2008
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : Publisher: DC Comics
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : Series: All Star Superman
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : Year: 2006
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : Comic Location: c:\users\alex\comics\All Star Superman (2006)
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : Comic Version: None
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : No version # found for series, removing from filename
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : new format is now: $Series $Issue ($Year)
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : not an annual - removing from filename paramaters
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : new format: $Series $Issue ($Year)
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : Metatagging enabled - proceeding...
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : dirName:C:\Users\Alex\COMICS
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : ---directory settings.
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : scriptname : mylar.py
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : downloadpath : C:\Users\Alex\COMICS
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : sabnzbdscriptpath : c:\Users\Alex\Desktop\mylar-development
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : comicpath : C:\Users\Alex\COMICS\temp
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : unrar_folder : C:\Users\Alex\COMICS\temp\unrard
29-Apr-2014 20:53:27 - DEBUG   :: CP Server Thread-7 : Running the Post-SabNZBd/Mylar script
Here's what I get from Sabnzbd, if it means anything

Code: Select all


All-Star Superman 012 (2008) (Digital) (Zone-Empire)

           Loading config from C:\Users\Alex\Desktop\mylar-development\sabnzbd\autoProcessComics.cfg
Opening URL: http://192.168.1.26:8090/post_process?nzb_name=All-Star+Superman+012+%282008%29+%28Digital%29+%28Zone-Empire%29&nzb_folder=C%3A%5CUsers%5CAlex%5CCOMICS
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>

    <title>500 Internal Server Error</title>

    <style type="text/css">

    #powered_by {

        margin-top: 20px;

        border-top: 2px solid black;

        font-style: italic;

    }



    #traceback {

        color: red;

    }

    </style>

</head>

    <body>

        <h2>500 Internal Server Error</h2>

        <p>The server encountered an unexpected condition which prevented it from fulfilling the request.</p>

        <pre id="traceback">Traceback (most recent call last):

  File "c:\Users\Alex\Desktop\mylar-development\cherrypy\_cprequest.py", line 645, in respond

    response.body = self.handler()

  File "c:\Users\Alex\Desktop\mylar-development\cherrypy\lib\encoding.py", line 188, in __call__

    self.body = self.oldhandler(*args, **kwargs)

  File "c:\Users\Alex\Desktop\mylar-development\cherrypy\_cpdispatch.py", line 29, in __call__

    return self.callable(*self.args, **self.kwargs)

  File "c:\Users\Alex\Desktop\mylar-development\mylar\webserve.py", line 473, in post_process

    result = PostProcess.Process()

  File "c:\Users\Alex\Desktop\mylar-development\mylar\PostProcessor.py", line 454, in Process

    return self.Process_next(comicid,issueid,issuenumOG)

  File "c:\Users\Alex\Desktop\mylar-development\mylar\PostProcessor.py", line 632, in Process_next

    pcheck = cmtagmylar.run(self.nzb_folder, issueid=issueid)

  File "c:\Users\Alex\Desktop\mylar-development\mylar\cmtagmylar.py", line 94, in run

    shutil.rmtree( comicpath )

  File "C:\Python27\lib\shutil.py", line 256, in rmtree

    onerror(os.rmdir, path, sys.exc_info())

  File "C:\Python27\lib\shutil.py", line 254, in rmtree

    os.rmdir(path)

WindowsError: [Error 32] The process cannot access the file because it is being used by another process: u'C:\\Users\\Alex\\COMICS\\temp'

</pre>

    <div id="powered_by">

    <span>Powered by <a href="http://www.cherrypy.org">CherryPy 3.2.0</a></span>

    </div>

    </body>

</html>

Last edited by beefmo on Wed Apr 30, 2014 8:44 pm, edited 1 time in total.
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Not Postprocessing, Exit1

Post by evilhero »

It's failing on the attempt to create the series directory (that's the next step after the 'Running the Post-SabNZBd/Mylar script' line).

It can't create the /temp directory that's required for meta-tagging.

This line:

Code: Select all

29-Apr-2014 20:53:27 - DEBUG :: CP Server Thread-7 : downloadpath : C:\Users\Alex\COMICS
should be something like:

Code: Select all

29-Apr-2014 20:53:27 - DEBUG :: CP Server Thread-7 : downloadpath : C:\Users\Alex\COMICS\All-Star Superman 012 (2008) (Digital) (Zone-Empire)
It could be a number of reasons why, but that's one of the things that strikes me as possibly causing a problem.

I'm pretty sure that your SABnzbd isn't set to create directories for downloaded releases, which is causing a problem since it tries to create the \temp directory in the downloadpath root (C:\Users\Alex\Comics).

You may want to have a 'seperate' download directory for your comics other than your comic location path - although I'm pretty sure that's not the cause of things, it probably doesn't help if you have failed downloads and the post-processing cannot remove the directories when required.
beefmo
Posts: 3
Joined: Wed Apr 30, 2014 3:26 am

Re: Not Postprocessing, Exit1

Post by beefmo »

I changed the Sabnzbd directory to (g:\media\comics).
It seems like a release directory is created, and inside it a temp folder is created now, but the comics still aren't being moved into my comic library directory (c:\users\alex\comics).

Here's a new log

Code: Select all

30-Apr-2014 13:22:39 - INFO    :: CP Server Thread-3 : Starting postprocessing for : Batman 006 (2012) (5 covers) (theProletariat-Novus)
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : nzb name: Batman 006 (2012) (5 covers) (theProletariat-Novus)
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : nzb folder: g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : After conversions, nzbname is : Batman.006.(2012).(5.covers).(theProletariat-Novus)
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : issueid:315632
30-Apr-2014 13:22:40 - INFO    :: CP Server Thread-3 : issuenzb found.
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : issueid: 315632
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : issuenumOG: 6
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : Zero Suppression set to : none
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : Pretty Comic Issue is : 6
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : Issue Year : 2012
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : Publisher: DC Comics
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : Series: Batman
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : Year: 2011
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : Comic Location: c:\users\alex\comics\Batman (2011)
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : Comic Version: v2
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : not an annual - removing from filename paramaters
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : new format: $Series $Issue ($Year)
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : Metatagging enabled - proceeding...
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : dirName:g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : ---directory settings.
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : scriptname : mylar.py
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : downloadpath : g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : sabnzbdscriptpath : 
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : comicpath : g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)\temp
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : unrar_folder : g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)\temp\unrard
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : Running the Post-SabNZBd/Mylar script
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : attempting to create directory @: g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)\temp
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : created directory @ : g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)\temp
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : filename is : None
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : mylar.py: converting Batman 006 (2012) (5 covers) (theProletariat-Novus).cbr to be zip format
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : {0}: Comicpath is g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)\temp\Batman 006 (2012) (5 covers) (theProletariat-Novus).rar
30-Apr-2014 13:22:40 - DEBUG   :: CP Server Thread-3 : {0}: Unrar is g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)\temp\unrard
30-Apr-2014 13:22:42 - DEBUG   :: CP Server Thread-3 : file exists in given location already.
30-Apr-2014 13:22:42 - DEBUG   :: CP Server Thread-3 : converted directory: g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)\temp
30-Apr-2014 13:22:42 - DEBUG   :: CP Server Thread-3 : converted filename: Batman 006 (2012) (5 covers) (theProletariat-Novus).cbz
30-Apr-2014 13:22:42 - DEBUG   :: CP Server Thread-3 : destination path: g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)\Batman 006 (2012) (5 covers) (theProletariat-Novus).cbz
30-Apr-2014 13:22:42 - DEBUG   :: CP Server Thread-3 : dirName: g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)
30-Apr-2014 13:22:42 - DEBUG   :: CP Server Thread-3 : absDirName: g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus)
Any ideas?
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Not Postprocessing, Exit1

Post by evilhero »

Well it's either getting hung up on one of two things, in sequential order - either the meta-tagging, or the actual move from the temp directory back to the original directory ( g:\media\comics\Batman 006 (2012) (5 covers) (theProletariat-Novus) ).

So let's make sure you have comictagger installed and working properly.

Firstly, how do you have comictagger installed on your machine? (I'm assuming you have it installed - but the path you enter in for the location of the program within Mylar could be the cause of it ... meaning it can't locate it properly) If you have it located in 'C:\Program Files (x86)\ComicTagger' then that's what you would put in to the ComicTagger Location field within the Mylar configuration. There is brief instructions on how to setup ComicTagger for use with Mylar here

Once we can determine that ComicTagger is working ok, and it's working with Mylar - then we go from there ;)
beefmo
Posts: 3
Joined: Wed Apr 30, 2014 3:26 am

Re: Not Postprocessing, Exit1

Post by beefmo »

Wow I can't believe that was the root of the issue; I just had to fix a few typos in the comictagger directory field. Everything's now fixed. kind of embarrassing haha.
Thanks for taking your time, awesome work!
Post Reply