Page 1 of 2

nzb not added to queue, download does not start [SmartOS]

Posted: November 28th, 2014, 7:49 pm
by n_goossens
Hello,

My SABnzbd install does not queue and start downloads. The software is running and my usenet provider tests successfully. However, when I add an nzb (any nzb), I see a directory in the incomplete folder is created, but the download is not added to the queue. Logging is set to debug, but the only entry it shows is "Creating directories: /export/shared/incomplete/[nzbname]"

Please help!

Version 0.7.20
OS: SunOS 5.11 joyent_20141113T164921Z i86pc i386 i86pc Solaris
Install type: python source

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

Posted: November 29th, 2014, 4:18 am
by shypike
Do you get any warnings?
Are you using a pre-queue script?
Check Config->Folders

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

Posted: November 29th, 2014, 4:44 am
by n_goossens
No warnings. Logging is set to debug.
No pre-queue script.
In folders, temp download and complete download location are set, permissions for completed downloads set to 777 to be sure.

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

Posted: November 29th, 2014, 11:38 am
by shypike
If you have debug logging on, inspect the log file just after an NZB failed to load.
Download the file from the Status page and start at the bottom.

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

Posted: November 29th, 2014, 12:52 pm
by n_goossens
NZBs are never added to the queue in the first place.

Steps:
1. I choose "choose file" from the Add section on the Home tab, select an NZB and click Add
2. In the log file, I see:
2014-11-29 09:46:44,496::INFO::[__init__:628] Adding [nzname].nzb
2014-11-29 09:46:44,498::INFO::[misc:811] Creating directories: /export/shared/incomplete/[nzbname]

That's it. The nzb is never added to the queue. The Queue tab is empty. No other entries in the log file, no errors. On the status page, there is nothing.

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

Posted: November 29th, 2014, 1:43 pm
by shypike
Did you really enable Debug logging?
There should be more information.

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

Posted: November 29th, 2014, 3:39 pm
by n_goossens
2014-11-28 20:59:17,475::INFO::[SABnzbd:1597] Starting SABnzbd.py-0.7.20
2014-11-28 20:59:17,475::DEBUG::[__init__:346] Starting postprocessor
2014-11-28 20:59:17,476::DEBUG::[__init__:349] Starting assembler
2014-11-28 20:59:17,476::DEBUG::[__init__:352] Starting downloader
2014-11-28 20:59:17,477::DEBUG::[scheduler:188] Starting scheduler
2014-11-28 20:59:17,478::DEBUG::[__init__:357] Starting dirscanner
2014-11-28 20:59:17,478::INFO::[dirscanner:277] Dirscanner starting up
2014-11-28 20:59:17,479::DEBUG::[__init__:364] Starting urlgrabber
2014-11-28 20:59:17,479::INFO::[urlgrabber:77] URLGrabber starting up
2014-11-28 23:37:00,077::INFO::[__init__:628] Adding QxZGzCx7gCzxQOd7ODGA.nzb
2014-11-28 23:37:00,079::INFO::[misc:811] Creating directories: /export/shared/incomplete/QxZGzCx7gCzxQOd7ODGA

And that's the last log entry..

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

Posted: November 29th, 2014, 5:11 pm
by shypike
Can you email one of the failing NZB files
to bugs@sabnzbd.org ?
(Please add the URL of this post.)

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

Posted: November 30th, 2014, 4:14 am
by shypike
The NZB files are of course fine, since they load on your Mac.
I missed the part where you said that you run SABnzbd on SunOS.
Which version of Python are you using?
I assume you installed yEnc and Cheetah?
And use SABnzbd's own CherryPy?

Which SunOS is that, where did you get it?

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

Posted: December 1st, 2014, 4:54 pm
by n_goossens
This is SmartOS (smartos.org), a Solaris clone based on Illumos. It's a hypervisor offering zones (like Docker) and has KVM support. My SABnzbd install runs in a zone.

[root@sabnzbd ~/.sabnzbd/logs]# python --version
Python 2.7.8

[root@sabnzbd ~/.sabnzbd/logs]# cheetah --version
2.4.4

[root@sabnzbd ~/.sabnzbd/logs]# yencode --version
yencode - yencode 0.46

I didn't install cherrypy so assuming I am using the SABnzbd's own version.

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

Posted: December 1st, 2014, 5:15 pm
by sander
n_goossens wrote: 2014-11-28 23:37:00,079::INFO::[misc:811] Creating directories: /export/shared/incomplete/QxZGzCx7gCzxQOd7ODGA

And that's the last log entry..
Is /export/shared/ NOT a local disk, but a network share or disk share in another zone/container?

And does that directory /export/shared/incomplete/QxZGzCx7gCzxQOd7ODGA then exist? Is it writable for the account under which sabnzbd is running?

And to see if SAB is hanging, you could change the sabnzbd/misc.py code from

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
    return dirpath
to

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)
    return dirpath

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

Posted: December 1st, 2014, 6:05 pm
by n_goossens
Yes, it exists.

[root@sabnzbd /opt/local/sabnzbd]# ls /export/shared/incomplete/
QxZGzCx7gCzxQOd7ODGA

Misc.py code changed, logs now show:

2014-12-01 23:04:28,940::INFO::[__init__:628] Adding QxZGzCx7gCzxQOd7ODGA.nzb
2014-12-01 23:04:28,942::INFO::[misc:811] Creating directories: /export/shared/incomplete/QxZGzCx7gCzxQOd7ODGA
2014-12-01 23:04:28,942::INFO::[misc:815] Creating directories .... done!: /export/shared/incomplete/QxZGzCx7gCzxQOd7ODGA

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

Posted: December 1st, 2014, 7:06 pm
by n_goossens
And yes, /export/shared is a ZFS disk pool named download (one disk) that is shared from the host to the zone.

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

Posted: December 2nd, 2014, 1:10 am
by sander
n_goossens wrote:And yes, /export/shared is a ZFS disk pool named download (one disk) that is shared from the host to the zone.
Can you try to use the standard /home/<user>/ and the standard, relative paths for the Download dir etc, so more "local" disks?

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

Posted: December 2nd, 2014, 6:05 pm
by n_goossens
Sadly, that does not make a difference. The behavior is the same: incomplete folder is created, that's it.