Page 2 of 2

Re: nzb not added to queue, download does not start [SmartOS

Posted: December 3rd, 2014, 1:12 am
by sander
That's strange: I changed to code to this:

Code: Select all

@synchronized(DIR_LOCK)
def create_dirs(dirpath):
    """ Create directory tree, obeying permissions """
    if not os.path.exists(dirpath):
        logging.info('Creating directories: %s', dirpath)
        if not create_all_dirs(dirpath, True):
            logging.error(Ta('Failed making (%s)'), dirpath)
            return None
        logging.info('Creating directories ... done: %s', dirpath)
        raise Exception('spam', 'eggs')
    return dirpath
I would expect the raise the dump the calling sequence of procedures. However ... SABnzbd hangs:

Code: Select all

2014-12-03 07:06:54,451::INFO::[urlgrabber:77] URLGrabber starting up
2014-12-03 07:07:11,924::INFO::[__init__:627] Adding avi (7).nzb
2014-12-03 07:07:11,926::INFO::[misc:806] Creating directories: /home/sander/Downloads/incomplete/avi (7)
2014-12-03 07:07:11,927::INFO::[misc:810] Creating directories ... done: /home/sander/Downloads/incomplete/avi (7)
... and then nothing. So ... have I created the same / similar problem as you have?

Strange. I have to think about this.

Re: nzb not added to queue, download does not start [SmartOS

Posted: December 3rd, 2014, 5:27 pm
by n_goossens
Thanks for the help up to now, please let me know if I can help anywhere!

Re: nzb not added to queue, download does not start [SmartOS

Posted: December 4th, 2014, 1:17 pm
by sander
I tried some things (python tracing, @syncrhonized versus raise), but no luck. The only thing I can think is placing more logging.info() lines, and so find the hanging position.