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-freifunk: lua error accessing the "profile_expert" site and others #23

Open
SvenRoederer opened this issue May 2, 2020 · 5 comments · Fixed by #32
Open

luci-mod-freifunk: lua error accessing the "profile_expert" site and others #23

SvenRoederer opened this issue May 2, 2020 · 5 comments · Fixed by #32
Labels
bug Something isn't working

Comments

@SvenRoederer
Copy link
Contributor

accessing /cgi-bin/luci/admin/freifunk/basics/profile_expert raises a lua error:

...r/lib/lua/luci/model/cbi/freifunk/profile_expert.lua:12: attempt to concatenate local 'community' (a boolean value)
stack traceback:
...r/lib/lua/luci/model/cbi/freifunk/profile_expert.lua:12: in function 'func'
/usr/lib/lua/luci/cbi.lua:66: in function 'load'
/usr/lib/lua/luci/dispatcher.lua:1336: in function '_cbi'
/usr/lib/lua/luci/dispatcher.lua:1019: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:479: in function </usr/lib/lua/luci/dispatcher.lua:478>

even uci get feifunk.community.name return a valid profile-suffix (here "berlin").

This probably relates to running it on the latest OpenWrt master:

OPENWRT_REPO=https://git.openwrt.org/openwrt/openwrt.git
OPENWRT_COMMIT=ad27c133eb606ee39fa346b7bdb26c1764ee869e
PACKAGES_PACKAGES_REPO=https://github.com/openwrt/packages.git
PACKAGES_PACKAGES_COMMIT=10fb31451e18b6a03f8070eeae373d37855ccc09
PACKAGES_LUCI_REPO=https://github.com/openwrt/luci.git
PACKAGES_LUCI_COMMIT=a573da0d191e30ccabc15b84fdc73f9b570fcf51

@SvenRoederer
Copy link
Contributor Author

uci-error #23

other pages (e.g. /cgi-bin/luci/admin/freifunk/basics) showing a Insufficient permissions to read UCI configuration. warning.
This seems to relate to the following: https://forum.openwrt.org/t/insufficient-permissions-to-read-uci-configuration/61694/8

@XDjackieXD
Copy link
Contributor

I think I just ran into the same problem.
The status page works fine and the login page too but after I log in I'm greeted with the following error (current openwrt master branch plus freifunk feed)

/usr/lib/lua/luci/model/cbi/freifunk/profile.lua:12: attempt to concatenate local 'community' (a boolean value)
stack traceback:
	/usr/lib/lua/luci/model/cbi/freifunk/profile.lua:12: in function 'func'
	/usr/lib/lua/luci/cbi.lua:66: in function 'load'
	/usr/lib/lua/luci/dispatcher.lua:1347: in function '_cbi'
	/usr/lib/lua/luci/dispatcher.lua:1018: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:979: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:478: in function </usr/lib/lua/luci/dispatcher.lua:477>

Other than with your observation I don't get the insufficient permission error but I haven't managed to get past the login screen so far so maybe this error is only visible on administrative pages.

Is there any way I can help with debugging?

@SvenRoederer
Copy link
Contributor Author

PR #28 very likely relates to this.

@XDjackieXD
Copy link
Contributor

with your patch in PR #28 I can load the page after login and land at the profile page with the error message "Insufficient permissions to read UCI configuration." (I tried creating /etc/config/profile_CommunityName containing the basic parameters but it didn't help).
Every Freifunk config page except for the profile-expert page seems to have this error message.

The profile_expert page seems to need the same patch.

@SvenRoederer
Copy link
Contributor Author

probably also fixed by #32 or #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment