Page 1 of 1

Filename Error

Posted: October 23rd, 2016, 10:25 pm
by ppow
Getting the following error repeatedly:
Traceback (most recent call last):
File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/usr/share/sabnzbdplus/cherrypy/lib/encoding.py", line 220, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/share/sabnzbdplus/cherrypy/_cpdispatch.py", line 60, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/share/sabnzbdplus/cherrypy/_cptools.py", line 177, in handle_func
handled = self.callable(*args, **self._merged_args(kwargs))
TypeError: staticfile() got multiple values for keyword argument 'filename'
Everything appears to be working normally but the error keeps showing up randomly.

Re: Filename Error

Posted: October 23rd, 2016, 11:15 pm
by safihre
We are aware of the error and it hope it will be fixed when we upgrade our web server system in sabnzbd 1.2.0.
You can see in the logs which IP address tried to connect that caused this error. For all the other users experiencing this problem, it turned out to be port scanners! So maybe change your public port on which you make sabnzbd available to the world.
Or is your Sab not accessible from outside the network?

Re: Filename Error

Posted: October 24th, 2016, 1:09 am
by ppow
Yes, it's accessible. And the logs show that the errors are the result of a connection from a single IP located in Russia. I'll try changing the port number and see if I continue to get errors.
Thanks.

Re: Filename Error

Posted: October 24th, 2016, 1:52 am
by safihre
Russia again.. For the other 2 users it was also from Russia..

Re: Filename Error

Posted: July 20th, 2018, 3:26 am
by guitarboy
I've started to get this error with SABnzbd 2.3.4 on Windows. And yes, the connection listed in the log file is from Russia. Before I start fiddling with port numbers, please explain what is going on. Is this some kind of network attack, or is it possible that my usenet host or NZB index site is located at that IP? How will changing the port prevent this error?

Re: Filename Error

Posted: July 20th, 2018, 3:49 am
by safihre
They are scanning ports to see if there are any vulnerable services.

Re: Filename Error

Posted: July 20th, 2018, 11:37 pm
by guitarboy
safihre wrote: July 20th, 2018, 3:49 am They are scanning ports to see if there are any vulnerable services.
Ok, thanks.

This article has a good explanation of this type of vulnerability: https://www.csoonline.com/article/31915 ... ports.html.

The recommendation is to pick a port in the higher range (> 25000). Those ports are less likely to be scanned.

To configure SABnzbd to accept requests on a new port, change the SABnzbd Port in config/general. If you're integrating with SABnzbd from an external site (e.g. an NZB indexing site), update the SABnzbd Integration URL on the external site. You may also have to add a port forwarding rule on your router to send requests on that port to the device running SABnzbd.

Does it make sense for the documentation to recommend a less vulnerable port number for users who are integrating with external sites?