2011-12-08, 21:22
Hi,
I posted this on the openelec forums as well but thought I'd try here too since I've had no luck there so far:
http://www.openelec.tv/forum/28-issue-re...nzbd-suite
Basically if a XBMC service addon is running and using a port (in my case it is either Sabnzbd service or transmission), and XBMC crashes and restarts itself, the port that XBMC was previously using seems to be blocked by the service addon and so the webserver fails to start.
After a clean boot of openelec I can see from netstat -tunlp that xbmc.bin is listening on the expected port, in my case I am using port 19806
tcp 0 0 0.0.0.0:19806 0.0.0.0:* LISTEN 1127/xbmc.bin
but if I kill process 1127 all of a sudden something else grabs the port
tcp 0 0 0.0.0.0:19806 0.0.0.0:* LISTEN 1381/python
which ps -ef | grep 1381 reveals to be
1381 root 0:01 python /storage/.xbmc/addons/service.downloadmanager.SABnzbd-Suite/SABnzbd/SABnzbd.py -d -f /storage/.xbmc/userdata/addon_data/service.downloadmanager.SABnzbd-Suite/sabnzbd.ini -l 0
But unfortunately I can't imagine why this would be or how to stop it happening. Could one of the devs please help? Or perhaps someone can suggest a workaround, like reserving the port for exclusive use by xbmc.bin.
Thanks for any help
I posted this on the openelec forums as well but thought I'd try here too since I've had no luck there so far:
http://www.openelec.tv/forum/28-issue-re...nzbd-suite
Basically if a XBMC service addon is running and using a port (in my case it is either Sabnzbd service or transmission), and XBMC crashes and restarts itself, the port that XBMC was previously using seems to be blocked by the service addon and so the webserver fails to start.
After a clean boot of openelec I can see from netstat -tunlp that xbmc.bin is listening on the expected port, in my case I am using port 19806
tcp 0 0 0.0.0.0:19806 0.0.0.0:* LISTEN 1127/xbmc.bin
but if I kill process 1127 all of a sudden something else grabs the port
tcp 0 0 0.0.0.0:19806 0.0.0.0:* LISTEN 1381/python
which ps -ef | grep 1381 reveals to be
1381 root 0:01 python /storage/.xbmc/addons/service.downloadmanager.SABnzbd-Suite/SABnzbd/SABnzbd.py -d -f /storage/.xbmc/userdata/addon_data/service.downloadmanager.SABnzbd-Suite/sabnzbd.ini -l 0
But unfortunately I can't imagine why this would be or how to stop it happening. Could one of the devs please help? Or perhaps someone can suggest a workaround, like reserving the port for exclusive use by xbmc.bin.
Thanks for any help