DJI9
1
Hi,
Lost access to RPC since with upgraded an RUTX50 to 7.09:
Request:
curl -d ‘{ “jsonrpc”: “2.0”, “id”: 1, “method”: “call”, “params”: [ “00000000000000000000000000000000”, “session”, “login”, { “username”: “root”, “password”: “PASSWORD” } ] }’
http://AA.BB.CC.DD/ubus
{“jsonrpc”:“2.0”,“id”:1,“error”:{“code”:-32002,“message”:“Access denied”}}
curl -d ‘{ “jsonrpc”: “2.0”, “id”: 1, “method”: “call”, “params”: [ “00000000000000000000000000000000”, “session”, “login”, { “username”: “admin”, “password”: “PASSWORD” } ] }’
http://AA.BB.CC.DD/ubus
{“jsonrpc”:“2.0”,“id”:1,“error”:{“code”:-32002,“message”:“Access denied”}}
I have faced the same issue with the 07.09 but could not find any explicit mention of this change in the Changelog.
Marija
4
Hello,
I have informed our developers about this issue. I will update you as soon as I have more information. Thank you for your patience and understanding.
Best Regards,
1 Like
DJI9
5
I couldnt see anything either, there was access control changes though.
the /etc/config/rpcd.conf has a change:
From:
config login
option password '$p$admin
To:
config login
option password ‘$p$root’
Changing this back and restarting rpcd did not fix it
tirkiz
6
Yes, I have the same problem after upgrading to RUTX_R_00.07.09
tirkiz
7
You can use HTTP API instead of JSON RPC
https://developers.teltonika-networks.com/
I can see it working and I’ve just started rewriting the scripts to switch to the API
DJI9
8
Thanks, means we would have to rewrite a lot of our backend though
I have this problem also!
Marija
10
Hello,
A fix should be implemented in future firmware releases. We apologize for the inconvenience and appreciate your understanding.
Best Regards,