Restarting because of Crashed Downloader

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Teeko
Newbie
Newbie
Posts: 4
Joined: August 18th, 2020, 1:43 pm

Restarting because of Crashed Downloader

Post 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
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Restarting because of Crashed Downloader

Post 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?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Teeko
Newbie
Newbie
Posts: 4
Joined: August 18th, 2020, 1:43 pm

Re: Restarting because of Crashed Downloader

Post 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.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Restarting because of Crashed Downloader

Post 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.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Teeko
Newbie
Newbie
Posts: 4
Joined: August 18th, 2020, 1:43 pm

Re: Restarting because of Crashed Downloader

Post by Teeko »

Version: 3.0.1 [9a4be70]

Running it on unraid in docker, container from linuxserverio
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Restarting because of Crashed Downloader

Post by safihre »

Aaah oke that makes a bit more complicated.
Will have to wait for new release.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Teeko
Newbie
Newbie
Posts: 4
Joined: August 18th, 2020, 1:43 pm

Re: Restarting because of Crashed Downloader

Post 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.
heardamir
Newbie
Newbie
Posts: 9
Joined: September 3rd, 2019, 3:36 am

Re: Restarting because of Crashed Downloader

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Restarting because of Crashed Downloader

Post 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?
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Restarting because of Crashed Downloader

Post by safihre »

And of course, we will need full debug logging :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply