Problem with the webclient
Added by jediperry over 1 year ago
Hi,
Rather than continue my embarrassing trend of posting null bugs, I'll start here...
I am currently struggling to get the webclient going. The webpage loads with the message:
Cannot connect to the DomotiGa server!
In the DomotiGa server output I get
2012/03/07 20:51:31 [XMLRPC] Got a RemoteCall for method 'device.list'
2012/03/07 20:51:31 [XMLRPC] Got a RemoteCall for method 'mode.get_housemode'
2012/03/07 20:51:36 [XMLRPC] Got a RemoteCall for method 'device.list'
2012/03/07 20:51:36 [XMLRPC] Got a RemoteCall for method 'mode.get_housemode'
2012/03/07 20:51:36 [XMLRPC] Got a RemoteCall for method 'mode.get_mutemode'
and Domodroid functions correctly so it seems the xmlrpc server is working and apache is talking to it.
The only relevant apache log entry I can find is from /var/log/httpd/access_log
[10/Mar/2012:22:32:36 +0000] "GET /domotiga/ HTTP/1.1" 200 1054
[10/Mar/2012:22:32:41 +0000] "GET /domotiga/json.php?view=main HTTP/1.1" 200 47
[10/Mar/2012:22:32:46 +0000] "GET /domotiga/json.php?view=main HTTP/1.1" 200 47
etc
From other applications I know php is functioning correctly with apache. I have xmlrpc.so enabled.
So I am at a complete loss as to what the problem could be. Do you have any suggestions? Any modules I might be missing?
Thanks,
Mike.
p.s. Thanks for the amazing software, it is all very exciting!
:Edited to remove an ambiguity over where the first bit of debug text came from.
Replies (4)
RE: Problem with the webclient
-
Added by wwolkers over 1 year ago
Did you change the $rpc_connect setting in config.php by any chance?
Sounds like it's not set correctly.
RE: Problem with the webclient
-
Added by jediperry over 1 year ago
Hi, thanks for the suggestion.
Alas I have already tried http://localhost:9009, http://127.0.0.1:9009 and http://192.168.1.87:9009. (The external IP)
I also confirmed that the xmlrpc module is set to use port 9009.
I don't think this is the problem though as opening the webpage evokes the above debug output from the Domotiga xmlrpc module. It seems more like the php script doesn't receive the response or fails to interpret it, which would suggest some missing php component or excessive security setting.
I'll give it another bash this weekend.
RE: Problem with the webclient
-
Added by rdnzl over 1 year ago
create a test file to see the phpdebug output:
vi index.php <? phpinfo(); ?>
xmlrpc core library version xmlrpc-epi v. 0.51 php extension version 0.51 author Dan Libby homepage http://xmlrpc-epi.sourceforge.net open sourced by Epinions.com
RE: Problem with the webclient
-
Added by jediperry over 1 year ago
I get the same result.
Full output [[http://pastebin.com/KyDnWWbE]]
(1-4/4)