Forum
[PROBLEM] Yatse and Beta2 - Cannot remote control - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Remotes and CEC support (/forum-26.html)
+--- Thread: [PROBLEM] Yatse and Beta2 - Cannot remote control (/thread-1823.html)



Yatse and Beta2 - Cannot remote control - ilgrank - 28th Nov, 2013 07:54 AM

Hi
Just installed Beta 2 fresh from the Windows Installer
everything seems to work except for :
SYSTEM->SERVICES->Remote Control->Allow program on other system to control XMBC

when I click it, I get the error: "Failed to start"

in the xbmc log i do have (I'm not posting it to pastebin because it is very small.. i hope it is within the rules):

16:43:30 T:2853393472 NOTICE: Thread CEventServer start, auto delete: false
16:43:30 T:2853393472 NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
16:43:30 T:2853393472 NOTICE: UDP: Listening on port 9777
16:43:32 T:3041509920 NOTICE: ES: Stopping event server with confirmation
16:43:33 T:2853393472 NOTICE: ES: UDP Event server stopped
16:43:33 T:3041509920 NOTICE: ES: Starting event server
16:43:33 T:3041509920 ERROR: JSONRPC Server: Failed to bind serversocket

and the error repeats every time I try to start it.

In Yatse, I can move the cursor but nothing else (no play, stop, info and so on)
In Alpha 5 and Beta 1 it used to work..

Thanks for the great work guys!


RE: Yatse and Beta2 - Cannot remote control - IriDium - 28th Nov, 2013 11:49 PM

Yes I've just tried and it did error. However, if I click on it again to deselect it and then select it again - it works.

I haven't got Yatse so can't test, but I have used the XBMC remote and this works without this setting. Have you tried without it?


RE: Yatse and Beta2 - Cannot remote control - ilgrank - 29th Nov, 2013 04:24 AM

(28th Nov, 2013 11:49 PM)IriDium Wrote:  Yes I've just tried and it did error. However, if I click on it again to deselect it and then select it again - it works.

I haven't got Yatse so can't test, but I have used the XBMC remote and this works without this setting. Have you tried without it?

I've tried several times and I always get the same error.
XBMC remote, like Yatse, uses both the event server (which works) and the http server to remotely control XBMC. (as explained here:
http://yatse.leetzone.org/redmine/issues/555
)


RE: Yatse and Beta2 - Cannot remote control - f1vefour - 29th Nov, 2013 04:30 AM

Try reinstalling XBMC as I use Yatse without issue.


RE: Yatse and Beta2 - Cannot remote control - rikardo1979 - 29th Nov, 2013 05:58 AM

@ilgrank are you sure you have all settings in XBMC right? Please can you post how does all your settings looks like in System>Services
-thx-


AW: RE: Yatse and Beta2 - Cannot remote control - freem@n - 29th Nov, 2013 08:44 AM

(29th Nov, 2013 04:30 AM)f1vefour Wrote:  Try reinstalling XBMC as I use Yatse without issue.

+1 it's my only remote control for XBian at the moment so it would be a real problem if it wasn't working anymore


RE: Yatse and Beta2 - Cannot remote control - BINairLADEN - 29th Nov, 2013 08:19 PM

(29th Nov, 2013 08:44 AM)freem@n Wrote:  
(29th Nov, 2013 04:30 AM)f1vefour Wrote:  Try reinstalling XBMC as I use Yatse without issue.

+1 it's my only remote control for XBian at the moment so it would be a real problem if it wasn't working anymore

+1 Same here, also in combination with MediaElch TCP 9090


RE: Yatse and Beta2 - Cannot remote control - ilgrank - 29th Nov, 2013 11:56 PM

Moving the port from 80 to 8080 solved the problem.
The service still cant' start tho.. any idea?


RE: Yatse and Beta2 - Cannot remote control - rikardo1979 - 30th Nov, 2013 12:50 AM

(29th Nov, 2013 11:56 PM)ilgrank Wrote:  Moving the port from 80 to 8080 solved the problem.
The service still cant' start tho.. any idea?

i have asked you for some details in post #5, but for some reason you have not provided those??? So how do you want someone to help you if you ignoring others?


RE: Yatse and Beta2 - Cannot remote control - IriDium - 30th Nov, 2013 01:35 AM

Moved to correct Forum


RE: Yatse and Beta2 - Cannot remote control - mk01 - 1st Dec, 2013 10:19 AM

(28th Nov, 2013 07:54 AM)ilgrank Wrote:  16:43:33 T:3041509920 ERROR: JSONRPC Server: Failed to bind serversocket

until you get JSONRPC interface working, Yatse won't work. this log entry means, JSONRPC server can't bind to server port (by default 8080 as per webserver port setting). what you have to check is:

1) your httpproxyport is set to a port higher than 1024 (otherwise XBMC running under unprivileged user can't bind to it). you can do
Terminal

grep -i <httpproxyport> /home/xbian/.xbmc/userdata/guisettings.xml

to check this

2) when XBMC will start, no other program/service can be bound to the port from 1). this you can check with
Code:
sudo fuser [portnumber_from_1)]/tcp
(e.g. sudo fuser 8080/tcp)

when XBMC is STOPPED. if you get empty output, it is ok. if you get listing as this
Terminal

root@xbian05:~# fuser 8080/tcp
8080/tcp: 2245
root@xbian05:~#

is wrong as process with PID 2245 is already using that port

3) XBMC webserver is set to start. you will see record like this in xbmc.log
Terminal

01:06:30 T:3041677856 NOTICE: WebServer: Started the webserver

4) after start of XBMC "fuser ……" command used in step 2) should return PID of "xbmc.bin" process what you can check with:
Terminal

root@xbian05:~# fuser 8080/tcp
8080/tcp: 2245
oot@xbian05:~# ps aux | grep 2245
xbian 2245 54.0 28.8 263544 35840 ? R<sl 01:01 9:06 /usr/local/lib/xbmc/xbmc.bin --standalone -fs --lircdev /run/lirc/lircd

5) you can access http://my_rpi_ip_address:8080/jsonrpc from browser on any other PC on your local network