Page 1 of 2

While downloading - Failure in tempfile.mkstemp

Posted: August 26th, 2015, 10:00 am
by Enjoyxx
Hello Guys,

first of all I want to say, that amy english is not that good! :-D And my knowlegde of Sbnzbd is also not that advanced.

I use sabnzbd with a raspberry pi.

I use it for about 1 Year without any problems. Since yesterday I have the problem, that the running download stops at a random point. Sabnzbd throws 20 failure messages. If i restart the Raspberry pi it delets my running nzb queue. And it says: 4,07GB free (temp) 36,57 GB Free Space. If I add now a nzb file with 6 GB it says at the "free temp" -> "Not enough diskspace to complete downloads"

EDIT: Okay after the restart did it change the settings on itself, I set the temporary folder again on my external drive. The problem is still remaining.

What is this temp space? It worked for 1 year, dont know why this is happening now.

The failure messages about 20 of it:
Failure in tempfile.mkstemp

I hope you know what I mean!

Best Regards Enjoyxx aka. Manuel

Re: While downloading - Failure in tempfile.mkstemp

Posted: August 26th, 2015, 11:55 am
by sander
Probably partition full or otherwise not writable (possibly because of rights).

Log in onto your raspi, and type

Code: Select all

df -h
Post the output here

Re: While downloading - Failure in tempfile.mkstemp

Posted: August 26th, 2015, 12:05 pm
by Enjoyxx
Hey,

thanks for replying!!! :) Here the output:

Code: Select all

rootfs                  7,2G       2,8G      4,1G   41% /
/dev/root             7,2G      2,8G  4,1G   41% /
devtmpfs              215M       0  215M    0% /dev
tmpfs                    44M      712K   44M    2% /run
tmpfs                   5,0M       0  5,0M    0% /run/lock
tmpfs                    88M       0   88M    0% /run/shm
/dev/mmcblk0p1   56M    9,7M   47M   18% /boot
/dev/sda1             1,9T    1,8T   41G   98% /media/Festplatte
41 GB should be enough. Did you read my EDIT on the first post?
-> Okay after the restart did it change the settings on itself, I set the temporary folder again on my external drive. The problem is still remaining. (Now the notification about the temp folder is away) Nevertheless the download stops at a random point.

Re: While downloading - Failure in tempfile.mkstemp

Posted: August 26th, 2015, 2:49 pm
by sander
External drives are often a problem because of write rights.

What is the output of:

Code: Select all

cat ~/.sabnzbd/sabnzbd.ini | grep _dir
Put the result in a Code-block

Re: While downloading - Failure in tempfile.mkstemp

Posted: August 26th, 2015, 3:16 pm
by Enjoyxx
Yeah, but it worked without any problems one year? Why is there a problem just because of nothing?

Code: Select all

dirscan_dir = ""
email_dir = ""
log_dir = logs
admin_dir = admin
nzb_backup_dir = ""
download_dir = /media/Festplatte/12Download
cache_dir = cache
complete_dir = /media/Festplatte/12Download
script_dir = ""
web_dir2 = ""
web_dir = Plush
BR

Re: While downloading - Failure in tempfile.mkstemp

Posted: August 26th, 2015, 3:21 pm
by sander
download_dir and complete_dir point to the same directory? Does that work? ???

Via de WebGUI change to

Code: Select all

download_dir = /media/Festplatte/12Download/incomplete
complete_dir = /media/Festplatte/12Download/complete
and restart SABnzbd

What is the output of

Code: Select all

touch /media/Festplatte/12Download/blabla.txt

Re: While downloading - Failure in tempfile.mkstemp

Posted: August 27th, 2015, 9:55 am
by Enjoyxx
Hey,

I got another warning:

Traceback (most recent call last:)
File
"usr/share/sabnzbdplus/cherrypy/_cpwsgi.py" line 79, in setapp
s,h,b = self, get_response()
File
"usr/share/sabnzbdplus/cherrypy/_cpwsgi.py" line 219, in get_response
Response = self.request.run(meth, path, qs, rproto, headers, rfile)
File
"usr/share/sabnzbdplus/cherrypy/_cprequest.py" line 579, in run
raise
cherrypy.TimeoutError()

download_dir and complete_dir worked also for about 1 year :-D

I changed it nonetheless :)

The result of the touch is:

It creates a txt file in my /12download. Nothing more.


Best Regards

Re: While downloading - Failure in tempfile.mkstemp

Posted: August 27th, 2015, 10:41 am
by shypike
The CherryPy warning is just an internal timeout.
If it happens occasionally, it's not a problem.
For the incomplete folder, use a sub-folder of the complete one,
so that SABnzbd won't see completed downloads as incomplete ones.

Other than that, your "temp" file problems is likely access rights.
One other potential issue is that the system-wide maximum amount of open files is too low.
There's a way to configure that, but I'm not very knowledgeable in that area.

Re: While downloading - Failure in tempfile.mkstemp

Posted: September 1st, 2015, 12:28 pm
by Enjoyxx
How can i fix those access rights? I didnt change any access rights.

Re: While downloading - Failure in tempfile.mkstemp

Posted: September 1st, 2015, 4:20 pm
by sander
Can you post the current output of:

Code: Select all

cat ~/.sabnzbd/sabnzbd.ini | grep _dir
Put the result in code blocks

Re: While downloading - Failure in tempfile.mkstemp

Posted: September 2nd, 2015, 1:31 pm
by Enjoyxx
Hey,

thanks for replying.

Here the Code:

Code: Select all

dirscan_dir = ""
email_dir = ""
log_dir = logs
admin_dir = admin
nzb_backup_dir = ""
download_dir = /media/Festplatte/Download/incomplete
cache_dir = cache
complete_dir = /media/Festplatte/Download/complete
script_dir = ""
web_dir2 = ""
web_dir = Plush
I also changed the HDD. Maybe the HDD is broken..

We will see :-)

BR

Re: While downloading - Failure in tempfile.mkstemp

Posted: September 3rd, 2015, 12:48 am
by sander
How do you run SABnzbd: from the command line, or as a service?
If as service: under which account?

Now do this as the same user as which you run SABnzbd:

Code: Select all

mkdir "/media/Festplatte/Download/incomplete/bla ppp_33"
touch "/media/Festplatte/Download/incomplete/bla ppp_33/test"
ls -al "/media/Festplatte/Download/incomplete/bla ppp_33/test"
Post the full output here in a CODE block.

Re: While downloading - Failure in tempfile.mkstemp

Posted: September 5th, 2015, 4:55 am
by sander
No response? If so, I will unsubscribe from this thread. Let me know.

Re: While downloading - Failure in tempfile.mkstemp

Posted: September 5th, 2015, 5:27 am
by Enjoyxx
Sorry had problems with my provider.

Here the result:

Code: Select all

pi@raspberrypi ~ $ mkdir "/media/Festplatte/Download/incomplete/bla ppp_33"
pi@raspberrypi ~ $ touch "/media/Festplatte/Download/incomplete/bla ppp_33/test"
pi@raspberrypi ~ $ ls -al "/media/Festplatte/Download/incomplete/bla ppp_33/test"
-rwxrwxrwx 1 pi pi 0 Sep  5 10:26 /media/Festplatte/Download/incomplete/bla ppp_33/test
Changing the HDD didnt change anything.

Its so strange, it downloads about 800 MB and then just stops..?

After a Raspberry Pi restart, it works normal for a few hours.

Re: While downloading - Failure in tempfile.mkstemp

Posted: September 5th, 2015, 6:52 am
by sander
Output looks good.
How about my other two questions? Please read and answer carefully.

So it *sometimes* gives the error "Failure in tempfile.mkstemp"? Things are getting more vague to me.
Or is it not giving that error, but something else?

How big are your downloads? Below 2GB?