luci: Bug : Viewing realtime connection causes LuCI to crash with a lot of active connections.
Described on https://forum.openwrt.org/t/luci-crash-on-19-07-2-when-visiting-admin-status-realtime-connections/60674/8
Reposting my post from there
When active connection is high (Above 2-3k) the following command
ubus call luci getRealtimeStats '{ "mode": "conntrack" }'
Works just fine and returns a reply.
And this
ubus call luci getConntrackList
Just hangs an causes Luci to return
/usr/lib/lua/luci/dispatcher.lua:426: /etc/config/luci seems to be corrupt, unable to find section 'main'
Only restarting rpcd gets it back using
service rpcd restart
My device has plenty of ram (RPI) so i think the code for returning the connection list doesnt really work with large numbers, I guess it should only return the top 100 connections or something like that.
Using my mobile app on my router (https://github.com/hagaygo/OpenWRTManager) with “Active Connections” overview causes LuCI to keep crashing while there is a lot of active connections. It uses same API as real time page.
Using 19.07.6
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 5
- Comments: 22 (7 by maintainers)
Commits related to this issue
- [workaround] Viewing realtime connection causes LuCI to crash with a lot of active connections. Workaround for the issue. https://github.com/openwrt/luci/issues/4816 Should be removed later. — committed to ryohuang/slim-wrt by invalid-email-address 3 years ago
Still an issue for me in 22.03.2 with 8000-13000 connections. I ended up adblock filtering the link to connections so I don’t accidentally crash the webUI. Not exactly a big problem once you know not to look at it, but I think at least the issue should remain open.
Just an update , same behavior on OpenWRT 21.02