Hi!
I'm using NZBDonkey to intercept NZB links and push them directly to Sabnzbd+ (which is running on another Windows computer in the LAN). I'm suing the API key to access Sabnzbd+ from the other computer. The problem is, that pushing the NZBs takes extremely long (at least 30 seconds, several minutes for larger NZBs)!
When I push several NZBs simultaneously (meaning I start pushing a second one during the first one still pushing), I get Errors like this:
ERROR a few seconds ago [27/Oct/2019:20:58:54] HTTP
Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 663, in respond
File "cherrypy\_cpreqbody.pyo", line 989, in process
File "cherrypy\_cpreqbody.pyo", line 558, in process
File "cherrypy\_cpreqbody.pyo", line 223, in process_multipart_form_data
File "cherrypy\_cpreqbody.pyo", line 215, in process_multipart
File "cherrypy\_cpreqbody.pyo", line 556, in process
File "cherrypy\_cpreqbody.pyo", line 715, in default_proc
File "cherrypy\_cpreqbody.pyo", line 730, in read_into_file
File "cherrypy\_cpreqbody.pyo", line 669, in read_lines_to_boundary
EOFError: Illegal end of multipart body.
What ist the problem? Why is this so slow and producing errors? My LAN is gigabit speed, both involved computers are fast enough and I'm using Sab 2.3.9 (although this problem has always existed with any version). When I e.g. try NZBGet insted of Sabnzbd+, pushing the same NZBs is almost instantaneous with the same configuration.
It would be nice if this problem could be fixed.
Regards!
Pushing NZBs to Sabnzbd+ via API extremely slow!
Forum rules
Help us help you:
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.
Re: Pushing NZBs to Sabnzbd+ via API extremely slow!
Simulate NZB-add-via-API using something like
Code: Select all
curl -v http://192.168.1.1:8080/sabnzbd/api -F apikey=8da6c9215826c05ebac0c9526697cb46 -F mode=addfile -F output=xml -F "name=@/home/sander/Downloads/mynzb.nzb"
Re: Pushing NZBs to Sabnzbd+ via API extremely slow!
What will be different when simulating the push?
It seems to be a general performance problem of Sab when pushing larger NZBs. The program completely freezes, downloads and postprocessing stops, , the web interface is not accessible anymore, etc.
Hard to believe I'm the only one seeing this problem...
Regards!
It seems to be a general performance problem of Sab when pushing larger NZBs. The program completely freezes, downloads and postprocessing stops, , the web interface is not accessible anymore, etc.
Hard to believe I'm the only one seeing this problem...
Regards!
Re: Pushing NZBs to Sabnzbd+ via API extremely slow!
Ok, good luck then!
Re: Pushing NZBs to Sabnzbd+ via API extremely slow!
When I try the CURL example, I get the following:
* Trying 192.168.0.100...
* TCP_NODELAY set
* Connected to 192.168.0.100 (192.168.0.100) port 8080 (#0)
> POST /sabnzbd/api HTTP/1.1
> Host: 192.168.0.100:8080
> User-Agent: curl/7.55.1
> Accept: */*
> Content-Length: 525
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=------------------------1bcc82fe742ea5ef
>
< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Content-Length: 118
< Vary: Accept-Encoding
< Server: CherryPy/8.1.2
< Pragma: no-cache
< Date: Mon, 28 Oct 2019 11:52:54 GMT
< Access-Control-Allow-Origin: *
< Content-Type: text/xml;charset=utf-8
<
<?xml version="1.0" encoding="UTF-8" ?>
<result><status>False</status>
<error>expect one parameter</error>
</result>
... and nothing is pushed to Sab.
* Trying 192.168.0.100...
* TCP_NODELAY set
* Connected to 192.168.0.100 (192.168.0.100) port 8080 (#0)
> POST /sabnzbd/api HTTP/1.1
> Host: 192.168.0.100:8080
> User-Agent: curl/7.55.1
> Accept: */*
> Content-Length: 525
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=------------------------1bcc82fe742ea5ef
>
< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Content-Length: 118
< Vary: Accept-Encoding
< Server: CherryPy/8.1.2
< Pragma: no-cache
< Date: Mon, 28 Oct 2019 11:52:54 GMT
< Access-Control-Allow-Origin: *
< Content-Type: text/xml;charset=utf-8
<
<?xml version="1.0" encoding="UTF-8" ?>
<result><status>False</status>
<error>expect one parameter</error>
</result>
... and nothing is pushed to Sab.
Re: Pushing NZBs to Sabnzbd+ via API extremely slow!
Strange, unless you have 4K blu-rays it shouldn't take that long.. What are the file sizes you are using?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Re: Pushing NZBs to Sabnzbd+ via API extremely slow!
The NZB files are about 10 MB. Some even larger.
It realls is a performance problem - Sab stops all activities (and responding) during the time it gets a NZB pushed. Everything else seems to be fast, only pushing NZBs via API is extremely slow.
I really wish it was written in C++, then all these performance issues would most likely not exist...
Regards!
It realls is a performance problem - Sab stops all activities (and responding) during the time it gets a NZB pushed. Everything else seems to be fast, only pushing NZBs via API is extremely slow.
I really wish it was written in C++, then all these performance issues would most likely not exist...
Regards!
Re: Pushing NZBs to Sabnzbd+ via API extremely slow!
That would indeed be great.. However it's not, we have to deal with Python.
Although in the new Python 3 version I have improved NZB-import functioning a lot
Although in the new Python 3 version I have improved NZB-import functioning a lot
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Re: Pushing NZBs to Sabnzbd+ via API extremely slow!
Still, importing NZBs seems to be an extreme bottleneck causing the whole program to freeze for a long time, which in turn causes a lot of problems and errors...
The code definitely needs a lot of optimization - maybe simply use more memory, etc.
The code definitely needs a lot of optimization - maybe simply use more memory, etc.
Re: Pushing NZBs to Sabnzbd+ via API extremely slow!
Just to be sure: in the Status and Interface settings window, what is you logging level set to? Errors/Warnings only?
The importer generates a lot of logging if set to Debug, making it very slow.
As mentioned before the Python 3 version is much faster. It takes a few seconds only to import 10MB files.
The importer generates a lot of logging if set to Debug, making it very slow.
As mentioned before the Python 3 version is much faster. It takes a few seconds only to import 10MB files.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Re: Pushing NZBs to Sabnzbd+ via API extremely slow!
Hi!
The logging level is set to "+Info".
Where do I get the Python 3 version? I'm using the regular v2.3.9 available from the website.
Regards!
The logging level is set to "+Info".
Where do I get the Python 3 version? I'm using the regular v2.3.9 available from the website.
Regards!