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

Get help with all aspects of 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
wars
Newbie
Newbie
Posts: 2
Joined: December 21st, 2017, 8:38 am

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

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

Re: Errors when adding NZBs

Post 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.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
wars
Newbie
Newbie
Posts: 2
Joined: December 21st, 2017, 8:38 am

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

Post 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.
Post Reply