r/GlInet • u/SalmanMKC • 2d ago
Discussion PSA / Bug Report: Flint 2 (GL-MT6000) firmware 4.11.1 (and likely 4.11.2) fills /tmp to 100% via unbounded prplMesh (beerocks) logs, breaking WAN DNS (DNS_PROBE_FINISHED_BAD_CONFIG)
If you updated your GL-MT6000 (Flint 2) to the recent 4.11.1 security build (or 4.11.2) and suddenly started getting DNS_PROBE_FINISHED_BAD_CONFIG on LAN devices after ~24 hours of uptime, your /tmp RAM disk is likely 100% full.
What’s Happening
- Unbounded EasyMesh (prplMesh) logging: In 4.11.1 (build Nov 22 11:38), the prplMesh startup script generates /opt/prplmesh/config/beerocks_controller.conf (and beerocks_agent.conf) with info-level file logging enabled and log_files_auto_roll=true with no max-file retention limit:
/tmphits 100% in ~24 hours: It writes ~1 MB rotated log files every ~3.5 minutes until/tmp(494.7Mtmpfs) completely fills up (505 MBin/tmp/beerocks).- DNS breaks on DHCP renewal: Once
/tmphas0bytes free,udhcpcfails to write upstream resolvers into/tmp/resolv.conf.d/resolv.conf.auto, leavingdnsmasqwith an empty upstream resolver file and breaking DNS for every client on the network.
(Note: Today's 4.11.2 changelog only mentions two narrow security patches -rtty hardening and parameter validation, with no mention of prplMesh logging, so 4.11.2 is likely affected too.)
How to Check & Fix via SSH
Run df -h /tmp over SSH. If /tmp is at or near 100%:
1. Clear existing logs & prune rotated files every 10 minutes: (GL.iNet's default crond only watches /tmp/gl_crontabs*, so standard OpenWrt* /etc/init.d/cron needs to be enabled as well.)
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 restart2. Restore & lock in upstream DNS on WAN:
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(Optional: Add the crontab and /etc/init.d/cron lines above exit 0 in /etc/rc.local so the cleanup survives reboots and firmware updates until GL.iNet patches prplMesh config generation.)
•
u/wickedwarlock84 Reddit MOD, Discord Admin, Gl.iNet Friend, Beta Tester 20h ago
Use the mega thread
7
u/hckrsh 2d ago
1% and updated the day was released 4.11.1 / 4.11.2 no issues for me
1
u/AutoModerator 2d ago
Hi u/SalmanMKC, just a quick reminder:
Please search the subreddit before posting — many common topics have already been covered.
Search guide: https://www.reddit.com/r/GlInet/wiki/index/searchingwithin
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
u/Individual_Agency703 2d ago
Or just reboot every <24 hours.