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.

LuCI index page gives error after login

See original GitHub issue

Up-to-date OpenWrt master r21334-9b482ee22f & LuCI (7c3705b)

Login screen comes ok, but after login there is an error and no LuCI:

/usr/lib/lua/luci/ucodebridge.lua:23: /usr/lib/lua/luci/template.lua:158: Failed to load template 'admin_status/index'.
Error while parsing template '/usr/lib/lua/luci/view/admin_status/index.htm':
No such file or directory

Looking at the directory, there is luaindex.htm instead of index.htm

root@router1:~# ls /usr/lib/lua/luci/view/admin_status/
luaindex.htm

This should be a vanilla openssl based LuCI, bootstrap theme. (But also the openwrt-2020 theme is installed)

Full error shown:

Runtime error
Unhandled exception during request dispatching
/usr/lib/lua/luci/ucodebridge.lua:23: /usr/lib/lua/luci/template.lua:158: Failed to load template 'admin_status/index'.
Error while parsing template '/usr/lib/lua/luci/view/admin_status/index.htm':
No such file or directory

In error(), file [C]
  called from function [anonymous function] (/usr/lib/lua/luci/ucodebridge.lua:23)
  called from function  ((tail call))

In [anonymous function](), file /usr/share/ucode/luci/runtime.uc, line 138, byte 45:
  called from function [arrow function] (/usr/share/ucode/luci/dispatcher.uc:778:70)
  called from function render ([C])
  called from function render_action (/usr/share/ucode/luci/dispatcher.uc:768:24)
  called from function run_action (/usr/share/ucode/luci/dispatcher.uc:779:4)
  called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:993:48)
  called from anonymous function (/www/cgi-bin/luci:39:12)

 `        return lcall.call(modname, method, ...args);`
  Near here ----------------------------------------^

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AmirulAndalibcommented, Nov 24, 2022

Hello, just installed the new snapshot and the problem is still there, is the fix already pushed on the last one ? Thanks

Hi there

Snapshots are set to build on a specific cronjob time so you might wanna wait for few more hours for the latest snapshot build to be available for upgrading…

I guess they build/refresh snapshots every 48 hours or something

1reaction
jow-commented, Nov 22, 2022

Thanks! Fix pushed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

LuCI login broken in master? - #2 by hnyman - OpenWrt Forum
I built a testing image (malta be32) from current master and proceeded to log in via Luci, but after accepting my password I...
Read more >
Can't go into the luci web manage page when device runs a ...
Below shows the error message. /usr/lib/lua/luci/dispatcher.lua:562: Failed to execute function dispatcher target for entry '/'.
Read more >
Need help!! Stuck on Luci UI login page : r/openwrt - Reddit
This is when it all goes wrong. It showed that settings are being applied but it didn't in 90 seconds so it showed...
Read more >
luci on lighttpd- 500 internal server error - lua - Stack Overflow
I'm running LUCI with lighttpd on ubuntu 16.04. i'm using lua5.1 and ... cgi-bin-status.html index.html index.lighttpd.html luci luci-static.
Read more >
Source: luci.js
It provides simple means to create subclasses of given classes and ... the first DOM `Node` extracted from the HTML fragment or *...
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