Page 1 of 1

SABnzbd stops responding on port 8080 after a few minutes - task still running

Posted: February 25th, 2019, 9:45 am
by stoop
I am running SABnzbd on a Windows 10 machine, on port 8080.

When I first start SAB everything is OK for a brief few minutes then if I try and open a new browser window to 8080 I get a Firefox can’t establish a connection to the server at 192.168.1.10:8080. error.

Looking at the logs I can see these - any ideas?:

Traceback (most recent call last):
File "cherrypy\process\servers.pyo", line 207, in _start_http_thread
File "cherrypy\wsgiserver\__init__.pyo", line 2012, in start
error: No socket could be created -- (('192.168.1.10', 8080): [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions)

2019-02-24 17:19:54,661::INFO::[_cplogging:219] [24/Feb/2019:17:19:54] ENGINE Bus STOPPING
2019-02-24 17:19:54,661::INFO::[_cplogging:219] [24/Feb/2019:17:19:54] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.1.10', 8080)) already shut down
2019-02-24 17:19:54,661::INFO::[_cplogging:219] [24/Feb/2019:17:19:54] ENGINE Bus STOPPED
2019-02-24 17:19:54,661::INFO::[_cplogging:219] [24/Feb/2019:17:19:54] ENGINE Bus EXITING
2019-02-24 17:19:54,661::INFO::[_cplogging:219] [24/Feb/2019:17:19:54] ENGINE Bus EXITED
2019-02-24 17:23:53,407::INFO::[_cplogging:219] [24/Feb/2019:17:23:53] ENGINE Bus STARTING
2019-02-24 17:24:43,915::ERROR::[_cplogging:219] [24/Feb/2019:17:24:43] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x0000000003216748>>
Traceback (most recent call last):
File "cherrypy\process\wspbus.pyo", line 207, in publish
File "cherrypy\_cpserver.pyo", line 168, in start
File "cherrypy\process\servers.pyo", line 179, in start
File "cherrypy\process\servers.pyo", line 237, in wait
File "cherrypy\process\servers.pyo", line 463, in wait_for_occupied_port
IOError: Port 8080 not bound on '192.168.1.10'

2019-02-24 17:24:43,917::ERROR::[_cplogging:219] [24/Feb/2019:17:24:43] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
File "cherrypy\process\wspbus.pyo", line 245, in start
File "cherrypy\process\wspbus.pyo", line 225, in publish
ChannelFailures: IOError("Port 8080 not bound on '192.168.1.10'",)

Re: SABnzbd stops responding on port 8080 after a few minutes - task still running

Posted: February 25th, 2019, 9:49 am
by stoop
In addition if I do a tasklist | find /i "Sabnzbd", I get :
SABnzbd.exe 8976 RDP-Tcp#2 2 89,484 K

And then a netstat -aon | find /i "8976" gives me:
TCP 127.0.0.1:8080 0.0.0.0:0 LISTENING 8976
TCP 127.0.0.1:8080 127.0.0.1:52344 ESTABLISHED 8976
TCP 127.0.0.1:8080 127.0.0.1:52439 ESTABLISHED 8976
TCP 127.0.0.1:8080 127.0.0.1:52440 ESTABLISHED 8976
TCP 127.0.0.1:8080 127.0.0.1:52457 ESTABLISHED 8976
TCP 127.0.0.1:52287 127.0.0.1:5354 ESTABLISHED 8976

Not sure if there should only be one entry here.

Re: SABnzbd stops responding on port 8080 after a few minutes - task still running

Posted: February 25th, 2019, 3:20 pm
by sander
So ... SAB is (suddenly?) listening on port 8976? Can you connect to that port with Firefox?

Re: SABnzbd stops responding on port 8080 after a few minutes - task still running

Posted: February 26th, 2019, 3:46 am
by safihre
Why did you force the IP of 192.168.1.10?
In SABnzbd > Config > General you should set the host to either 0.0.0.0 for access from external PC's in your network or localhost to only allow access from your current PC.

Re: SABnzbd stops responding on port 8080 after a few minutes - task still running

Posted: February 27th, 2019, 4:25 pm
by stoop
sander wrote: February 25th, 2019, 3:20 pm So ... SAB is (suddenly?) listening on port 8976? Can you connect to that port with Firefox?
8976 is the PID, not the port of the SABnzbd task.

Re: SABnzbd stops responding on port 8080 after a few minutes - task still running

Posted: February 27th, 2019, 6:18 pm
by stoop
safihre wrote: February 26th, 2019, 3:46 am Why did you force the IP of 192.168.1.10?
In SABnzbd > Config > General you should set the host to either 0.0.0.0 for access from external PC's in your network or localhost to only allow access from your current PC.
OK, I changed the .ini file to 0.0.0.0 and now I get this :

2019-02-27 18:11:20,201::INFO::[_cplogging:219] [27/Feb/2019:18:11:20] ENGINE Bus STARTING
2019-02-27 18:11:20,339::ERROR::[_cplogging:219] [27/Feb/2019:18:11:20] ENGINE Error in HTTP server: shutting down
Traceback (most recent call last):
File "cherrypy\process\servers.pyo", line 207, in _start_http_thread
File "cherrypy\wsgiserver\__init__.pyo", line 2012, in start
error: No socket could be created -- (('0.0.0.0', 8080): [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions)

2019-02-27 18:11:20,339::INFO::[_cplogging:219] [27/Feb/2019:18:11:20] ENGINE Bus STOPPING
2019-02-27 18:11:20,339::INFO::[_cplogging:219] [27/Feb/2019:18:11:20] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) already shut down
2019-02-27 18:11:20,339::INFO::[_cplogging:219] [27/Feb/2019:18:11:20] ENGINE Bus STOPPED
2019-02-27 18:11:20,339::INFO::[_cplogging:219] [27/Feb/2019:18:11:20] ENGINE Bus EXITING
2019-02-27 18:11:20,339::INFO::[_cplogging:219] [27/Feb/2019:18:11:20] ENGINE Bus EXITED
2019-02-27 18:11:52,992::INFO::[_cplogging:219] [27/Feb/2019:18:11:52] ENGINE Bus STARTING
2019-02-27 18:11:53,145::ERROR::[_cplogging:219] [27/Feb/2019:18:11:53] ENGINE Error in HTTP server: shutting down
Traceback (most recent call last):
File "cherrypy\process\servers.pyo", line 207, in _start_http_thread
File "cherrypy\wsgiserver\__init__.pyo", line 2012, in start
error: No socket could be created -- (('0.0.0.0', 8080): [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions)

2019-02-27 18:11:53,145::INFO::[_cplogging:219] [27/Feb/2019:18:11:53] ENGINE Bus STOPPING
2019-02-27 18:11:53,145::INFO::[_cplogging:219] [27/Feb/2019:18:11:53] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) already shut down
2019-02-27 18:11:53,145::INFO::[_cplogging:219] [27/Feb/2019:18:11:53] ENGINE Bus STOPPED
2019-02-27 18:11:53,145::INFO::[_cplogging:219] [27/Feb/2019:18:11:53] ENGINE Bus EXITING
2019-02-27 18:11:53,145::INFO::[_cplogging:219] [27/Feb/2019:18:11:53] ENGINE Bus EXITED

Re: SABnzbd stops responding on port 8080 after a few minutes - task still running

Posted: February 28th, 2019, 4:08 pm
by safihre
Google the error and you'll see that this can mean a number of things. Either other processes or permission restrictions.