question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Legacy lua luci application runtime error / Missing views in luci-lua-runtime?

See original GitHub issue

Steps to reproduce:

  1. Goto some tabs (e.g. logs) of legacy lua luci applications.
  2. 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:

  1. 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:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jow-commented, Oct 26, 2022

@vbzc - should be fixed with 81f204d38f089ce6114bd67659c72e07ffbd57b4

1reaction
jow-commented, Oct 26, 2022

@1715173329 - extedit/arcombine is fixed with ca57291bdd3afbeae073ee315305d1ecc57f7f76

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found