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

luci-mod-network: luci/admin/network/dhcp return RPC call to uci/get failed with ubus code 4 without /etc/config/firewall file #7609

Open
1 task done
stargieg opened this issue Feb 7, 2025 · 0 comments

Comments

@stargieg
Copy link
Contributor

stargieg commented Feb 7, 2025

Is there an existing issue for this?

  • I have searched among all existing issues (including closed issues)

screenshots or captures

Actual behaviour

get https://192.168.1.1/cgi-bin/luci/admin/network/dhcp
returns

RPCError

RPC call to uci/get failed with ubus code 4: Resource nicht gefunden
  at handleCallReply (https://g16-a60.ff.lunatiki.de/luci-static/resources/rpc.js?v=25.037.68331~42f464c:15:3)
  at promise callback*parseCallReply (https://192.168.1.1/luci-static/resources/rpc.js?v=25.037.68331~42f464c:9:53)
  at promise callback*call (https://192.168.1.1/luci-static/resources/rpc.js?v=25.037.68331~42f464c:5:102)
  at declare/
  • Workaround
    touch /etc/config/firewall

Expected behaviour

get https://192.168.1.1/cgi-bin/luci/admin/network/dhcp
returns correct config settings without firewall packages installed.

dhcp.js load uci firewall


for ipset in
uci.sections('firewall', 'ipset', function(s) {

This should be optional.

Steps to reproduce

rm /etc/config/firewall
get dhcp config site
get https://192.168.1.1/cgi-bin/luci/admin/network/dhcp

Additional Information

{
	"kernel": "6.6.73",
	"hostname": "g16-a60",
	"system": "Qualcomm Atheros QCA9558 ver 1 rev 0",
	"model": "OpenMesh A60",
	"board_name": "openmesh,a60",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "24.10.0",
		"revision": "r28427-6df0e3d02a",
		"target": "ath79/generic",
		"description": "OpenWrt 24.10.0 r28427-6df0e3d02a",
		"builddate": "1738624177"
	}
}

What browsers do you see the problem on?

Firefox

Relevant log output

# ubus monitor | grep -B1 '"status":4'
-> 47fe8814 #9a7f91cc         invoke: {"objid":-952673350,"method":"get","data":{"config":"firewall","ubus_rpc_session":"a6a373e42b211c422af9e90874f72a67"},"user":"root","group":"root"}
<- 47fe8814 #9a7f91cc         status: {"status":4,"objid":-952673350}
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

1 participant