The same nzb, loaded with all the same settings but with Sab running outside the chroot, downloads flawlessly. I used strace for both the jailed and unjailed download attempts. With the jailed Sab we get up to here:
Code: Select all
select(0, NULL, NULL, NULL, {tv_sec=3, tv_usec=0}2021-01-21 17:56:16,945::INFO::[dirscanner:378] Trying to import /p17/user26/sabnzbd/watch/Daniel-Arenson-The-Stars-Are-Crying.docx.nzb
2021-01-21 17:56:17,963::INFO::[misc:993] Creating directories: /p17/user26/sabnzbd/Downloads/incomplete/Daniel-Arenson-The-Stars-Are-Crying.docx
2021-01-21 17:56:17,964::INFO::[nzbstuff:526] File Daniel Arenson - The Stars Are Crying.docx (1/1) - SABnzbd_nzf_zwm0DW added to queue
2021-01-21 17:56:17,964::INFO::[__init__:614] Backing up /p17/user26/sabnzbd/Downloads/incomplete/Daniel-Arenson-The-Stars-Are-Crying.docx/__ADMIN__/Daniel-Arenson-The-Stars-Are-Crying.docx.nzb.gz
2021-01-21 17:56:17,964::INFO::[nzbqueue:277] Saving queue
) = 0 (Timeout)
select(0, NULL, NULL, NULL, {tv_sec=3, tv_usec=0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {tv_sec=3, tv_usec=0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {tv_sec=3, tv_usec=0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {tv_sec=3, tv_usec=0}) = 0 (Timeout)
...and then, no more output of note. Whereas with the unjailed instance, we see this:
Code: Select all
select(0, NULL, NULL, NULL, {tv_sec=3, tv_usec=0}2021-01-21 18:36:00,756::INFO::[dirscanner:378] Trying to import /home/portal17/users/user26/ftp/user26/sabnzbd/watch/Daniel-Arenson-The-Stars-Are-Crying.docx.nzb
) = 0 (Timeout)
futex(0x7f342801fb40, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5641b323c780, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f342801fb40, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5641b323c780, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5641b323c780, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, 0xffffffff) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x5641b32c56e0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5641b323c780, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x5641b323c780, FUTEX_WAKE_PRIVATE, 1) = 0
select(0, NULL, NULL, NULL, {tv_sec=3, tv_usec=0}2021-01-21 18:36:01,758::INFO::[misc:993] Creating directories: /home/portal17/users/user26/ftp/user26/sabnzbd/Downloads/incomplete/Daniel-Arenson-The-Stars-Are-Crying.docx
2021-01-21 18:36:01,759::INFO::[nzbstuff:526] File Daniel Arenson - The Stars Are Crying.docx (1/1) - SABnzbd_nzf_AeEn2A added to queue
2021-01-21 18:36:01,759::INFO::[__init__:614] Backing up /home/portal17/users/user26/ftp/user26/sabnzbd/Downloads/incomplete/Daniel-Arenson-The-Stars-Are-Crying.docx/__ADMIN__/Daniel-Arenson-The-Stars-Are-Crying.docx.nzb.gz
2021-01-21 18:36:01,760::INFO::[nzbqueue:277] Saving queue
2021-01-21 18:36:02,761::INFO::[downloader:485] 2@news_server: Initiating connection
...and it downloads, no problem.
I spent a lot of time working with the assumption that functions in either __init__ or nzbqueue were failing silently somehow and hanging the program, but after watching its behavior closely I don't think that's the case any more. Something is going wrong before it gets to the function in downloader, but I can't see what.
Running under Ubuntu 18 . 04. Python 2 . 7, sabnzbd 2 . 3 . 2.