Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC error (system.board): {"jsonrpc":"2.0","id":1,"error":{"code":-32002,"message":"Access denied"}} #33

Closed
animavitis opened this issue Jan 12, 2016 · 5 comments

Comments

@animavitis
Copy link

Hi
I was able to build openwrtCC with JUCI for virtualbox and successfully run it. But after login page i get in console:

UBUS payload: {"jsonrpc":"2.0","method":"call","id":1,"params":["fd041fd8cb536a29fee7673ad4e6c309","system","board",{}]}
Response: {"jsonrpc":"2.0","id":1,"error":{"code":-32002,"message":"Access denied"}}

In console:
RPC error (system.board): {"jsonrpc":"2.0","id":1,"error":{"code":-32002,"message":"Access denied"}}request.error @ 01-juci.js:55

can u help me?

@mkschreder
Copy link
Owner

take a look at access.json files in juci. There you specify which ubus
calls you want to allow access to over rpc. Most likely system.board call
is not allowed or allowed in a plugin that you did not enable. Then it
could be a bug.
On 12 Jan 2016 14:33, "animavitis" notifications@github.com wrote:

Hi
I was able to build openwrtCC with JUCI for virtualbox and successfully
run it But after login page i get in console:

RPC error (systemboard):
{"jsonrpc":"20","id":1,"error":{"code":-32002,"message":"Access
denied"}}requesterror @ 01-jucijs:55
01-jucijs:56 Uncaught Error: [ng:areq]
http://errorsangularjsorg/1315/ng/areq?p0=OverviewPageCtrl&p1=not%20a%20function%2C%20got%20undefined
01-jucijs:42 Uncaught Error: [$rootScope:inprog]
http://errorsangularjsorg/1315/$rootScope/inprog?p0=%24digest

can u help me?


Reply to this email directly or view it on GitHub
#33.

@animavitis
Copy link
Author

now i have this in console:

Init UBUS ->
01-juci.js:56 Init UCI
01-juci.js:56 init: config
01-juci.js:55 RPC succeeded (uci.revert), but returned error: {"jsonrpc":"2.0","id":1,"result":[6,{"code":6}]}: Access denied
01-juci.js:56 Synched config juci
01-juci.js:56 Using settings from config/juci on router
01-juci.js:56 juci: loading menu from server..
01-juci.js:56 CONF
01-juci.js:56 juci: angular init
01-juci.js:40 Uncaught Error: [ng:areq] http://errors.angularjs.org/1.3.15/ng/areq?p0=OverviewPageCtrl&p1=not%20a%20function%2C%20got%20undefined(anonymous function) @ 01-juci.js:40Rb @ 01-juci.js:40sb @ 01-juci.js:40(anonymous function) @ 01-juci.js:41(anonymous function) @ 01-juci.js:41r @ 01-juci.js:40B @ 01-juci.js:41g @ 01-juci.js:41(anonymous function) @ 01-juci.js:41(anonymous function) @ 01-juci.js:41k @ 01-juci.js:41Ia.link @ 01-juci.js:44$ @ 01-juci.js:41B @ 01-juci.js:41g @ 01-juci.js:41g @ 01-juci.js:41g @ 01-juci.js:41g @ 01-juci.js:41g @ 01-juci.js:41g @ 01-juci.js:41B @ 01-juci.js:41(anonymous function) @ 01-juci.js:41(anonymous function) @ 01-juci.js:42n.$eval @ 01-juci.js:42n.$digest @ 01-juci.js:42n.$apply @ 01-juci.js:42(anonymous function) @ 01-juci.js:40e @ 01-juci.js:41d @ 01-juci.js:40uc @ 01-juci.js:40(anonymous function) @ 01-juci.js:56j @ 01-juci.js:29k.fireWith @ 01-juci.js:29e.(anonymous function) @ 01-juci.js:29(anonymous function) @ 01-juci.js:56(anonymous function) @ 01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @ 01-juci.js:56(anonymous function) @ 01-juci.js:1(anonymous function) @ 01-juci.js:1iterate @ 01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @ 01-juci.js:56(anonymous function) @ 01-juci.js:1(anonymous function) @ 01-juci.js:1iterate @ 01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @ 01-juci.js:56j @ 01-juci.js:29k.fireWith @ 01-juci.js:29e.(anonymous function) @ 01-juci.js:29(anonymous function) @ 01-juci.js:55j @ 01-juci.js:29k.fireWith @ 01-juci.js:29e.(anonymous function) @ 01-juci.js:29request.success @ 01-juci.js:55$.extend.jsonRPC._requestSuccess @ 01-juci.js:54$.ajax.success @ 01-juci.js:53j @ 01-juci.js:29k.fireWith @ 01-juci.js:29x @ 01-juci.js:30(anonymous function) @ 01-juci.js:30
01-juci.js:40 Uncaught Error: [$rootScope:inprog] http://errors.angularjs.org/1.3.15/$rootScope/inprog?p0=%24digest

@mkschreder
Copy link
Owner

How are you building? Did you enable minimal plugins and choose the default
theme? There is a makefile.local example file that gives you an example of
a package selection. You need to copy it to Makefile.local if you build
locally. Opnwrt build typically makes package selection using menuconfig,
therefore there is no need to use makefile.local when building with
openwrt.

You are most likely getting this error because you are not compiling in a
theme.
On 12 Jan 2016 22:29, "animavitis" notifications@github.com wrote:

now i have this in console:

Init UBUS ->
01-juci.js:56 Init UCI
01-juci.js:56 init: config
01-juci.js:55 RPC succeeded (uci.revert), but returned error:
{"jsonrpc":"2.0","id":1,"result":[6,{"code":6}]}: Access denied
01-juci.js:56 Synched config juci
01-juci.js:56 Using settings from config/juci on router
01-juci.js:56 juci: loading menu from server..
01-juci.js:56 CONF
01-juci.js:56 juci: angular init
01-juci.js:40 Uncaught Error: [ng:areq]
http://errors.angularjs.org/1.3.15/ng/areq?p0=OverviewPageCtrl&p1=not%20a%20function%2C%20got%20undefined(anonymous
function) @ 01-juci.js:40Rb @ 01-juci.js:40sb @ 01-juci.js:40(anonymous
function) @ 01-juci.js:41(anonymous function) @ 01-juci.js:41r @
01-juci.js:40B @ 01-juci.js:41g @ 01-juci.js:41(anonymous function) @
01-juci.js:41(anonymous function) @ 01-juci.js:41k @ 01-juci.js:41Ia.link @
01-juci.js:44$ @ 01-juci.js:41B @ 01-juci.js:41g @ 01-juci.js:41g @
01-juci.js:41g @ 01-juci.js:41g @ 01-juci.js:41g @ 01-juci.js:41g @
01-juci.js:41B @ 01-juci.js:41(anonymous function) @
01-juci.js:41(anonymous function) @ 01-juci.js:42n.$eval @
01-juci.js:42n.$digest @ 01-juci.js:42n.$apply @ 01-juci.js:42(anonymous
function) @ 01-juci.js:40e @ 01-juci.js:41d @ 01-juci.js:40uc @
01-juci.js:40(anonymous function) @ 01-juci.js:56j @
01-juci.js:29k.fireWith @ 01-juci.js:29e.(anonymous function) @
01-juci.js:29(anonymous function) @ 01-juci.js:56(anonymous function) @
01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @
01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @
01-juci.js:56(anonymous function) @ 01-juci.js:1(anonymous function) @
01-juci.js:1iterate @ 01-juci.js:1(anonymous function) @
01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @
01-juci.js:1(anonymous function) @ 01-juci.js:56(anonymous function) @
01-juci.js:1(anonymous function) @ 01-juci.js:1iterate @
01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @
01-juci.js:1(anonymous function) @ 01-juci.js:1(anonymous function) @
01-juci.js:56j @ 01-juci.js:29k.fireWith @ 01-juci.js:29e.(anonymous
function) @ 01-juci.js:29(anonymous function) @ 01-juci.js:55j @
01-juci.js:29k.fireWith @ 01-juci.js:29e.(anonymous function) @
01-juci.js:29request.success @ 01-juci.j
s:55$.extend.jsonRPC._requestSuccess @ 01-juci.js:54$.ajax.success @
01-juci.js:53j @ 01-juci.js:29k.fireWith @ 01-juci.js:29x @
01-juci.js:30(anonymous function) @ 01-juci.js:30
01-juci.js:40 Uncaught Error: [$rootScope:inprog]
http://errors.angularjs.org/1.3.15/$rootScope/inprog?p0=%24digest
http://errors.angularjs.org/1.3.15/%24rootScope/inprog?p0=%24digest


Reply to this email directly or view it on GitHub
#33 (comment).

@animavitis
Copy link
Author

success :)

i was something wrnog with .config file .... i run:
./scrpits/feeds uninstall -a
./scrpits/feeds update -a
./scrpits/feeds install -a
./scrpits/feeds install -f -p juci -a
make menuconfig (and select JUCI stuff)
make

and its works!

thanks for help

@mkschreder
Copy link
Owner

Awesome.

It could be that it did not properly override the packages the first time.

When installing juci feed you should lways see "Overriding package" message
for some packages.
On 13 Jan 2016 08:33, "animavitis" notifications@github.com wrote:

success :)

i was something wrnog with .config file .... i run:
./scrpits/feeds uninstall -a
./scrpits/feeds update -a
./scrpits/feeds install -a
./scrpits/feeds install -f -p juci -a
make menuconfig (and select JUCI stuff)
make

and its works!

thanks for help


Reply to this email directly or view it on GitHub
#33 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants