Having a bit of an issue and hoping someone can help me.
I am running XBMCBuntu Gotham (updated to 13.2). Since my need to is launch an app (EmulationStation) outside of XBMC, I am doing so by setting Openbox as the default desktop and launching XBMC from there so that I have an actual window manager running. Most of that work was taken from here:
http://forum.kodi.tv/showthread.php?tid=...pid1706466
I am using AL to launch EmulationStation via a bash script. Here are the contents...
Code:
#!/bin/bash
killall -9 xbmc.bin
emulationstation
xbmc
Doesn't get much simpler. Problem is that upon exiting EmulationStation and returning to XBMC, I am greeted with the "Remote Communication Server Failed to start" message. Here is the error taht is captured in the logs:
Code:
11:22:58 T:139663473002432 NOTICE: Running the application...
11:22:58 T:139662596859648 NOTICE: -->Python Interpreter Initialized<--
11:22:58 T:139662569682688 NOTICE: Thread JobWorker start, auto delete: true
11:22:58 T:139663473002432 NOTICE: starting zeroconf publishing
11:22:58 T:139663473002432 NOTICE: Webserver: Starting...
11:22:58 T:139662552897280 NOTICE: Thread JobWorker start, auto delete: true
11:22:58 T:139663473002432 NOTICE: WebServer: Started the webserver
11:22:58 T:139663473002432 NOTICE: starting upnp renderer
11:22:58 T:139662186239744 NOTICE: Thread JobWorker start, auto delete: true
11:22:58 T:139663473002432 NOTICE: ES: Starting event server
11:22:58 T:139662152668928 NOTICE: Thread EventServer start, auto delete: false
11:22:58 T:139662152668928 NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
11:22:58 T:139662152668928 NOTICE: UDP: Listening on port 9777
11:22:58 T:139663473002432 ERROR: JSONRPC Server: Failed to connect to sdpd
11:22:58 T:139663473002432 ERROR: JSONRPC Server: Failed to bind ipv4 serversocket
In my research I found that I can see which ports are currently in a listening state with the following command:
Code:
sudo lsof -i -P | grep -i "listen"
This produces....
Code:
xbmc@HTPCT420:~$ sudo lsof -i -P | grep -i "listen"
[sudo] password for xbmc:
smbd 670 root 30u IPv6 13423 0t0 TCP *:445 (LISTEN)
smbd 670 root 31u IPv6 13424 0t0 TCP *:139 (LISTEN)
smbd 670 root 32u IPv4 13425 0t0 TCP *:445 (LISTEN)
smbd 670 root 33u IPv4 13426 0t0 TCP *:139 (LISTEN)
rpcbind 683 root 8u IPv4 9142 0t0 TCP *:111 (LISTEN)
rpcbind 683 root 11u IPv6 9145 0t0 TCP *:111 (LISTEN)
rpc.statd 739 statd 8u IPv4 1684 0t0 TCP *:50943 (LISTEN)
rpc.statd 739 statd 10u IPv6 1688 0t0 TCP *:47329 (LISTEN)
sshd 1081 root 3u IPv4 13442 0t0 TCP *:22 (LISTEN)
sshd 1081 root 4u IPv6 13444 0t0 TCP *:22 (LISTEN)
dnsmasq 1308 nobody 5u IPv4 13987 0t0 TCP HTPCT420:53 (LISTEN)
sh 1774 xbmc 37u IPv4 14210 0t0 TCP *:1625 (LISTEN)
sh 1774 xbmc 44u IPv6 14217 0t0 TCP *:9090 (LISTEN)
es.sh 1775 xbmc 37u IPv4 14210 0t0 TCP *:1625 (LISTEN)
es.sh 1775 xbmc 44u IPv6 14217 0t0 TCP *:9090 (LISTEN)
xbmc 1779 xbmc 37u IPv4 14210 0t0 TCP *:1625 (LISTEN)
xbmc 1779 xbmc 44u IPv6 14217 0t0 TCP *:9090 (LISTEN)
xbmc.bin 1788 xbmc 37u IPv4 14210 0t0 TCP *:1625 (LISTEN)
xbmc.bin 1788 xbmc 44u IPv6 14217 0t0 TCP *:9090 (LISTEN)
xbmc.bin 1788 xbmc 51u IPv6 16643 0t0 TCP *:8080 (LISTEN)
xbmc.bin 1788 xbmc 52u IPv4 16647 0t0 TCP *:8080 (LISTEN)
xbmc.bin 1788 xbmc 59u IPv4 16658 0t0 TCP *:1764 (LISTEN)
If I am reading this right, does this mean that my shell script (named es.sh) itself is the culprit and listening on a port that XBMC wants to use (JSON)? If so, is there something I can add to the script to close itself before XBMC launches?
FYI...if I disable Settings --> Services --> Remote Control --> Allow programs on other systems to control XBMC, the error does not present itself.
TIA!
John