While working on two routers at the same time, I installed the luci-app-mjpeg-streamer on the wrong router. When I uninstall it, it breaks the luci interface. Is there a way to fix the interface or the uninstall script? I had to resintall the package to regain access.
which packages did it uninstall ?
Here the list:
Removing package luci-app-mjpg-streamer from root...
luci-compat was autoinstalled and is now orphaned, removing.
Removing package luci-compat from root...
luci-lua-runtime was autoinstalled and is now orphaned, removing.
Removing package luci-lua-runtime from root...
luci-lib-base was autoinstalled and is now orphaned, removing.
Removing package luci-lib-base from root...
lua was autoinstalled and is now orphaned, removing.
Removing package lua from root...
luci-lib-nixio was autoinstalled and is now orphaned, removing.
Removing package luci-lib-nixio from root...
luci-lib-ip was autoinstalled and is now orphaned, removing.
Removing package luci-lib-ip from root...
luci-lib-jsonc was autoinstalled and is now orphaned, removing.
Removing package luci-lib-jsonc from root...
liblucihttp-lua was autoinstalled and is now orphaned, removing.
Removing package liblucihttp-lua from root...
mjpg-streamer was autoinstalled and is now orphaned, removing.
Removing package mjpg-streamer from root...
libjpeg-turbo was autoinstalled and is now orphaned, removing.
Removing package libjpeg-turbo from root...
No packages removed.
and the resulting luci screen:
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 --------^
update: it only affects the overview page
To salvage a working configuration to avoid restarting from a fresh image, I painfully went through the error messages and "SCP"ied the missing module from a working router (same openwrt version similar chipset). I used the "find" command in "/usr/lib" to find the exact name of the files.
Reinstalling luci-compat
would've fixed this. Apparently you do have some legacy/unofficial LuCI extensions installed which still require the Lua runtime but don't depend on it.
Good to know and it does work I just removed the non working luci-mjpeg-streamer from a test router and corrected luci by installing thie package.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.