Good afternoon!
I have a Flint2 with stock op-24 ( V4.7.5-op24) image based on OpenWrt 24.10.0-rc5, r28304-6dacba30a7 in which the GL UI is getting stuck after package updates. The LUCI and SSH work fine.
Looking further in the nginx logs I see the following:
025/05/18 16:59:54 [error] 10543#0: *8009 lua entry thread aborted: runtime error: /usr/share/gl-ngx/oui-rpc.lua:5: attempt to call field 'encode_empty_table_as_object' (a nil value)
stack traceback:
coroutine 0:
/usr/share/gl-ngx/oui-rpc.lua:5: in function </usr/share/gl-ngx/oui-rpc.lua:1>, client: 192.168.64.254, server: , request: "POST /rpc HTTP/1.1", host: "192.168.64.1", referrer: "https://192.168.64.1/"
2025/05/18 16:59:54 [error] 10544#0: *8010 lua entry thread aborted: runtime error: /usr/share/gl-ngx/oui-rpc.lua:5: attempt to call field 'encode_empty_table_as_object' (a nil value)
stack traceback:
coroutine 0:
/usr/share/gl-ngx/oui-rpc.lua:5: in function </usr/share/gl-ngx/oui-rpc.lua:1>, client: 192.168.64.254, server: , request: "POST /rpc HTTP/1.1", host: "192.168.64.1", referrer: "https://192.168.64.1/"
2025/05/18 16:59:54 [error] 10544#0: *8011 lua entry thread aborted: runtime error: /usr/share/gl-ngx/oui-rpc.lua:5: attempt to call field 'encode_empty_table_as_object' (a nil value)
stack traceback:
coroutine 0:
/usr/share/gl-ngx/oui-rpc.lua:5: in function </usr/share/gl-ngx/oui-rpc.lua:1>, client: 192.168.64.254, server: , request: "POST /rpc HTTP/1.1", host: "192.168.64.1", referrer: "https://192.168.64.1/"
root@GL-MT6000:/var/log/nginx# head error.log
2025/05/18 14:37:01 [error] 10349#0: *1 lua entry thread aborted: runtime error: /usr/share/gl-ngx/oui-rpc.lua:5: attempt to call field 'encode_empty_table_as_object' (a nil value)
stack traceback:
coroutine 0:
/usr/share/gl-ngx/oui-rpc.lua:5: in function </usr/share/gl-ngx/oui-rpc.lua:1>, client: 127.0.0.1, server: , request: "POST /rpc HTTP/1.1", host: "127.0.0.1"
2025/05/18 14:37:01 [error] 10350#0: *2 lua entry thread aborted: runtime error: /usr/share/gl-ngx/oui-rpc.lua:5: attempt to call field 'encode_empty_table_as_object' (a nil value)
stack traceback:
coroutine 0:
/usr/share/gl-ngx/oui-rpc.lua:5: in function </usr/share/gl-ngx/oui-rpc.lua:1>, client: 127.0.0.1, server: , request: "POST /rpc HTTP/1.1", host: "127.0.0.1"
2025/05/18 14:37:01 [error] 10351#0: *3 lua entry thread aborted: runtime error: /usr/share/gl-ngx/oui-rpc.lua:5: attempt to call field 'encode_empty_table_as_object' (a nil value)
stack traceback:
root@GL-MT6000:/var/log/nginx# head error.log
2025/05/18 14:37:01 [error] 10349#0: *1 lua entry thread aborted: runtime error: /usr/share/gl-ngx/oui-rpc.lua:5: attempt to call field 'encode_empty_table_as_object' (a nil value)
stack traceback:
coroutine 0:
/usr/share/gl-ngx/oui-rpc.lua:5: in function </usr/share/gl-ngx/oui-rpc.lua:1>, client: 127.0.0.1, server: , request: "POST /rpc HTTP/1.1", host: "127.0.0.1"
logread shows the following interesting things
Sun May 18 16:55:38 2025 daemon.err eco[11859]: call wifi.get_config fail with http code: 500
Sun May 18 16:55:40 2025 daemon.err eco[11876]: call wifi.get_config fail with http code: 500
Sun May 18 16:55:42 2025 daemon.err utrace: failed to exec eco: Not a tty
Sun May 18 16:55:42 2025 daemon.err utrace: failed to start eco
Sun May 18 16:55:42 2025 daemon.info procd: Instance gl-ngx-session::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
Sun May 18 16:55:42 2025 daemon.err eco[11894]: call wifi.get_config fail with http code: 500
Sun May 18 16:55:44 2025 daemon.err eco[11912]: call wifi.get_config fail with http code: 500
Sun May 18 16:55:46 2025 daemon.err eco[11936]: call wifi.get_config fail with http code: 500
Sun May 18 16:55:48 2025 daemon.err eco[11954]: call wifi.get_config fail with http code: 500
List of installed packages with versions available at [Pastebin](https://pastebin.com/raw/HYc4ApXf)
for 30 days.
Here is roughly what I did
- switched to -op24
- updated packages and tailscale
- added SQM and a few extra wi-fi networks over luci
- tried today to see if the GL inet still works
- did a backup and package export ( without versions).
- Decided to ask for assistance before reverting back to stock image and repeating almost the same update procedures except for tailscale
Suggestions what to fix /avoid are welcome!