Legacy lua luci application runtime error / Missing views in luci-lua-runtime?
See original GitHub issueSteps to reproduce:
- Goto some tabs (e.g. logs) of legacy lua luci applications.
- Runtime error.
Runtime error
Unhandled exception during request dispatching
/usr/lib/lua/luci/ucodebridge.lua:22: /usr/lib/lua/luci/template.lua:158: Failed to load template 'header'.
Error while parsing template '/usr/lib/lua/luci/view/header.htm':
No such file or directory
In error(), file [C]
called from function [anonymous function] (/usr/lib/lua/luci/ucodebridge.lua:22)
called from function ((tail call))
In [anonymous function](), file /usr/share/ucode/luci/runtime.uc, line 126, byte 45:
called from function [arrow function] (/usr/share/ucode/luci/dispatcher.uc:767:4)
called from function render ([C])
called from function run_action (/usr/share/ucode/luci/dispatcher.uc:768:4)
called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:959:48)
called from anonymous function (/www/cgi-bin/luci:39:12)
` return lcall.call(modname, method, ...args);`
Near here ----------------------------------------^
Missing header.htm in luci-lua-runtime? I cannot find views which are originally in luci-base/luasrc/view.
Actual behavior:
- Runtime error.
Expected behavior:
Pages load normally.
Additional Information:
OpenWrt version information from system /etc/openwrt_release
Example: Replace the following lines and remove this
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r21108-a31b598590'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r21108-a31b598590'
DISTRIB_TAINTS='no-all'
Issue Analytics
- State:
- Created a year ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
luci-app-dawn: 500 Internal Server Error from time to time #5963
Steps to reproduce: go to: DAWN -> View Hearing Map Actual behavior: ... A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed ...
Read more >Latest Luci changes affecting a lot of legacy 3rd party themes
No, if the Lua runtime is installed LuCI will first try to locate an ucode template and if that fails, it should fallback...
Read more >Openwrt Luci Statistics & Issues - Codesti
Issue Title State Comments Created Date Upda...
luci‑app‑sqm: title hierarchy could be improved open 0 2022‑12‑19 2022...
luci‑xinetd: missing redirect option open 2 2022‑12‑14 2022...
luci:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vbzc - should be fixed with 81f204d38f089ce6114bd67659c72e07ffbd57b4
@1715173329 - extedit/arcombine is fixed with ca57291bdd3afbeae073ee315305d1ecc57f7f76