Page 1 of 1

Cant import NZBs via URL

Posted: April 21st, 2022, 3:32 pm
by Scarpall
Hi,

at the moment im having problems importing NZBs via URL.
I have sabnzbd 3.5.3, Python Version: 3.9.7 and OpenSSL 1.1.1n in an Docker Container on my NAS
I have only 1 source where i try to add things via url.
when i enter them in browser it downloads the nzb and i can upload it to sabnzbd and everything works.
This message appears when i try to add the nzb via url
(Sorry i cant post the log here because it gets detected as link. Also i needed to change the . to an _ because of the link detection)
pastebin_com/aK6b60ae

also ther is an extra line saying
Error in tempfile.mkstemp

Thanks for your help

Scarpall

Re: Cant import NZBs via URL

Posted: April 22nd, 2022, 1:02 am
by sander
I guess the exact message is "Failure in tempfile.mkstemp" ?

If so: problems with your filesystem ... no disk space available, no writing rights at given directory, wrong directory.

As it's docker, follow the credo "cattle, not pets". So throw away, and start from scratch.

Re: Cant import NZBs via URL

Posted: April 22nd, 2022, 2:22 am
by Scarpall
Yes, that's right. I set the language to German so I tried to translate it.

But the permissions should be ok because if I upload the file manually everything works. The download also takes place in the same directory. Also sonarr Works without problems. Do you have any other idea what it could be?

Re: Cant import NZBs via URL

Posted: April 22nd, 2022, 4:16 am
by sander
As said, I would start from the other side, from stratch, with a default working SABnzbd. So: delete / rename your sabnzbd.ini, start the SABnzbd docker, and you verify you get the SAB wizard. Fill it out with bare basics (just one newsserver, nothing else, no folder change), and verify that SAB is working: manual NZB add, and manual URL add.

And for the first step: only directories within your docker image, to avoid filesystem rights problems on shared directories.

If you achieve that, build up from there.

If not, that would be ... interesting ...

Re: Cant import NZBs via URL

Posted: April 24th, 2022, 9:49 am
by Scarpall
hi sorry for the late answer, it was really just a permission issue... i recently changed the location for my docker files and forgott to give sabnzbd docker user the write access to the config directory...
i guess there gets the file from the url saved and thats why the error occurs ...

Re: Cant import NZBs via URL

Posted: August 29th, 2022, 2:49 pm
by Scarpall
Hi,
after the last update i've run into trouble again. But this time even after creating a new Container.
This time the Message when i add a NZB via URL is:
INFO::[urlgrabber:269] Unknown filetype when fetching NZB, retry after 30s https://url.xyz

the download is an archive with this name "Filename.nzb.gz".
Downloading manually and adding it with normal Upload works.
Importing this links worked in older version. Did something change here?

Re: Cant import NZBs via URL

Posted: August 30th, 2022, 9:20 am
by safihre
It could be that the server serves up something different when SABnzbd connects compared to when you connect through the browser.
Could you share an URL through PM or email at safihre@sabnzbd.org?

Re: Cant import NZBs via URL

Posted: August 31st, 2022, 11:21 am
by Scarpall
PM is send to you :)
by the way before the last update it worked via URL and nothing changed in the URL

Re: Cant import NZBs via URL

Posted: August 31st, 2022, 12:51 pm
by safihre
This is not a SABnzbd problem, but a change on the server side.
Try opening the URL in a Incognito browser window, you will see that they throw this error:

Code: Select all

Stop! An invalid referrer () was transmitted.
Correct forwarding can only take place from our side.
You will be forwarded in 10 seconds, alternatively you can click here.
So, they only allow to open URLs directly from their site.
Additionally they also don't send the correct headers, so we cannot detect what the problem is. They send the "200 OK" header, so SABnzbd things this should be processed as a real file.

Re: Cant import NZBs via URL

Posted: September 1st, 2022, 8:20 am
by Scarpall
ah okay thanks for the quick answers :)