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 --------^
OpenWrt is not (yet) designed to have its packages updated or upgraded, certainly not core packages and even with auxilliary packages it's a gamble. You probably have a system with mismatched packages now and need to start over with a fresh install (or a firstboot). The correct way of updating (core) packages is to update the whole system, and only if there is a good reason.
Not really, no. The system does not keep backups of packages you replaced, it does not have an infrastructure for it, and oftentimes not even the space.
Your best bet is to save your configuration and start over. Maybe one of the newfangled "assisted updaters" will help ease the pain, but lacking any experience with those I can't help you with that and will have to leave this to someone else to answer.
Don't upgrade just for the sake of upgrading, and doubly so for core packages (this very much includes LuCI). It is very rare that individual core packages need to be upgraded to fix a vulnerability, and you would read about it in here. Most probably you would see the advice to update the whole system, because that's generally the safer way to upgrade anything.
There are a few non-core packages that can safely be updated, DynDNS clients and PBR come to mind. Their authors usually advise whether you can update those or not. Here, the "don't fix it if it's not broken" axiom applies.
If you feel the urge to update your system, update the whole system, not just bits and pieces. Again, I hear good things about the "update helpers" (OWUT? ASU?), and I believe they can ease the pain of having to reinstall everything. But unless you're a power user with a very extensive install, even starting from scratch reinserting your configuration bit by bit is not that big of a task.
In my case, Wireguard was broken. Months ago, it worked but today i came to check it and was not working, the update worked but not the LuCI one, thats all, i didnt anymore... I will note those advices and have care the next time.