Page 1 of 1

Failure in tempfile.mkstemp

Posted: March 13th, 2012, 5:50 pm
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'

Re: Failure in tempfile.mkstemp

Posted: March 14th, 2012, 5:57 am
by shypike
It means that SABnzbd doesn't have permissions to write to
whatever folder you set as "temporary download folder".

Re: Failure in tempfile.mkstemp

Posted: March 14th, 2012, 7:12 am
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.

Re: Failure in tempfile.mkstemp

Posted: March 14th, 2012, 12:18 pm
by shypike
Disk full?

Re: Failure in tempfile.mkstemp

Posted: March 14th, 2012, 1:14 pm
by fr3sh
No way. Whole disk 290GB is free. I even try another storage and the same error.

Re: Failure in tempfile.mkstemp

Posted: March 19th, 2013, 2:03 am
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??

Re: Failure in tempfile.mkstemp

Posted: March 19th, 2013, 3:33 am
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.

Re: Failure in tempfile.mkstemp

Posted: March 19th, 2013, 4:14 am
by roads
I have "5G" there and I am not aware of a permission issue?

Re: Failure in tempfile.mkstemp

Posted: March 19th, 2013, 10:53 am
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.

Re: Failure in tempfile.mkstemp

Posted: April 17th, 2018, 2:28 am
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?