Page 1 of 1

Restarting because of Crashed Downloader

Posted: August 18th, 2020, 2:26 pm
by Teeko
Sabnzbd is constantly restarting, almost without any uptime. I'm running it in docker on unraid. In the logs, it says "Restarting because of crashed downloader." and then this error before that. The error is on pastebin at pastebin com/XP5KAT75

Also, since it started doing this sonarr does not recognize downloads as "failed" it just says "Download wasn't grabbed by sonarr, skipping". so it seems to not be reporting failed downloads to sonarr anymore.



from https://pastebin.com/KAT7XP55

Code: Select all

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/share/sabnzbdplus/sabnzbd/downloader.py", line 775, in run
self.decode(article, nw.data)
File "/usr/share/sabnzbdplus/sabnzbd/downloader.py", line 415, in decode
sabnzbd.nzbqueue.NzbQueue.do.register_article(article, success=False)
File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue.py", line 742, in register_article
articles_left, file_done, post_done = nzo.remove_article(article, success)
File "/usr/share/sabnzbdplus/sabnzbd/decorators.py", line 36, in call_func
return f(*args, **kw)
File "/usr/share/sabnzbdplus/sabnzbd/nzbstuff.py", line 1170, in remove_article
self.prospective_add(nzf)
File "/usr/share/sabnzbdplus/sabnzbd/decorators.py", line 36, in call_func
return f(*args, **kw)
File "/usr/share/sabnzbdplus/sabnzbd/nzbstuff.py", line 1429, in prospective_add
self.add_parfile(new_nzf)
File "/usr/share/sabnzbdplus/sabnzbd/decorators.py", line 36, in call_func
return f(*args, **kw)
File "/usr/share/sabnzbdplus/sabnzbd/nzbstuff.py", line 1395, in add_parfile
if not parfile.completed and parfile not in self.files and parfile not in self.finished_files:
File "/usr/share/sabnzbdplus/sabnzbd/nzbstuff.py", line 485, in __eq__
return self.bytes == other.bytes and self.decodetable[0] == other.decodetable[0]
IndexError: list index out of range

Re: Restarting because of Crashed Downloader

Posted: August 18th, 2020, 3:46 pm
by safihre
Interesting. Could you share some more information? Why version of Sabnzbd is this?
Can you share the rest of the log and/or the NZB?

Re: Restarting because of Crashed Downloader

Posted: August 18th, 2020, 7:38 pm
by Teeko
I have as many logs as you want, it seemed to happen when I was downloading a large amount of files, around 1k NZBs. happened on any NZB that failed for any reason(not on my servers, couldn't be verified, etc). when I trimmed the list down and started downloading 100 or so at a time, I didn't have any issues and it behaved fine.

Re: Restarting because of Crashed Downloader

Posted: August 19th, 2020, 12:37 am
by safihre
Can you reproduce with single NZB?
And again: what version of Sabnzbd is this? 3.0.0 or develop?

EDIT: I think I found it. Depending on how you run SABnzbd I can provide a patch.

Re: Restarting because of Crashed Downloader

Posted: August 19th, 2020, 1:58 am
by Teeko
Version: 3.0.1 [9a4be70]

Running it on unraid in docker, container from linuxserverio

Re: Restarting because of Crashed Downloader

Posted: August 19th, 2020, 2:48 am
by safihre
Aaah oke that makes a bit more complicated.
Will have to wait for new release.

Re: Restarting because of Crashed Downloader

Posted: August 19th, 2020, 2:42 pm
by Teeko
Just glad you found it and I can look forward to it in the future. It's not every day I'm downloading that much anyway.

Re: Restarting because of Crashed Downloader

Posted: October 13th, 2020, 9:24 pm
by heardamir
Just updated to 3.0.2 [51cc765] and this issue seems to still occurs. I don't usually have much in the queue, but it's crashing with around ~100-150 in the queue.

Code: Select all

2020-10-14 13:06:56,247::INFO::[__init__:1038] Restarting because of crashed downloader
2020-10-14 13:06:56,248::INFO::[__init__:798] [N/A] Performing SABnzbd shutdown
2020-10-14 13:06:56,248::INFO::[__init__:389] SABnzbd shutting down...
It may be a coincidence, but it seems that it repeatedly crashes immediately after establishing a connection to astraweb via SSL

Re: Restarting because of Crashed Downloader

Posted: October 13th, 2020, 9:57 pm
by sander
On what kind of hardware is this? How much RAM?

After loading those 100-150 (NZBs?), what is the total download size?
It may be a coincidence, but it seems that it repeatedly crashes immediately after establishing a connection to astraweb via SSL
If you can more providers than astraweb: what happens after you deactivate Astraweb?

Re: Restarting because of Crashed Downloader

Posted: October 16th, 2020, 8:25 am
by safihre
And of course, we will need full debug logging :)