Sabnzbd on seedbox with GUI binding to openvpn endpoint
Posted: March 10th, 2016, 5:57 am
I am testing sabnzbd on a seedbox. In order to not expose sabnzbd GUI ports to public internet I have setup an openVPN connection between the seedbox and my local machine. (because I don't have root on the seedbox, fancy routing, fire-walling isn't an option)
OpenVPN is functional, I can ssh from my local computer into the seedbox over the VPN connection. I can also direct Sabnzb to bind to the seedbox's vpn endpoint IP. And using a web browser I can also log into the sabnzbd GUI by pointing my local browser to the seedbox's enpoint address and the port assigned to sabnzbd (for a while, sometimes).
Here is how sabnzb is invoked:
Here is the log:
But before killing, if I point my browser to 10.8.0.1:9834, something is still alive there serving the sabnzbd GUI. I'm not making this up. I can do things on the GUI, but downloads stop. the text log window just hangs forever until kill -9 puts it out of its misery.
Any ideas?
OpenVPN is functional, I can ssh from my local computer into the seedbox over the VPN connection. I can also direct Sabnzb to bind to the seedbox's vpn endpoint IP. And using a web browser I can also log into the sabnzbd GUI by pointing my local browser to the seedbox's enpoint address and the port assigned to sabnzbd (for a while, sometimes).
Here is how sabnzb is invoked:
Code: Select all
python ~/SABnzbd/SABnzbd.py -b0 -f ~/.sabnzbd/sabnzbd.ini --server 10.8.0.1:9833 --https 9834 --no_ipv6Code: Select all
2016-03-10 10:34:59,283::INFO::[SABnzbd:1262] --------------------------------
2016-03-10 10:34:59,284::INFO::[SABnzbd:1263] SABnzbd.py-0.7.20 (rev=1df2943d05d64915a166e2c97e1eef86f72e3ff3)
2016-03-10 10:34:59,284::INFO::[SABnzbd:1275] Platform = posix
2016-03-10 10:34:59,284::INFO::[SABnzbd:1276] Python-version = 2.7.10 (default, Mar 2 2016, 20:14:31)
[GCC 4.9.2]
2016-03-10 10:34:59,284::INFO::[SABnzbd:1277] Arguments = /home/xxx/SABnzbd/SABnzbd.py -b0 -f /home/xxx/.sabnzbd/sabnzbd.ini --server 10.8.0.1:9833 --https 9834 --no_ipv6
2016-03-10 10:34:59,285::INFO::[SABnzbd:1327] Read INI file /home/xxx/.sabnzbd/sabnzbd.ini
2016-03-10 10:34:59,286::INFO::[__init__:943] Loading data for bookmarks.sab from /home/xxx/.sabnzbd/admin/bookmarks.sab
2016-03-10 10:34:59,287::INFO::[__init__:943] Loading data for rss_data.sab from /home/xxx/.sabnzbd/admin/rss_data.sab
2016-03-10 10:34:59,287::INFO::[__init__:943] Loading data for totals9.sab from /home/xxx/.sabnzbd/admin/totals9.sab
2016-03-10 10:34:59,287::INFO::[postproc:91] Loading postproc queue
2016-03-10 10:34:59,288::INFO::[__init__:943] Loading data for postproc1.sab from /home/xxx/.sabnzbd/admin/postproc1.sab
2016-03-10 10:34:59,288::INFO::[__init__:943] Loading data for queue9.sab from /home/xxx/.sabnzbd/admin/queue9.sab
2016-03-10 10:34:59,289::INFO::[__init__:943] Loading data for watched_data.sab from /home/xxx/.sabnzbd/admin/watched_data.sab
2016-03-10 10:34:59,290::INFO::[__init__:943] Loading data for Rating.sab from /home/xxx/.sabnzbd/admin/Rating.sab
2016-03-10 10:34:59,290::INFO::[__init__:946] /home/xxx/.sabnzbd/admin/Rating.sab missing, trying old cache
2016-03-10 10:34:59,290::INFO::[__init__:949] /home/xxx/.sabnzbd/cache/Rating.sab missing
2016-03-10 10:34:59,291::INFO::[scheduler:172] Setting schedule for midnight BPS reset
2016-03-10 10:34:59,291::INFO::[downloader:211] Resuming
2016-03-10 10:34:59,297::INFO::[__init__:335] All processes started
2016-03-10 10:34:59,298::INFO::[SABnzbd:335] Web dir is /home/xxx/SABnzbd/interfaces/Plush
2016-03-10 10:34:59,298::INFO::[SABnzbd:335] Web dir is /home/xxx/SABnzbd/interfaces/Config
2016-03-10 10:34:59,303::INFO::[SABnzbd:464] _yenc module... found!
2016-03-10 10:34:59,304::INFO::[SABnzbd:472] par2 binary... found (/usr/bin/par2)
2016-03-10 10:34:59,304::INFO::[SABnzbd:480] unrar binary... found (/usr/bin/unrar)
2016-03-10 10:34:59,304::INFO::[SABnzbd:485] unzip binary... found (/usr/bin/unzip)
2016-03-10 10:34:59,304::INFO::[SABnzbd:491] nice binary... found (/usr/bin/nice)
2016-03-10 10:34:59,304::INFO::[SABnzbd:495] ionice binary... found (/usr/bin/ionice)
2016-03-10 10:34:59,304::INFO::[SABnzbd:500] pyOpenSSL... found (True)
2016-03-10 10:34:59,306::INFO::[SABnzbd:1528] Starting web-interface on 10.8.0.1:9834
2016-03-10 10:35:00,308::INFO::[_cplogging:55] [10/Mar/2016:10:35:00] ENGINE Bus STARTING
2016-03-10 10:35:00,311::INFO::[_cplogging:55] [10/Mar/2016:10:35:00] ENGINE Started monitor thread '_TimeoutMonitor'.
2016-03-10 10:35:55,568::ERROR::[_cplogging:55] [10/Mar/2016:10:35:55] ENGINE Error in 'start' listener <bound method ServerAdapter.start of <cherrypy.process.servers.ServerAdapter object at 0x7f79283fc0d0>>
Traceback (most recent call last):
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/servers.py", line 62, in start
self.wait()
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/servers.py", line 103, in wait
wait_for_occupied_port(host, port)
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/servers.py", line 275, in wait_for_occupied_port
raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 9833 not bound on '10.8.0.1'
2016-03-10 10:36:50,823::ERROR::[_cplogging:55] [10/Mar/2016:10:36:50] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x7f792a8e0d10>>
Traceback (most recent call last):
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/_cpserver.py", line 90, in start
ServerAdapter.start(self)
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/servers.py", line 62, in start
self.wait()
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/servers.py", line 103, in wait
wait_for_occupied_port(host, port)
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/servers.py", line 275, in wait_for_occupied_port
raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 9834 not bound on '10.8.0.1'
2016-03-10 10:36:50,824::ERROR::[_cplogging:55] [10/Mar/2016:10:36:50] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/wspbus.py", line 184, in start
self.publish('start')
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/_cpserver.py", line 90, in start
ServerAdapter.start(self)
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/servers.py", line 62, in start
self.wait()
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/servers.py", line 103, in wait
wait_for_occupied_port(host, port)
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/servers.py", line 275, in wait_for_occupied_port
raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 9834 not bound on '10.8.0.1'
2016-03-10 10:36:50,824::INFO::[_cplogging:55] [10/Mar/2016:10:36:50] ENGINE Bus STOPPING
2016-03-10 10:36:50,824::INFO::[_cplogging:55] [10/Mar/2016:10:36:50] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('10.8.0.1', 9834)) already shut down
2016-03-10 10:36:50,825::INFO::[_cplogging:55] [10/Mar/2016:10:36:50] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('10.8.0.1', 9833)) already shut down
2016-03-10 10:36:50,875::INFO::[_cplogging:55] [10/Mar/2016:10:36:50] ENGINE Stopped thread '_TimeoutMonitor'.
2016-03-10 10:36:50,875::INFO::[_cplogging:55] [10/Mar/2016:10:36:50] ENGINE Bus STOPPED
2016-03-10 10:36:50,875::INFO::[_cplogging:55] [10/Mar/2016:10:36:50] ENGINE Bus EXITING
2016-03-10 10:36:50,876::INFO::[_cplogging:55] [10/Mar/2016:10:36:50] ENGINE Bus EXITED
2016-03-10 10:36:50,876::ERROR::[SABnzbd:1543] Failed to start web-interface:
Traceback (most recent call last):
File "/home/xxx/SABnzbd/SABnzbd.py", line 1535, in main
cherrypy.engine.start()
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/wspbus.py", line 184, in start
self.publish('start')
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
output.append(listener(*args, **kwargs))
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/_cpserver.py", line 90, in start
ServerAdapter.start(self)
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/servers.py", line 62, in start
self.wait()
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/servers.py", line 103, in wait
wait_for_occupied_port(host, port)
File "/mnt/mpathq/xxx/SABnzbd/cherrypy/process/servers.py", line 275, in wait_for_occupied_port
raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 9834 not bound on '10.8.0.1'
2016-03-10 10:36:50,877::ERROR::[SABnzbd:304] Failed to start web-interface : Port 9834 not bound on '10.8.0.1'
2016-03-10 10:36:50,877::INFO::[__init__:373] SABnzbd shutting down...
2016-03-10 10:36:50,878::INFO::[__init__:919] Saving data for bookmarks.sab in /home/xxx/.sabnzbd/admin/bookmarks.sab
2016-03-10 10:36:50,878::INFO::[urlgrabber:72] URLGrabber shutting down
2016-03-10 10:36:50,879::INFO::[__init__:919] Saving data for watched_data.sab in /home/xxx/.sabnzbd/admin/watched_data.sab
2016-03-10 10:36:50,879::INFO::[dirscanner:268] Dirscanner shutting down
2016-03-10 10:36:51,381::INFO::[postproc:85] Saving postproc queue
2016-03-10 10:36:51,381::INFO::[__init__:919] Saving data for postproc1.sab in /home/xxx/.sabnzbd/admin/postproc1.sab
2016-03-10 10:36:51,382::INFO::[nzbqueue:218] Saving queue
2016-03-10 10:36:51,382::INFO::[__init__:919] Saving data for queue9.sab in /home/xxx/.sabnzbd/admin/queue9.sab
2016-03-10 10:36:51,382::INFO::[__init__:919] Saving data for totals9.sab in /home/xxx/.sabnzbd/admin/totals9.sab
2016-03-10 10:36:51,383::INFO::[__init__:919] Saving data for rss_data.sab in /home/xxx/.sabnzbd/admin/rss_data.sab
2016-03-10 10:36:51,383::INFO::[__init__:919] Saving data for bookmarks.sab in /home/xxx/.sabnzbd/admin/bookmarks.sab
2016-03-10 10:36:51,384::INFO::[__init__:919] Saving data for watched_data.sab in /home/xxx/.sabnzbd/admin/watched_data.sab
2016-03-10 10:36:51,384::INFO::[postproc:85] Saving postproc queue
2016-03-10 10:36:51,385::INFO::[__init__:919] Saving data for postproc1.sab in /home/xxx/.sabnzbd/admin/postproc1.sab
2016-03-10 10:36:51,385::INFO::[__init__:440] All processes stopped
Any ideas?