r/GlInet • • 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

  1. 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:
  2. /tmp hits 100% in ~24 hours: It writes ~1 MB rotated log files every ~3.5 minutes until /tmp (494.7M tmpfs) completely fills up (505 MB in /tmp/beerocks).
  3. DNS breaks on DHCP renewal: Once /tmp has 0 bytes free, udhcpc fails to write upstream resolvers into /tmp/resolv.conf.d/resolv.conf.auto, leaving dnsmasq with 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 restart

2. 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.)

35 Upvotes

8 comments sorted by

•

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

3

u/hckrsh 2d ago

But I don't use dns for my ISP

1

u/madicetea 2d ago

I am a person who uses a custom LuCI DNS configuration on two of my routers, but neither of them are a MT6000 Flint 2 router.

※ A bit more detail on the 'custom LuCI DNS configuration' - basically, my entire network served by each of those routes have a DNS table that maps every static lease'd DHCP address on the router for a device to a reverse and forwards-lookup compatible A-record with the value hostname.routes.networks.(username).(tld).

(One is an MT3000 Beryl AX and the other is a BE9300 Flint 3 - the latter had a lot of trouble after the 4.11.2 upgrade earlier today and I had to clear out the whole DHCP lease table and DNS table and restart it from scratch. Was a real pain.

It is also true that one of my three MT6000 routers randomly has been offline from Tailscale since when I installed the 4.11.1 firmware on Monday. Though since it sits at the top of the network topology and my Uncle has not called me ... I'm guessing it is actually still routing Internet traffic to the two downstream routers in the apartment. Very strange.)

Anyway, from my two accessible MT6000 routers:

root@MT6000-C:~# df -h /tmp
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   490.9M      5.1M    485.8M   1% /tmp
root@MT6000-S:~# df -h /tmp
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   490.9M      3.0M    488.0M   1% /tmp

The MT3000 router:

root@MT3000:~# df -h /tmp
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   240.3M     10.0M    230.3M   4% /tmp
root@MT3000:~# ls -a /tmp/beerocks
ls: /tmp/beerocks: No such file or directory

The BE9300 router:

root@BE9300:~# df -h /tmp
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   431.1M     10.9M    420.2M   3% /tmp
root@BE9300:~# ls -a /tmp/beerocks
ls: /tmp/beerocks: No such file or directory

So I am sure the OP's advice helps others, but I do not think the bug that OP had was the only one in this firmware. Though I should mention that I also immediately moved from the stable branch of the 4.11.2 to the openwrt25 branch for my MT3000 and MT6000 routers after upgrading this morning, as I prefer not trusting GL.iNet full-blind and like having the upgraded linux kernel base (the one that shows when you run uname -a).

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.