Page 1 of 1

Errors when adding NZBs ("Failure in tempfile.mkstemp")

Posted: December 21st, 2017, 9:02 am
by wars
I installed sabnzbd on a new NAS via Docker. All my other cointainers are migrated without errors.
But Sabnzbd keeps throwing errors when a download starts or when is read a RSS feed.

All feeds are working fine and the permissions of the folders are the same as on my old NAS, where everything runs fine.

Sanbznd version: 2.3.1

Code: Select all

Failure in tempfile.mkstemp

Code: Select all

[19/Dec/2017:10:05:31]
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/_cprequest py", line 670, in respond
    response.body = self.handler()
  File "/usr/share/sabnzbdplus/cherrypy/lib/encoding py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/_cpdispatch py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/sabnzbdplus/sabnzbd/interface py", line 2079, in download
    sabnzbd.add_url(url, pp, script, cat, prio, nzbname)
  File "/usr/share/sabnzbdplus/sabnzbd/__init__ py", line 558, in add_url
    future_nzo = NzbQueue do generate_future(msg, pp, script, cat, url=url, priority=priority, nzbname=nzbname)
  File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue py", line 300, in generate_future
    self.add(future_nzo)
  File "/usr/share/sabnzbdplus/sabnzbd/decorators py", line 48, in call_func
    return func(*params, **kparams)
  File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue py", line 359, in add
    nzo.nzo_id = sabnzbd.get_new_id('nzo', nzo.workpath, self.__nzo_table)
  File "/usr/share/sabnzbdplus/sabnzbd/__init__ py", line 871, in get_new_id
    raise IOError
IOError
Adding a NSB manually, popups in the queue, but throws this error again

Code: Select all

Failure in tempfile.mkstemp
and

Code: Select all

ERROR DURING SCHEDULER EXECUTION 
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/sabnzbd/utils/kronos py", line 305, in __call__
    self.execute()
    File "/usr/share/sabnzbdplus/sabnzbd/utils/kronos py", line 317, in execute
    self.action(*self.args, **self kw)
  File "/usr/share/sabnzbdplus/sabnzbd/rss py", line 89, in run_method
    return __RSS.run()
    File "/usr/share/sabnzbdplus/sabnzbd/rss py", line 512, in run
    self.run_feed(feed, download=True, ignoreFirst=True)
  File "/usr/share/sabnzbdplus/sabnzbd/decorators py", line 36, in call_func
    return f(*args, **kw)
  File "/usr/share/sabnzbdplus/sabnzbd/rss py", line 486, in run_feed
    myScript, act, star, priority=myPrio, rule=str(n))
  File "/usr/share/sabnzbdplus/sabnzbd/rss py", line 623, in _HandleLink
    sabnzbd.add_url(link, pp=pp, script=script, cat=cat, priority=priority, nzbname=nzbname)
    File "/usr/share/sabnzbdplus/sabnzbd/__init__ py", line 558, in add_url
    future_nzo = NzbQueue do generate_future(msg, pp, script, cat, url=url, priority=priority, nzbname=nzbname)
  File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue py", line 300, in generate_future
    self.add(future_nzo)
  File "/usr/share/sabnzbdplus/sabnzbd/decorators py", line 48, in call_func
    return func(*params, **kparams)
  File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue py", line 359, in add
    nzo.nzo_id = sabnzbd.get_new_id('nzo', nzo.workpath, self.__nzo_table)
  File "/usr/share/sabnzbdplus/sabnzbd/__init__ py", line 871, in get_new_id
    raise IOError
IOError
    
ps: I had to remove some '.''s in the error messages, otherwise I was not aloud to post it, because it was seen as links...

Re: Errors when adding NZBs

Posted: December 21st, 2017, 9:23 am
by safihre
Seems there is some permissions error for your Incomplete download folder.
Can you check this?
It's not allowed to create any files there.

Re: Errors when adding NZBs ("Failure in tempfile.mkstemp")

Posted: December 21st, 2017, 2:45 pm
by wars
I did some tests and looked again in the logs. I saw that there was a permission issue on the 'admin' folder. Because I copied this docker folder with my own user, I was the owner of the folder and not the user which is running the Docker container.

thanks for helping.