Environment
- Device: GL-MT6000 (Flint 2) reproduced identically on two units (main router + mesh node)
- Firmware Version:
4.11.1(OpenWrt 21.02-SNAPSHOTr15812+1102-46b6ee7ffc, build timestampNov 22 11:38); also likely affecting4.11.2(releasedNov 25), whose changelog only lists two targeted security fixes (rttyhardening and parameter validation) with no mention ofprplMeshlogging changes.
Summary
In firmware 4.11.1, prplMesh (beerocks) continuously writes ~1 MB rotated log files into /tmp/beerocks/logs with no file count limit. Within ~24 hours of uptime, /tmp (494.7M tmpfs) reaches 100% capacity (0–44K free). Once /tmp is full, WAN DHCP renewals fail to populate /tmp/resolv.conf.d/resolv.conf.auto, leaving dnsmasq without upstream DNS servers and breaking internet resolution across all LAN clients (DNS_PROBE_FINISHED_BAD_CONFIG).
Root Cause
Inspecting /opt/prplmesh/config/beerocks_controller.conf (and beerocks_agent.conf), the service startup script generates the following [log] configuration:
[log]
log_global_levels=error,info,warning,fatal
log_global_syslog_levels=error,info,warning,fatal,trace,debug
log_global_size=1000000
log_files_enabled=true
log_files_path=/tmp/beerocks/logs
log_files_auto_roll=true
log_stdout_enabled=false
log_syslog_enabled=false
Because log_files_auto_roll=true has no max-file retention cap and info logging is enabled, beerocks_*.20*.log accumulates until /tmp is completely exhausted:
Filesystem Size Used Available Use% Mounted on
tmpfs 494.7M 494.6M 44.0K 100% /tmp
505228 /tmp/beerocks
When /tmp hits 100%, udhcpc cannot write upstream DNS entries to /tmp/resolv.conf.d/resolv.conf.auto, leaving the file empty while dnsmasq remains pointed at resolv-file=/tmp/resolv.conf.d/resolv.conf.auto.
Temporary Workaround (Until Patched)
-
Prune rotated
beerockslogs every 10 minutes via systemcron(note: GL.iNet's defaultcrondonly watches/tmp/gl_crontabs, so/etc/init.d/cronmust also be enabled):for f in /tmp/beerocks/logs/*.log; do : > "$f"; done (crontab -l 2>/dev/null | grep -v '/tmp/beerocks/logs'; echo "*/10 * * * * find /tmp/beerocks/logs -name 'beerocks_*.20*.log' -mmin +10 -delete") | crontab - /etc/init.d/cron enable /etc/init.d/cron restart -
Ensure
resolv.conf.autostays populated by setting static upstream resolvers onwan(or runningifup wanafter clearing/tmp):uci set network.wan.peerdns='0' uci del network.wan.dns 2>/dev/null uci add_list network.wan.dns='1.1.1.1' uci add_list network.wan.dns='8.8.8.8' uci commit network /etc/init.d/network reload /etc/init.d/dnsmasq restart
Suggested Fix for Next Release
Set log_files_enabled=false (or restrict log_global_levels=error,fatal with a strict rotated file count cap) in the prplMesh config generator so /tmp/beerocks/logs cannot exhaust RAM on tmpfs.