Failure in tempfile.mkstemp

Support for the Debian/Ubuntu package, created by JCFP.
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
fr3sh
Newbie
Newbie
Posts: 3
Joined: March 13th, 2012, 5:40 pm

Failure in tempfile.mkstemp

Post by fr3sh »

Hi

I have error while Im try download anything. I reinstall Fedora several times and always the same result. The configuration are ok. I try diffrent storages no luck. I use live fedora on USB and USB HDD where files are downloading. Here are logs:

2012-03-13 23:37:18,820 ERROR: Failure in tempfile.mkstemp


2012-03-13 23:36:48,667::ERROR::[__init__:759] Failure in tempfile.mkstemp
2012-03-13 23:36:56,295::INFO::[__init__:760] Traceback:
Traceback (most recent call last):
File "/usr/share/SABnzbd/sabnzbd/__init__.py", line 753, in get_new_id
fd, path = tempfile.mkstemp('', 'SABnzbd_%s_' % prefix, folder)
File "/usr/lib/python2.7/tempfile.py", line 293, in mkstemp
return _mkstemp_inner(dir, prefix, suffix, flags)
File "/usr/lib/python2.7/tempfile.py", line 228, in _mkstemp_inner
fd = _os.open(file, flags, 0600)
OSError: [Errno 5] Input/output error: '/media/Nowy/usenet/in/******
PRiORiTY/__ADMIN__/SABnzbd_article_6xs7fg'
2012-03-13 23:36:56,485::ERROR::[__init__:759] Failure in tempfile.mkstemp
2012-03-13 23:36:56,485::INFO::[__init__:760] Traceback:
Traceback (most recent call last):
File "/usr/share/SABnzbd/sabnzbd/__init__.py", line 753, in get_new_id
fd, path = tempfile.mkstemp('', 'SABnzbd_%s_' % prefix, folder)
File "/usr/lib/python2.7/tempfile.py", line 293, in mkstemp
return _mkstemp_inner(dir, prefix, suffix, flags)
File "/usr/lib/python2.7/tempfile.py", line 228, in _mkstemp_inner
fd = _os.open(file, flags, 0600)
OSError: [Errno 5] Input/output error: '/media/Nowy/usenet/in/*******
PRiORiTY/__ADMIN__/SABnzbd_article_7hfosa'
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Failure in tempfile.mkstemp

Post by shypike »

It means that SABnzbd doesn't have permissions to write to
whatever folder you set as "temporary download folder".
fr3sh
Newbie
Newbie
Posts: 3
Joined: March 13th, 2012, 5:40 pm

Re: Failure in tempfile.mkstemp

Post by fr3sh »

Ok but he download two and a half GB from 5 into the same directory and after 2,5GB give me that error.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Failure in tempfile.mkstemp

Post by shypike »

Disk full?
fr3sh
Newbie
Newbie
Posts: 3
Joined: March 13th, 2012, 5:40 pm

Re: Failure in tempfile.mkstemp

Post by fr3sh »

No way. Whole disk 290GB is free. I even try another storage and the same error.
roads
Full Member
Full Member
Posts: 106
Joined: February 16th, 2010, 3:06 pm

Re: Failure in tempfile.mkstemp

Post by roads »

I have the same error and yes the disk is full but still there should be a disk full and no Failure in tempfile.mkstemp??
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Failure in tempfile.mkstemp

Post by shypike »

roads wrote:I have the same error and yes the disk is full but still there should be a disk full and no Failure in tempfile.mkstemp??
Not if you also have a permissions issue.
Besides, you should set a minimum threshold in Config->Folders.
That will avoid things like this.
roads
Full Member
Full Member
Posts: 106
Joined: February 16th, 2010, 3:06 pm

Re: Failure in tempfile.mkstemp

Post by roads »

I have "5G" there and I am not aware of a permission issue?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Failure in tempfile.mkstemp

Post by shypike »

That doesn't look like a disk-full error, but more like a permissions error.
Unfortunately the operating system isn't sending a clear error message back to SABnzbd.
cobrauk
Newbie
Newbie
Posts: 6
Joined: January 12th, 2015, 12:33 pm

Re: Failure in tempfile.mkstemp

Post by cobrauk »

I also had this same error yesterday but only with large 20gb + downloads, smaller file downloaded fine but on the larger files it would only download a few mb's before stopping with that error, tried all sorts trying to fix it but in the end, I went into the config general and then restarted sabnzbd from the web server part of that page and its fixed it?
Post Reply