Closed jivanpal closed 2 months ago
Did you upgrade with existing config file? I am guessing it is failing because you installed and configured these in the past. I get the same myself (for different mods). I think what we could use is the UI showing which ones are missing/preventing it from starting. I dont think we can add the dependencies for everybody.
Completely fresh install (my device was running out of RAM during sysupgrade, so I had to re-flash from stock). I don't remember if I had to manually install these when I was on 23.05.2 (which is what I upgraded from), but I expect so seeing as the package lists are one and the same.
Given that the LuCI app's features explicitly depend on the presence of these modules in order to function correctly, what would be the rationale for not including them?
There are dozens of possible collectd modules, which each may have X MB of dependencies. So, having somebody to accidentally turn on the one optional stat in LuCI stats config should not cause major installations.
So, WONTFIX.
@hnyman Only certain modules are required by the LuCI app, not all of them. Why are some of these required modules listed as dependencies of luci-app-statistics, but not others?
Those are the (small) dependencies for the default plugin selection.
As I mentioned, we could add to the luci app that it will show what dependencies to install instead of a user having to look in the log file (which I always end up doing after an upgrade)
Steps to reproduce:
luci-app-statistics
on a fresh instance of OpenWrt 23.05.x from the OpenWrt repo (https://downloads.openwrt.org/releases/23.05.x/packages/<arch>/luci
, which points tohttps://downloads.openwrt.org/releases/packages-23.05/<arch>/luci
).Actual behavior:
Watch the logs (
logread
) and see that collectd repeatedly fails to start due to the absence of thedns
andconntrack
modules:To fix this, the missing modules must be manually installed via the packages
collectd-mod-conntrack
andcollectd-mod-dns
.Expected behavior:
The LuCI app should work as configured immediately after installing just the
luci-app-statistics
package; collectd should start successfully without any additional configuration.Proposed fix
The packages
collectd-mod-conntrack
andcollectd-mod-dns
should be added as dependencies ofluci-app-statistics
, just like other necessary collectd modules currently are (namely: rrdtool, iwinfo, cpu, memory, interface, network).Additional Information:
OpenWrt version information from system
/etc/openwrt_release
: