While downloading - 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.
Enjoyxx
Newbie
Newbie
Posts: 9
Joined: August 26th, 2015, 9:29 am

While downloading - Failure in tempfile.mkstemp

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8824
Joined: January 22nd, 2008, 2:22 pm

Re: While downloading - Failure in tempfile.mkstemp

Post 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
Enjoyxx
Newbie
Newbie
Posts: 9
Joined: August 26th, 2015, 9:29 am

Re: While downloading - Failure in tempfile.mkstemp

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 8824
Joined: January 22nd, 2008, 2:22 pm

Re: While downloading - Failure in tempfile.mkstemp

Post 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
Enjoyxx
Newbie
Newbie
Posts: 9
Joined: August 26th, 2015, 9:29 am

Re: While downloading - Failure in tempfile.mkstemp

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8824
Joined: January 22nd, 2008, 2:22 pm

Re: While downloading - Failure in tempfile.mkstemp

Post 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
Enjoyxx
Newbie
Newbie
Posts: 9
Joined: August 26th, 2015, 9:29 am

Re: While downloading - Failure in tempfile.mkstemp

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: While downloading - Failure in tempfile.mkstemp

Post 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.
Enjoyxx
Newbie
Newbie
Posts: 9
Joined: August 26th, 2015, 9:29 am

Re: While downloading - Failure in tempfile.mkstemp

Post by Enjoyxx »

How can i fix those access rights? I didnt change any access rights.
User avatar
sander
Release Testers
Release Testers
Posts: 8824
Joined: January 22nd, 2008, 2:22 pm

Re: While downloading - Failure in tempfile.mkstemp

Post by sander »

Can you post the current output of:

Code: Select all

cat ~/.sabnzbd/sabnzbd.ini | grep _dir
Put the result in code blocks
Enjoyxx
Newbie
Newbie
Posts: 9
Joined: August 26th, 2015, 9:29 am

Re: While downloading - Failure in tempfile.mkstemp

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8824
Joined: January 22nd, 2008, 2:22 pm

Re: While downloading - Failure in tempfile.mkstemp

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 8824
Joined: January 22nd, 2008, 2:22 pm

Re: While downloading - Failure in tempfile.mkstemp

Post by sander »

No response? If so, I will unsubscribe from this thread. Let me know.
Enjoyxx
Newbie
Newbie
Posts: 9
Joined: August 26th, 2015, 9:29 am

Re: While downloading - Failure in tempfile.mkstemp

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 8824
Joined: January 22nd, 2008, 2:22 pm

Re: While downloading - Failure in tempfile.mkstemp

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