hi Schreder,
some more debug infor, i checked the console log in browser and found no error,
Init UBUS ->
01-juci.js:48 registering: session.access, method: undefined
01-juci.js:48 registering: session.login, method: undefined
01-juci.js:48 registering: local.features, method: undefined
01-juci.js:48 registering: local.set_rpc_host, method: undefined
01-juci.js:48 registering: dhcp, method: ipv4leases
01-juci.js:48 registering: dhcp, method: ipv6leases
01-juci.js:48 registering: juci.event, method: poll
01-juci.js:48 registering: juci.events, method: list
01-juci.js:48 registering: juci.network.netdevd, method: autoconf
01-juci.js:48 registering: juci.ui, method: menu
01-juci.js:48 registering: juci.ui, method: acls
01-juci.js:48 registering: log, method: read
01-juci.js:48 registering: log, method: write
.................
but there is is alert window
’Can not establish ubus connection to router. If the router is rebooting then please wait a few minutes and try again‘
every time during visit. i check the juci.js a little and found it request for ubus.juci.system.
in my machine(BB x86-generic), i got following rpc registered. anything still missing? thanks.
root@OpenWrt:~# ubus list
dhcp
juci.event
juci.events
juci.network.netdevd
juci.ui
log
network
network.device
network.interface
network.interface.lan
network.interface.loopback
network.interface.wan6
network.wireless
service
session
sys.dect
system
uci
br
Allen
allenw wrote:hello mkschreder,
I am interested in your great project, and I tried to build under openwrt BB with your lasted juci branch. and after compilation I want to test is on local but always with following error. I am kind new to JS and found no clue by google it.
could you help give some help? thanks.
sudo ./juci-local-server --host 192.168.56.101
............................
Adding bin/www/js/90-juci-samba.tpl.js to index
Adding bin/www/js/90-juci-sysupgrade.tpl.js to index
Adding bin/www/js/90-juci-theme-inteno.tpl.js to index
Adding bin/www/js/90-juci-upnp.tpl.js to index
Adding bin/www/js/90-juci-usb.tpl.js to index
Adding bin/www/js/99-translations.js to index
./juci-update: 95: [: DEBUG: unexpected operator
Recompiled gui, code: 0
JSON_CALL (-> http://192.168.56.101/ubus): {"jsonrpc":"2.0","method":"list","id":1,"params":["00000000000000000000000000000000","*","",{}]}
ERROR: Error: connect ECONNREFUSED: undefined: undefined
JSON_RESP: {"jsonrpc":"2.0","result":[1,"Error: connect ECONNREFUSED"]}
JSON_CALL (-> http://192.168.56.101/ubus): {"jsonrpc":"2.0","method":"list","id":1,"params":["00000000000000000000000000000000","*","",{}]}
ERROR: Error: connect ECONNREFUSED: undefined: undefined
JSON_RESP: {"jsonrpc":"2.0","result":[1,"Error: connect ECONNREFUSED"]}
^Calan@alan:~/Work/openwrt/barrier_breaker/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/juci-e70a890b05baf840c4b75898be255f8607d79c10$
br
Allen