Page 1 of 1

Fatal Error

Posted: May 10th, 2024, 4:37 am
by surfshady
Traceback (most recent call last):
File "/app/sabnzbd/sabnzbd/downloader.py", line 693, in process_nw_worker
self.process_nw(read_fds[nw_queue.get()])
File "/app/sabnzbd/sabnzbd/downloader.py", line 794, in process_nw
self.decode(article, nw.data_view[: nw.data_position])
File "/app/sabnzbd/sabnzbd/downloader.py", line 518, in decode
sabnzbd.decoder.decode(article, data_view)
File "/app/sabnzbd/sabnzbd/decoder.py", line 164, in decode
sabnzbd.ArticleCache.save_article(article, decoded_data)
File "/app/sabnzbd/sabnzbd/articlecache.py", line 100, in save_article
self.__flush_article_to_disk(article, data)
File "/app/sabnzbd/sabnzbd/articlecache.py", line 169, in __flush_article_to_disk
data, article.get_art_id(), article.nzf.nzo.admin_path, do_pickle=False, silent=True
^^^^^^^^^^^^^^^^^^^^
File "/app/sabnzbd/sabnzbd/nzbstuff.py", line 241, in get_art_id
self.art_id = get_new_id("article", self.nzf.nzo.admin_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/sabnzbd/sabnzbd/filesystem.py", line 1125, in get_new_id
raise IOError
OSError

Re: Fatal Error

Posted: May 10th, 2024, 5:00 am
by sander
Reboot and retry

Re: Fatal Error

Posted: May 10th, 2024, 7:43 am
by surfshady
I have a few times now. The download directory is on a SMB share on Unraid - I checked the windows compatibility option as I thought that might be an issue since this container was migrated recently from Umbrel to Ubuntu-Docker Desktop direct. Worked fine until today. Anything else to check? It recurs 5 or 10 minutes after restart.

Re: Fatal Error

Posted: May 10th, 2024, 8:13 am
by sander
Do you have your Incomplete on the SMB share? If so: don't

Re: Fatal Error

Posted: May 10th, 2024, 9:31 am
by surfshady
I do not. in fact, as I looked again both folders incomplete and complete are on the local machine the container is run on and shared via docker desktop resources setting under file sharing.

Same 2 errors after a restart:


ERROR 25 minutes ago Fatal error in Downloader
Traceback (most recent call last):
File "/app/sabnzbd/sabnzbd/downloader.py", line 693, in process_nw_worker
self.process_nw(read_fds[nw_queue.get()])
File "/app/sabnzbd/sabnzbd/downloader.py", line 794, in process_nw
self.decode(article, nw.data_view[: nw.data_position])
File "/app/sabnzbd/sabnzbd/downloader.py", line 518, in decode
sabnzbd.decoder.decode(article, data_view)
File "/app/sabnzbd/sabnzbd/decoder.py", line 164, in decode
sabnzbd.ArticleCache.save_article(article, decoded_data)
File "/app/sabnzbd/sabnzbd/articlecache.py", line 100, in save_article
self.__flush_article_to_disk(article, data)
File "/app/sabnzbd/sabnzbd/articlecache.py", line 169, in __flush_article_to_disk
data, article.get_art_id(), article.nzf.nzo.admin_path, do_pickle=False, silent=True
^^^^^^^^^^^^^^^^^^^^
File "/app/sabnzbd/sabnzbd/nzbstuff.py", line 241, in get_art_id
self.art_id = get_new_id("article", self.nzf.nzo.admin_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/sabnzbd/sabnzbd/filesystem.py", line 1125, in get_new_id
raise IOError
OSError
ERROR 25 minutes ago Failure in tempfile.mkstemp

Re: Fatal Error

Posted: May 10th, 2024, 9:40 am
by surfshady
Maybe a permission issue? I chased the temfile.mstemp issue down and changed the permissions for the root of the download folder. no error on restart so far will keep monitoring

Re: Fatal Error

Posted: May 10th, 2024, 3:03 pm
by safihre
If you set logging to at least Info in the Status window, then in the log it will show directly below the error the actual reason why it failed.
We need that to diagnose the underlying cause.

Re: Fatal Error

Posted: May 10th, 2024, 4:22 pm
by surfshady
I did have logging set at the info level and cop[ied what was provided.

It does appear that fixing the permissions on the root folder (recursively) has resolved the issue. Thank you for the pointers.