Page 1 of 1

Assembler crash

Posted: September 1st, 2020, 3:47 am
by kacaukacau
I'm running in Docker container, with the linuxserver/sabnzbd image. SABnzbd restarts itself very often, with the error:

Code: Select all

2020-09-01 10:30:21,086::ERROR::[assembler:106] Fatal error in Assembler


Traceback (most recent call last):


  File "/app/sabnzbd/sabnzbd/assembler.py", line 91, in run


    self.assemble(nzf, file_done)


  File "/app/sabnzbd/sabnzbd/assembler.py", line 211, in assemble


    data = ArticleCache.do.load_article(article)


  File "/app/sabnzbd/sabnzbd/articlecache.py", line 127, in load_article


    data = self.__article_table.pop(article)


KeyError: <Article: [email protected], bytes=792703, art_id=SABnzbd_article_8h84912g>


2020-09-01 10:30:46,937::ERROR::[__init__:450] Fatal error at saving state


Traceback (most recent call last):


  File "/app/sabnzbd/sabnzbd/__init__.py", line 448, in halt


    save_state()


  File "/app/sabnzbd/sabnzbd/__init__.py", line 576, in save_state


    ArticleCache.do.flush_articles()


  File "/app/sabnzbd/sabnzbd/decorators.py", line 36, in call_func


    return f(*args, **kw)


  File "/app/sabnzbd/sabnzbd/articlecache.py", line 141, in flush_articles


    data = self.__article_table.pop(article)


KeyError: <Article: [email protected], bytes=792934, art_id=None>

Re: Assembler crash: KeyError: <Article: [email protected], bytes=792703, art_id=SABnzbd_a

Posted: September 1st, 2020, 4:21 am
by sander
Which version of SABnzbd are you running?


For readability:

Code: Select all

2020-09-01 10:30:21,086::ERROR::[assembler:106] Fatal error in Assembler
Traceback (most recent call last):
  File "/app/sabnzbd/sabnzbd/assembler.py", line 91, in run
    self.assemble(nzf, file_done)
  File "/app/sabnzbd/sabnzbd/assembler.py", line 211, in assemble
    data = ArticleCache.do.load_article(article)
  File "/app/sabnzbd/sabnzbd/articlecache.py", line 127, in load_article
    data = self.__article_table.pop(article)
KeyError: <Article: [email protected], bytes=792703, art_id=SABnzbd_article_8h84912g>
and

Code: Select all

2020-09-01 10:30:46,937::ERROR::[__init__:450] Fatal error at saving state
Traceback (most recent call last):
  File "/app/sabnzbd/sabnzbd/__init__.py", line 448, in halt
    save_state()
  File "/app/sabnzbd/sabnzbd/__init__.py", line 576, in save_state
    ArticleCache.do.flush_articles()
  File "/app/sabnzbd/sabnzbd/decorators.py", line 36, in call_func
    return f(*args, **kw)
  File "/app/sabnzbd/sabnzbd/articlecache.py", line 141, in flush_articles
    data = self.__article_table.pop(article)
KeyError: <Article: [email protected], bytes=792934, art_id=None>

Re: Assembler crash

Posted: September 1st, 2020, 7:56 am
by safihre
I have had this reported by other users. I have implemented a possible solution for this, but since you are on the docker it's a bit hard to get you the code.
Will create a 3.1.0Beta1 release soon that you can then get.