Flint 3 4.9.0 beta upgrade

Is it just for me but since 4.9 beta when I upload a new version (currently beta2 -> beta3) the whole router locks up and I need to reboot and re-upload the update again to update it? Internet works tho just ssh and UI not. Yeah I know it is a beta I just did not read that anyone reported this kind of issue. Oh and some wifi devices drops connection and cannot reconnect but some stays connected.

With a lot of patience I managed to log into ssh and run dmesg:

[165674.101956] validate_firmwa (29929): drop_caches: 3
[165675.295294] avahi-daemon invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
[165675.295328] CPU: 0 PID: 27055 Comm: avahi-daemon Tainted: P         C        5.4.213 #0
[165675.304178] Hardware name: GL.iNet BE9300, Inc. IPQ5332/AP-MI01.6 (DT)
[165675.312518] Call trace:
[165675.318852]  dump_backtrace+0x0/0x19c
[165675.321623]  show_stack+0x14/0x1c
[165675.325182]  dump_stack+0xac/0xf0
[165675.328566]  dump_header+0x40/0x180
[165675.331952]  oom_kill_process+0xcc/0x1d4
[165675.335683]  out_of_memory+0x2b0/0x2f0
[165675.339590]  __alloc_pages_nodemask+0x934/0xb24
[165675.343236]  pagecache_get_page+0x1f0/0x2b4
[165675.348097]  filemap_fault+0x2f0/0x668
[165675.352352]  __do_fault+0x88/0x100
[165675.355908]  __handle_mm_fault+0x674/0xf8c
[165675.359381]  handle_mm_fault+0x120/0x184
[165675.363549]  do_page_fault+0x27c/0x440
[165675.367714]  do_translation_fault+0x3c/0x50
[165675.371360]  do_mem_abort+0x3c/0x94
[165675.375873]  do_el0_ia_bp_hardening+0xb4/0xc4
[165675.379433]  el0_ia+0x18/0x1c
[165675.385196] Mem-Info:
[165675.386785] active_anon:90401 inactive_anon:51140 isolated_anon:0
[165675.386785]  active_file:248 inactive_file:311 isolated_file:0
[165675.386785]  unevictable:0 dirty:0 writeback:0 unstable:0
[165675.386785]  slab_reclaimable:3222 slab_unreclaimable:53077
[165675.386785]  mapped:69 shmem:51146 pagetables:662 bounce:0
[165675.386785]  free:1701 free_pcp:498 free_cma:0
[165675.401065] Node 0 active_anon:361604kB inactive_anon:204560kB active_file:992kB inactive_file:1244kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:276kB dirty:0kB writeback:0kB shmem:204584kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes
[165675.423730] DMA32 free:7276kB min:1708kB low:2588kB high:3468kB active_anon:361604kB inactive_anon:204560kB active_file:640kB inactive_file:860kB unevictable:0kB writepending:0kB present:912384kB managed:883088kB mlocked:0kB kernel_stack:3728kB pagetables:2648kB bounce:0kB free_pcp:1696kB local_pcp:0kB free_cma:0kB
[165675.451724] lowmem_reserve[]: 0 0 0
[165675.473990] DMA32: 200*4kB (UMEH) 66*8kB (UMEH) 36*16kB (UMEH) 99*32kB (UEH) 49*64kB (UE) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 8208kB
[165675.477313] 51754 total pagecache pages
[165675.490596] 228096 pages RAM
[165675.494905] 0 pages HighMem/MovableOnly
[165675.497456] 7324 pages reserved
[165675.501424] Tasks state (memory values in pages):
[165675.505000] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
[165675.509310] [    696]    81   696      358       44    36864        0             0 ubusd
[165675.517907] [    725]     0   725      230        9    32768        0             0 askfirst
[165675.526237] [    884]     0   884      269       17    36864        0             0 urngd
[165675.534937] [    992]     0   992     1014       53    36864        0         -1000 cnssdaemon
[165675.543040] [   1664]     0  1664      300       17    36864        0             0 fcgiwrap
[165675.551639] [   1694]     0  1694      300       16    32768        0             0 fcgiwrap
[165675.560632] [   1695]     0  1695      300       16    32768        0             0 fcgiwrap
[165675.568834] [   1696]     0  1696      307       16    32768        0             0 fcgiwrap
[165675.577387] [   1697]     0  1697      300       16    32768        0             0 fcgiwrap
[165675.585792] [   1714]     0  1714     1468      240    40960        0             0 eco
[165675.594580] [   7581]     0  7581      230        9    32768        0             0 breakpad_report
[165675.602469] [   7669]   514  7669      352       53    32768        0             0 logd
[165675.611938] [   7777]     0  7777      961      176    40960        0             0 rpcd
[165675.619592] [   8498]   323  8498     1320      168    53248        0             0 chronyd
[165675.627805] [   8567]     0  8567      931      296    40960        0             0 lua
[165675.636382] [   8643]     0  8643     1275      302    45056        0             0 eco
[165675.644350] [   9382]     0  9382      338       19    32768        0             0 dropbear
[165675.652553] [   9879]     0  9879     2002      264    40960        0             0 uhttpd
[165675.661303] [  10049]     0 10049      268       16    28672        0             0 carrier-monitor
[165675.669030] [  10145]     0 10145      560       81    32768        0             0 netifd
[165675.678519] [  10512]     0 10512     3403      399    61440        0         -1000 hostapd
[165675.686939] [  10514]     0 10514     3046      151    49152        0         -1000 wpa_supplicant
[165675.695160] [  12787]     0 12787      361       14    28672        0             0 udhcpc
[165675.704512] [  16464]     0 16464     2236      341    53248        0             0 eco
[165675.712376] [  16848]     0 16848      463       37    36864        0             0 miniupnpd
[165675.720594] [  17255]     0 17255      474      130    36864        0             0 dynamic_dns_upd
[165675.729027] [  18182]     0 18182   332511    17261   364544        0             0 tailscaled
[165675.738303] [  25227]     0 25227      463       30    32768        0             0 acfg_tool
[165675.746816] [  25304]     0 25304     2880      178    53248        0             0 cellular_manage
[165675.755404] [  25559]     0 25559      363       17    40960        0             0 crond
[165675.765093] [  26436]     0 26436      366       18    36864        0             0 crond
[165675.772789] [  26800]     0 26800      494       37    32768        0             0 dbus-daemon
[165675.781062] [  27055] 65534 27055      679      136    36864        0             0 avahi-daemon
[165675.790354] [   5998]     0  5998     5326     2901    90112        0             0 nginx
[165675.798966] [   6824]     0  6824     2149      142    49152        0             0 sms_manager
[165675.808685] [   9247]     0  9247     7272     4136    94208        0             0 nginx
[165675.816188] [   9248]     0  9248     7322     4182    90112        0             0 nginx
[165675.823882] [   9250]     0  9250     7340     4239    90112        0             0 nginx
[165675.832250] [   9251]     0  9251     7649     4500    94208        0             0 nginx
[165675.840475] [   9856]     0  9856      524      175    40960        0             0 gl_led
[165675.848659] [  10233]     0 10233      315       19    32768        0             0 thermald
[165675.856871] [  11057]     0 11057      365       19    36864        0             0 hostapd_log.sh
[165675.865946] [  11173]     0 11173      942      170    40960        0             0 eco
[165675.874439] [  11251]     0 11251     3306     1066    61440        0             0 eco
[165675.882802] [  11455]     0 11455     4173     1417    61440        0             0 lua
[165675.890932] [  11963]     0 11963      694       29    32768        0             0 dnsmasq
[165675.899216] [  11969]   453 11969     1203       87    40960        0             0 dnsmasq
[165675.907874] [  11982]     0 11982     1192       76    40960        0             0 dnsmasq
[165675.916156] [  12180]     0 12180      232       12    36864        0             0 gl_fan
[165675.924564] [  17184]     0 17184      300       21    32768        0             0 iperf3
[165675.932251] [  17639]     0 17639   384829    55772   704512        0             0 AdGuardHome
[165675.940558] [  28231]     0 28231      361        9    40960        0             0 sleep
[165675.949656] [  28458]     0 28458      361        9    40960        0             0 sleep
[165675.957717] [  29920]     0 29920     2046      139    45056        0             0 glc
[165675.965897] [  29925]     0 29925      363        9    36864        0             0 sh
[165675.974453] [  29926]     0 29926      596      238    32768        0             0 sysupgrade
[165675.981943] [  29929]     0 29929      495      147    40960        0             0 validate_firmwa
[165675.990631] [  30040]     0 30040      361        9    36864        0             0 sleep
[165676.000228] [  30042]     0 30042      248        9    28672        0             0 auto_timezone
[165676.008488] [  30043]     0 30043      312        1    28672        0             0 ash
[165676.017117] [  30045]     0 30045      495      147    36864        0             0 validate_firmwa
[165676.025192] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=AdGuardHome,pid=17639,uid=0
[165676.034346] Out of memory: Killed process 17639 (AdGuardHome) total-vm:1539316kB, anon-rss:223088kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:688kB oom_score_adj:0
[165681.691960] sh (30154): drop_caches: 3
[165711.710047] wlan: [0:I:ANY] [INACT] vap-5(wlan2): [ca:94:56:d6:a7:4b]station kicked out due to excessive retries associd 0 (from target) reason 6
[165712.281483] wlan: [0:I:ANY] [INACT] vap-0(wlan1): [ca:94:56:d6:a7:4b]station kicked out due to excessive retries associd 0 (from target) reason 6
[165776.276536] wlan: [0:I:ANY] [INACT] vap-0(wlan1): [8a:77:7d:50:43:26]station kicked out due to excessive retries associd 0 (from target) reason 6
[166011.868943] wlan: [0:I:ANY] [INACT] vap-0(wlan1): [8a:77:7d:50:43:26]station kicked out due to excessive retries associd 3 (from target) reason 6
[166292.590561] wlan: [0:I:ANY] [INACT] vap-0(wlan1): [8a:77:7d:50:43:26]station kicked out due to excessive retries associd 0 (from target) reason 6
root@GL-BE9300:~# 

It seems like I run out of memory? I only have Adguard and Wireguard server running on the router but currently no clients connected to it. I did not have this issue with 4.8.

From the looks of this stack trace you are correct, a OOM killer is often associated with a overfull memory.

Also what the stack trace showed me is that it is adguardhome.

Likely this means you have way to much lists or too big lists.

The issue is also you have no control how big such list can envolve in the future.

I had the same problem when upgrading from beta 2 to beta 3, pretty sure I ran out of memory, I temporarily disabled Adguard home, DPI and Wireguard and the upgrade worked as expected.