Luci Crash, missing files?

OpenWRT 23.05.4
Web interface is down. CLI via SSH is still alive. Router still seems to be functioning. Suggestions?


Error
Unhandled exception during request dispatching
module 'luci.ucodebridge' not found:
	no field package.preload['luci.ucodebridge']
	no file './luci/ucodebridge.lua'
	no file '/usr/share/lua/luci/ucodebridge.lua'
	no file '/usr/share/lua/luci/ucodebridge/init.lua'
	no file '/usr/lib/lua/luci/ucodebridge.lua'
	no file '/usr/lib/lua/luci/ucodebridge/init.lua'
	no file './luci/ucodebridge.so'
	no file '/usr/lib/lua/luci/ucodebridge.so'
	no file '/usr/lib/lua/loadall.so'
	no file './luci.so'
	no file '/usr/lib/lua/luci.so'
	no file '/usr/lib/lua/loadall.so'

In [anonymous function](), file [C]

In [anonymous function](), file /usr/share/ucode/luci/runtime.uc, line 133, byte 10:
  called from function [arrow function] (/usr/share/ucode/luci/runtime.uc:141:63)
  called from function render ([C])
  called from function [anonymous function] (/usr/share/ucode/luci/runtime.uc:141:64)
  called from function run_action (/usr/share/ucode/luci/dispatcher.uc:778:34)
  called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:1003:48)
  called from anonymous function (/www/cgi-bin/luci:39:13)

 `            die(ex);`
  Near here --------^


Happens when you remove luci-compat like done by qos scripts ets.

Deep links:

http://192.168.1.1/cgi-bin/luci/admin/system/opkg
http://192.168.1.1/cgi-bin/luci/admin/system/flash

Thanks for the response. I didn't deliberately remove any packages?

Then:
back up configuration
flash same or 23.05.5 sysupgrade resetting config.

Thanks! It looks like that will work to re-install missing packages. But I'm not sure what is missing or how they got removed? Nothing is found when I search for ucodebridge?

Flashed a 23.05.4 sysupgrade and that seems to have restored access to the missing files. Do you have any advice on how to avoid future recurrences?

Thanks for your help!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.