Webserver only partially working?
#1
System:
Ubuntu 12.04 32 bit / 8 GB RAM
3.2.0-20-generic-pae #33-Ubuntu SMP Tue Mar 27 17:05:18 UTC 2012 i686 i686 i386 GNU/Linux
MySQL database (on local box)
XBMC - GIT 20120330-ec949e6
Log is here

Seems that somewhere in the last couple days, the Webserver has started having some possible issues.
- I can browse to http://192.168.1.2:9006/jsonrpc and get the message "JSONRPC active and working"
- I can send the UpdateLIbrary command http://192.168.1.2:9006/xbmcCmds/xbmcHtt...ary(video) and XBMC logs show a successful update
- I can load the Webserver interface, but it immediately shows "Connection server lost" See screenshot below.
- None of the options in the WebInterface will load (Movies, TV Shows or Music)
- Connection to MYSQL is successful in XBMC
- External programs (XBMC.MyLibrary and HTPC-Manager) no longer show Library data (Recent Movies, Library view, etc)
- XBMC Logs show that webserver starts with no problems, but don't show any connection info

Not sure where to go from here. Any help?

Image

EDIT - Here's what XBMC.MyLibrary shows when trying to connect
Quote:03/30/2012 12:03:41 AM ERROR Init Failed to POST to http://192.168.1.2:9006/jsonrpc
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:78)
at java.io.InputStreamReader.<init>(InputStreamReader.java:72)
at utilities.tools.readStream(tools.java:1119)
at utilities.tools.post(tools.java:1099)
at utilities.XbmcJsonRpc.callMethodWithRetry(XbmcJsonRpc.java:748)
at utilities.XbmcJsonRpc.callMethod(XbmcJsonRpc.java:699)
at utilities.XbmcJsonRpc.ping(XbmcJsonRpc.java:608)
at mylibrary.importer.importVideos(importer.java:175)
at mylibrary.importer.main(importer.java:35)

03/30/2012 12:03:41 AM WARNING Init The response from XBMC is not a valid JSON string:

Reply
#2
On march 27th, montellese pushed an update that requires JSON request to set a proper Content-Type header.
I could imagine that the web interface hasn't been updated to reflect this yet.
Reply
#3
(2012-03-30, 16:43)grywnn Wrote: On march 27th, montellese pushed an update that requires JSON request to set a proper Content-Type header.
I could imagine that the web interface hasn't been updated to reflect this yet.

Thanks. Guess I'll what and see then.
Reply
#4
I thought the default web interface add-on already has the changes required.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
Jonathan - Any ideas where I can begin troubleshooting this then?
Reply
#6
Well i've just been guessing, and the thing with the headers would have fit the description.
But a quick look into the web interface code confirms that the request headers are indeed set currectly, so the problem must be somewhere else.
Reply
#7
Can confirm this problem.
Webinterface shows same behavior, apps (XBMoteC, HD Remote, Ultimote) cannot load library, but can control XBMC (Ultimote: start, stop, etc.).
Reply
#8
Bump....
Reply
#9
Bumping again.....had switched back to just the regular Eden install for a while and everything worked fine again. I thought I'd try to update to the latest git again and the problem is back. Anyone have any ideas on this?
Reply
#10
(2012-05-03, 02:13)Aenima99x Wrote: Bumping again.....had switched back to just the regular Eden install for a while and everything worked fine again. I thought I'd try to update to the latest git again and the problem is back. Anyone have any ideas on this?

I experience the same problem, is there still no solution for this?
Reply
#11
The "Connection to server lost" issue persists in Kodi 14.2.

In my case, it has to do with whether I access the interface through the default URL, or through /addons/webinterface.default.

If I go to http://<kodi-host>/, there's no issue. If I go to http://<kodi-host>/addons/webinterface.default/, a connection problem is reported as per the screen shot in the original post of this thread.

The failing page keeps trying to access this location (and failing):

http://<kodi-host>/addons/webinterface.default/jsonrpc?Player.GetActivePlayers

The non-failing page keeps trying to access this location (and succeeding):

http://<kodi-host>/jsonrpc?Player.GetActivePlayers

So I guess the default web interface assumes that it's always being served from the root. If it were to call "/jsonrpc" rather than "jsonrpc", this particular issue would go away.
Reply
#12
Why are you trying to access it like that?
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#13
(2015-05-05, 08:28)nickr Wrote: Why are you trying to access it like that?
Because Kodi explicitly claims to support it:

http://kodi.wiki/view/Web_interface#Usin...es_at_once
Reply
#14
You should try with Isengard beta1, iirc webserver part was rewritten now.
Reply
#15
(2015-05-05, 14:05)Alex Peters Wrote:
(2015-05-05, 08:28)nickr Wrote: Why are you trying to access it like that?
Because Kodi explicitly claims to support it:

http://kodi.wiki/view/Web_interface#Usin...es_at_once
Thanks, I learned something!
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply

Logout Mark Read Team Forum Stats Members Help
Webserver only partially working?0