Rpi4 < $(community_build)

best to run this and reboot...

sed -i 's|^dtoverlay=dwc2|#dtoverlay=dwc2|g' /boot/config.txt

i thought it would be smart to enable networking over the usb-c_otg port... turns out it is not so smart...

after that... yeah... may as well update I think...

1 Like

it's done. Anything else to do?

1 Like

there may have been a section added for interface 'gether' in networking...

but it should not really cause problems unless you have other 'usbX' (tethering/modem) devices in use or use 10.11.12.x as a subnet... [another not-so-smart idea of mine]

1 Like

hands up, thats me...

1 Like

i fear posting the result...

Sat Jul 3 00:00:25 2021 daemon.err collectd[16650]: Configuration file /tmp/collectd.conf is empty.
Sat Jul 3 00:00:25 2021 daemon.err collectd[16650]: Error: Parsing the config file failed!
Sat Jul 3 00:00:25 2021 daemon.info procd: Instance collectd::instance1 s in a crash loop 6 crashes, 0 seconds since last crash

/:
i recognised it earlier in syslog but thought it worked before, didnt touched it, so cant be it, just ignore. i am failure. still wonder why it makes the whole menu gone.

system.ntp=timeserver
system.ntp.use_dhcp='0'
system.ntp.server='ntp1.dismail.de' 'ntp2.dismail.de' 'ntp3.dismail.de'

it was

NTP_FAST="time.cloudflare.com"

changed to

NTP_FAST="ntp1.dismail.de ntp2.dismail.de ntp3.dismail.de"

also noticed this before in syslog when it error-stated when updating pkg's (iirc) 'last time was bla and new timestamp is older' (likewise).

pheditor is nice to have, didnt knew it before.
tty links to 'rpi-ip/ttyd' which then gets forwarded to 'ttyd.router' and (at least for me) cant be resolved.
maybe dns-problem on my side, but atm it has no usecase for me as long as ssh is reliable, which it has been since forever. seems like pheditor also has a 'terminal' in the bottom-part. strange times.

1 Like

if your using dnsmasq... there should be an entry with your lan ip similar to this;

uci show dhcp | grep router
dhcp.@dnsmasq[0].address='/router/10.2.3.1'

(next version will probably just use the ip anyway as I tried it on my second router and it sent me to the first
:shushing_face: )

cat /etc/config/luci_statistics; ucivalidate.sh

it is. same output for me.

pardon the question. you want the output? it is a lot, too much i am afraid.
or should i look for anything specific?

1 Like

this is mine

[root@dca632 /usbstick 50°]# cat /etc/config/luci_statistics 

config statistics 'collectd'
	option BaseDir '/var/run/collectd'
	option Include '/etc/collectd/conf.d'
	option PIDFile '/var/run/collectd.pid'
	option PluginDir '/usr/lib/collectd'
	option TypesDB '/usr/share/collectd/types.db'
	option Interval '30'
	option ReadThreads '2'

config statistics 'rrdtool'
	option default_timespan '1hour'
	option image_width '600'
	option image_path '/tmp/rrdimg'

config statistics 'collectd_rrdtool'
	option enable '1'
	option DataDir '/tmp/rrd'
	option RRARows '144'
	option RRASingle '1'
	option RRATimespans '1hour 1day 1week 1month 1year'

config statistics 'collectd_csv'
	option enable '0'
	option StoreRates '0'
	option DataDir '/tmp'

config statistics 'collectd_email'
	option enable '0'
	option SocketFile '/var/run/collectd/email.sock'
	option SocketGroup 'nogroup'

config statistics 'collectd_logfile'
	option enable '0'
	option LogLevel 'notice'
	option File '/var/log/collectd.log'
	option Timestamp '1'

config statistics 'collectd_network'

config statistics 'collectd_syslog'
	option enable '0'
	option LogLevel 'warning'
	option NotifyLevel 'WARNING'

config statistics 'collectd_unixsock'
	option enable '0'
	option SocketFile '/var/run/collectd/query.sock'
	option SocketGroup 'nogroup'

config statistics 'collectd_apcups'
	option enable '0'
	option Host 'localhost'
	option Port '3551'

config statistics 'collectd_chrony'
	option enable '0'
	option Host '127.0.0.1'
	option Port '323'
	option Timeout '2'

config statistics 'collectd_contextswitch'
	option enable '0'

config statistics 'collectd_cpu'
	option enable '1'
	option ReportByCpu '1'
	option ReportByState '1'
	option ShowIdle '0'
	option ValuesPercentage '1'

config statistics 'collectd_cpufreq'
	option enable '0'

config statistics 'collectd_curl'
	option enable '0'

config statistics 'collectd_df'
	option enable '0'
	option Devices '/dev/mtdblock/4'
	option MountPoints '/overlay'
	option FSTypes 'tmpfs'
	option IgnoreSelected '0'
	option ValuesPercentage '0'

config statistics 'collectd_dhcpleases'
	option enable '0'
	option Path '/tmp/dhcp.leases'

config statistics 'collectd_exec'
	option enable '1'

config statistics 'collectd_interface'
	option enable '1'
	option Interfaces 'br-lan'
	option IgnoreSelected '0'

config statistics 'collectd_ipstatistics'
	option enable '0'

config statistics 'collectd_iptables'
	option enable '0'

config collectd_iptables_match
	option table 'nat'
	option chain 'luci_fw_postrouting'
	option target 'MASQUERADE'
	option source '192.168.1.0/24'
	option outputif 'br-ff'
	option name 'LAN-Clients traffic'

config collectd_iptables_match
	option chain 'luci_fw_postrouting'
	option table 'nat'
	option target 'MASQUERADE'
	option source '10.61.230.0/24'
	option outputif 'br-ff'
	option name 'WLAN-Clients traffic'

config statistics 'collectd_iwinfo'
	option enable '1'

config statistics 'collectd_load'
	option enable '1'

config statistics 'collectd_memory'
	option enable '1'
	option ValuesAbsolute '1'
	option ValuesPercentage '0'

config statistics 'collectd_netlink'
	option enable '0'
	option IgnoreSelected '0'
	option VerboseInterfaces 'br-lan'
	option QDiscs 'br-lan'

config statistics 'collectd_nut'
	option enable '0'
	list UPS 'myupsname'

config statistics 'collectd_olsrd'
	option enable '0'
	option Port '2006'
	option Host '127.0.0.1'

config statistics 'collectd_openvpn'
	option enable '0'

config statistics 'collectd_ping'
	option TTL '127'
	#option Interval '650'
	option Interval '250'
	#option AddressFamily 'ipv6'
	option AddressFamily 'ipv4'
	#option Hosts '202.142.142.142 8.8.8.8'
	#option Hosts '2404:6800:4006:814::200e'
	option Hosts 'google.com'
	option enable '1'

config statistics 'collectd_processes'
	option Processes 'uhttpd dnsmasq dropbear'
	option enable '1'

config statistics 'collectd_sensors'
	option enable '0'

config statistics 'collectd_snmp6'
	option enable '0'
	option Interfaces 'br-lan'
	option IgnoreSelected '0'

config statistics 'collectd_splash_leases'
	option enable '0'

config statistics 'collectd_tcpconns'
	option enable '0'
	option ListeningPorts '0'
	option LocalPorts '22 80'

config statistics 'collectd_thermal'
	option IgnoreSelected '0'
	option enable '1'

config statistics 'collectd_uptime'
	option enable '0'

config collectd_exec_input 'collectd_exec_input'
	option cmduser 'nobody'
	option cmdgroup 'nogroup'
	option cmdline '/usr/libexec/collectd/sqm_collectd.sh eth1'

config statistics 'collectd_dns'
	option enable '1'
	option Interfaces 'br-lan'
	option IgnoreSources '127.0.0.1'

config statistics 'collectd_irq'
	option enable '1'
	option IgnoreSelected '1'

config statistics 'collectd_entropy'
	option enable '1'

config statistics 'collectd_conntrack'
	option enable '1'

config statistics 'collectd_disk'
	option enable '1'
	list Disks 'mmcblk0p1'
	list Disks 'mmcblk0p2'
	list Disks 'sda1'

statistics is pretty binary for many modules... if they are not installed or the config is incorrect the service will fail to start... it will usually tell you in the log... but you left those lines out... (edit: my bad.. with a 'uci parse error' you probably wouldn't get far enough for a 'module load' error)

prime cantidates are: disk iptables irq... just keep restarting... checking the log.... and removing sections until you find the culprit...
(quite possibly I have a setup bug - i.e. if you've unplugged a disk recently that could do it...)

i do my best to give a default 'full featured' config... but anything specific is really up to the end user to tweak... it's way too difficult to predict or accomodate for all setups... that said... if i've got a bug... i'd rather remove a section than have it work half the time...

totally understable. i do not expect you to solve my misconfigurations. my knowledge to track down such things is...narrow. i am very grateful for your work. for completeness-reasons here is mine.
please feel free to ignore. i really dont want to waste your time.

config statistics 'collectd'
        option BaseDir '/var/run/collectd'
        option Include '/etc/collectd/conf.d'
        option PIDFile '/var/run/collectd.pid'
        option PluginDir '/usr/lib/collectd'
        option TypesDB '/usr/share/collectd/types.db'
        option Interval '30'
        option ReadThreads '2'

config statistics 'rrdtool'
        option default_timespan '1hour'
        option image_width '600'
        option image_path '/tmp/rrdimg'

config statistics 'collectd_rrdtool'
        option enable '1'
        option DataDir '/tmp/rrd'
        option RRARows '144'
        option RRASingle '1'
        option RRATimespans '1hour 1day 1week 1month 1year'

config statistics 'collectd_csv'
        option enable '0'
        option StoreRates '0'
        option DataDir '/tmp'

config statistics 'collectd_email'
        option enable '0'
        option SocketFile '/var/run/collectd/email.sock'
        option SocketGroup 'nogroup'

config statistics 'collectd_logfile'
        option enable '0'
        option LogLevel 'notice'
        option File '/var/log/collectd.log'
        option Timestamp '1'

config statistics 'collectd_network'

config statistics 'collectd_syslog'
        option enable '0'
        option LogLevel 'warning'
        option NotifyLevel 'WARNING'

config statistics 'collectd_unixsock'
        option enable '0'
        option SocketFile '/var/run/collectd/query.sock'
        option SocketGroup 'nogroup'

config statistics 'collectd_apcups'
        option enable '0'
        option Host 'localhost'
        option Port '3551'

config statistics 'collectd_conntrack'
        option enable '1'

config statistics 'collectd_contextswitch'
        option enable '0'

config statistics 'collectd_cpu'
        option enable '1'
        option ReportByCpu '1'
        option ReportByState '1'
        option ShowIdle '0'
        option ValuesPercentage '1'

config statistics 'collectd_cpufreq'
        option enable '0'

config statistics 'collectd_curl'
        option enable '0'

config statistics 'collectd_df'
        option enable '0'
        option Devices '/dev/mtdblock/4'
        option MountPoints '/jffs'
        option FSTypes 'tmpfs'
        option IgnoreSelected '0'
        option ValuesPercentage '0'

config statistics 'collectd_dns'
        option Interfaces 'br-lan'
        option IgnoreSources '127.0.0.1'
        option enable '1'

config statistics 'collectd_entropy'
        option enable '1'

config statistics 'collectd_exec'
        option enable '1'

config statistics 'collectd_interface'
        option enable '1'
        option Interfaces 'br-lan'
        option IgnoreSelected '0'

config statistics 'collectd_iptables'
        option enable '0'

config collectd_iptables_match
        option table 'nat'
        option chain 'luci_fw_postrouting'
        option target 'MASQUERADE'
        option source '192.168.1.0/24'
        option outputif 'br-ff'
        option name 'LAN-Clients traffic'

config collectd_iptables_match
        option chain 'luci_fw_postrouting'
        option table 'nat'
        option target 'MASQUERADE'
        option source '10.61.230.0/24'
        option outputif 'br-ff'
        option name 'WLAN-Clients traffic'

config statistics 'collectd_iwinfo'

config statistics 'collectd_load'
        option enable '1'

config statistics 'collectd_memory'
        option enable '1'
        option ValuesAbsolute '1'
        option ValuesPercentage '0'

config statistics 'collectd_netlink'
        option enable '0'
        option IgnoreSelected '0'
        option VerboseInterfaces 'br-lan'
        option QDiscs 'br-lan'

config statistics 'collectd_nut'
        option enable '0'
        list UPS 'myupsname'

config statistics 'collectd_olsrd'
        option enable '0'
        option Port '2006'
        option Host '127.0.0.1'

config statistics 'collectd_ping'
        option TTL '127'
        option Interval '2300'
        option Hosts '10.11.12.1 8.8.8.8'
        option AddressFamily 'ipv4'
        option enable '1'

config statistics 'collectd_processes'
        option Processes 'uhttpd dnsmasq dropbear'
        option enable '1'

config statistics 'collectd_sensors'
        option enable '0'

config statistics 'collectd_splash_leases'
        option enable '0'

config statistics 'collectd_tcpconns'
        option enable '0'
        option ListeningPorts '0'
        option LocalPorts '22 80'

config statistics 'collectd_thermal'
        option enable '1'

config statistics 'collectd_uptime'
        option enable '0'

config statistics 'collectd_openvpn'

config collectd_exec_input 'collectd_exec_input'
        option cmduser 'nobody'
        option cmdgroup 'nogroup'
        option cmdline '/usr/libexec/collectd/sqm_collectd.sh eth1'

config statistics 'collectd_irq'
        option enable '1'
        option IgnoreSelected '1'

config statistics 'collectd_chrony'

config statistics 'collectd_dhcpleases'

config statistics 'collectd_ipstatistics'

config statistics 'collectd_snmp6'

config statistics 'collectd_disk'
        option enable '1'
        list Disks 'mmcblk0p1'
        list Disks 'mmcblk0p2'

config statistics 'collectd_irq'
        option enable '1'
        option IgnoreSelected '1'

config statistics 'collectd_disk'
        option enable '1'
        list Disks 'mmcblk0p1'
        list Disks 'mmcblk0p2'

/etc/config/luci_statistics: uci: Parse error (invalid command) at line 190, byte 0
/etc/config/luci_statistics

/etc/config/luci_statistics: line 2: config: command not found
/etc/config/luci_statistics: line 3: option: command not found
...
/etc/config/luci_statistics: line 188: config: command not found
/etc/config/luci_statistics: line 190: config: command not found
/etc/config/luci_statistics: line 191: option: command not found
/etc/config/luci_statistics: line 192: list: command not found
/etc/config/luci_statistics: line 193: list: command not found
/etc/config/luci_statistics: line 195: config: command not found
/etc/config/luci_statistics: line 196: option: command not found
/etc/config/luci_statistics: line 197: option: command not found
/etc/config/luci_statistics: line 199: config: command not found
/etc/config/luci_statistics: line 200: option: command not found
/etc/config/luci_statistics: line 201: list: command not found
/etc/config/luci_statistics: line 202: list: command not found
Sat Jul  3 02:50:37 2021 daemon.err collectd[22313]: Configuration file /tmp/collectd.conf is empty.
Sat Jul  3 02:50:37 2021 daemon.err collectd[22313]: Error: Parsing the config file failed!
Sat Jul  3 02:50:37 2021 daemon.info procd: Instance collectd::instance1 s in a crash loop 6 crashes, 0 seconds since last crash

3am here. my eyes.

1 Like

line 190 is near the bottom ( good think phpeditor shows lline numbers ) and is near the first 'disk' section which there should not be two of?
(do does look like a bug with 'disk' being added)... remove that disk section and see how it goes...

lines-to-remove
config statistics 'collectd_disk'
        option enable '1'
        list Disks 'mmcblk0p1'
        list Disks 'mmcblk0p2'

another option is something like;

opkg update
opkg install --force-reinstall --force-maintainer luci-app-statistics

it worked. you fixed everything. i am a happy girl now.
thanks again. back to work.

1 Like

I just wanted to report, that I have upgraded to 3.2 once again and can confirm, that the mac changes do apply properly, if a valid mac is being used. As I had used multiple different mac generators would say, that it made sense to add a check for invalid mac before setting it, so others cannot run into this issue again.

1 Like

thanks for checking back in...

yeah... seems like there is no validation of least significant (mcast) via luci...

you can create an issue

pretty simple thing to resolve... ( even tho it's a kernel / user issue... agree that UI validation / better feedback is beneficial )

1 Like

Not sure if this is the right place to ask but I want to try. - I am just installing dockerd, docker-compose, docker and luci-app-dockerman. On installing luci-app-dockerman I get this one:

Collected errors:
 * check_data_file_clashes: Package libwebsockets-full wants to install file /usr/lib/libwebsockets.so
	But that file is already provided by package  * libwebsockets-openssl
 * check_data_file_clashes: Package libwebsockets-full wants to install file /usr/lib/libwebsockets.so.17
	But that file is already provided by package  * libwebsockets-openssl
 * opkg_install_cmd: Cannot install package luci-app-dockerman.

Is it safe to have luci-app-dockermans installation overwrite libwebsockes.so?

1 Like

'probably'... there is another smaller depandancy quirk with docker (may be a note in packages.txt on github)

the two packages that 'overlap' with websockets are

  • mosquitto
  • ttyd

so if those aren't important to you (may continue to work... just untested) should be fine...

may need
--force-depends and/or --force-overwrite or something like that tho' (or just delete the files)


related packages issue from march 2020 https://github.com/openwrt/packages/issues/11632
1 Like

I found mosquitto but what is 'ttyd'?

Am I understanding it correctly to opkg install luci-app-dockerman --force-depends --force-overwrite?

EDIT: Found ttyd, terminal integration for luci
EDIT2: opkg install luci-app-dockerman --force-depends --force-overwrite worked

1 Like

try it and see...

ttyd ignore... i'm adding that manually ( but it does create websockets libs )

1 Like

I have been looking for a configuration option in lucy, that allows to set the WIFI to 2.4ghz (some older devices dont support 5ghz) or optimally to run it in dual band, can you eventually hint me where to look for it?

never done this myself... afaik... does not support dual-band@ap-mode

(for only 2.4 there is a tip somewhere on this thread or look on the top post for 'index' something thread link)

1 Like