Page 1 of 1

Failure in tempfile.mkstemp

Posted: December 1st, 2023, 1:06 am
by badogski29
Hello,

I keep getting "Failure in tempfile.mkstemp", below is the log from sabnzbd:

pastebin. com/SXJEmcNE

I verified that the user running sabnzbd is a user that has permissions to the temp folder that is on my NAS. I even deleted the Usenet folder on my share and let SABnzbd create the folder itself so I am really confused. Screenshots:

imgur. com/a/CkjoWeg

My setup:
NAS: Truenas Core and the share is mounted via NFS
Sabnzbd: hosted on a separate ubuntu machine and a similar user permission is set to the user running Qbittorrent (same machine), both part of plex(GID 997) Qbittorrent has no issues saving to the same share.
SABnzbd version: 4.1.0

Re: Failure in tempfile.mkstemp

Posted: December 1st, 2023, 1:20 am
by sander
PermissionError: [Errno 1] Operation not permitted: '/media/Usenet/temp/What.If.blabla-ABHOR/__ADMIN__/SABnzbd_nzf_u9az8c5d'

Easy: don't put your SABnzbd Incomplete / Temp on a NFS mount; keep it local, inside your system / guest

Re: Failure in tempfile.mkstemp

Posted: December 1st, 2023, 4:00 pm
by badogski29
sander wrote: December 1st, 2023, 1:20 am PermissionError: [Errno 1] Operation not permitted: '/media/Usenet/temp/What.If.blabla-ABHOR/__ADMIN__/SABnzbd_nzf_u9az8c5d'

Easy: don't put your SABnzbd Incomplete / Temp on a NFS mount; keep it local, inside your system / guest
Is it just straight up unsupported? I tried googling why but it seems like some people are successful using an nfs mounted share and some are not.

Re: Failure in tempfile.mkstemp

Posted: December 1st, 2023, 4:09 pm
by sander
badogski29 wrote: December 1st, 2023, 4:00 pm
sander wrote: December 1st, 2023, 1:20 am PermissionError: [Errno 1] Operation not permitted: '/media/Usenet/temp/What.If.blabla-ABHOR/__ADMIN__/SABnzbd_nzf_u9az8c5d'

Easy: don't put your SABnzbd Incomplete / Temp on a NFS mount; keep it local, inside your system / guest
Is it just straight up unsupported? I tried googling why but it seems like some people are successful using an nfs mounted share and some are not.
You can do anything you want, and if it works ... good for you.
If it doesn't work ... find out yourself, or go back to safety.

SABnzbd needs a reliable drive.
SABnzbd does all kinds of hard core file writing on Incomplete and Temp.
So better make sure Incomplete and Temp are very reliable, and fast.

And SABnzbd is just reporting what the OS is reporting.

Re: Failure in tempfile.mkstemp

Posted: December 1st, 2023, 9:32 pm
by badogski29
I got it working somehow, I changed the fstab config from nfs v3 to v4 and switched the options from "defaults" to "rw".

I'll probably still use an ssd for the temp folder like you recommended.