LuCi somehow broken. I guess it was updates that bring it. Can I fix it somehow?

When I try to open OpenWRT web-interface here is what I got:

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 --------^

search the forum for ucodebridge.lu.

https://openwrt.org/meta/infobox/upgrade_packages_warning

Try removing luci.

opkg --force-depends remove luci
opkg install luci
1 Like

I think something similar happened to me. We might have installed a package through LUCI, and then when removing it later we didn't uncheck the little box about dependencies.

This is my post about it, in my case i installed the LUCI dependencies that were removed by uninstalling another package: [Solved] Messed up Luci interface ucodebridge error

No reaction, unfortunately. But, thanks to link on similar problem i got it now.

opkg install luci-compat

did the trick! many thanks!

You can sysupgrade / owut to same version after uninstalling luci-compat and the broken files are not restored.