No Lua runtime installed error

I installed today's SNAPSHOT r21133-910bdda6af and LuCI is broken with Runtime exception No Lua runtime installed.

It appears that the Lua-ectomy has progressed to the point where the luci-sgi-uhttpd package no longer exists, but I can't figure out how to set my config to work without it. I tried getting rid of the lua_prefix setting in /etc/config/uhttpd, and removed the uhttpd-mod-lua package too, but all that doesn't change the above error message.

I've recursive grepped through the whole system and can't find where the no-runtime message is generated, so I'm sort of at a loss as to what the config should look like for a non-Lua-enabled LuCI. Anyone got some ideas?

Ok, so I force reinstalled uhttpd-mod-ucode, restarted /etc/init.d/uhttpd restart and still got the error.

Then just for fun, I installed luci-app-uhttpd, restarted uhttpd again and LuCI comes back to life. Weird? Not sure what the app is installing that the base code doesn't have, but if I remove the app and restart, I'm back to No Lua runtime...

I moved this to a new thread, as this is not E8450 specific.

@jow might be able to give some light, or fix things in source if you stumbled into a problem to fix.

1 Like

Is this a vanilla, unmodified snapshot? The error above means that the system attempts to render a Lua page while no LuCI Lua runtime is installed.

What LuCI packages are installed currently?

Yes, a plain snapshot, from command line auc. I had upgraded a week ago to SNAPSHOT r21087-288b36c2ea using Attended Sysupgrade without issue.

Here's everything luci but for the language files:

$ opkg list-installed | grep luci | grep -v luci-i18
liblucihttp-lua - 2022-07-08-6e68a106-1
liblucihttp-ucode - 2022-07-08-6e68a106-1
liblucihttp0 - 2022-07-08-6e68a106-1
luci - git-22.297.83017-0143ef2
luci-app-adblock - git-22.291.47802-79cbbc0
luci-app-attendedsysupgrade - git-22.285.67526-18bfcca
luci-app-firewall - git-22.089.67453-0eb3aeb
luci-app-opkg - git-22.273.28779-84ba6a5
luci-app-sqm - git-21.164.25180-005c09a
luci-app-uhttpd - git-22.029.54222-e3fbfe9
luci-base - git-22.300.38193-2a5efb3
luci-compat - git-22.297.83017-673f382
luci-lib-base - git-22.297.83017-cea2c35
luci-lib-ip - git-20.250.76529-62505bd
luci-lib-jsonc - git-22.079.54693-45f411b
luci-lib-nixio - git-22.222.71555-88b9088
luci-lua-runtime - git-22.299.72136-a98e2ea
luci-mod-admin-full - git-19.253.48496-3f93650
luci-mod-network - git-22.301.32567-1d157d3
luci-mod-status - git-22.297.83017-97da0ba
luci-mod-system - git-22.297.83017-f478fe6
luci-proto-ipv6 - git-21.148.48881-79947af
luci-proto-ppp - git-21.158.38888-88b9d84
luci-ssl - git-20.244.36115-e10f954
luci-theme-bootstrap - git-22.297.83017-2e3282e
luci-theme-openwrt-2020 - git-22.299.74636-694b808
rpcd-mod-luci - 20210614

Now that I'm trying to recreate the situation I cannot. I've removed luci-app-uhttpd and rebooted, comes back just fine. I'm starting to think it was something that got missed when I did my auc that my subsequent fiddling has repaired, and now the tracks of the issue are gone.

I'm going to say don't waste any more time on this, I'll keep playing with it and if something pops up I'll mention it here, but otherwise consider it closed.

1 Like

I also see that text. I compiled an image with make image PROFILE=tplink_archer-c60-v1 PACKAGES="htop nano iperf3 wpad-mini uhttpd-mod-ubus luci-mod-admin-full luci-i18n-firewall-es luci-theme-openwrt-2020 kmod-ath10k-smallbuffers ath10k-firmware-qca9888 luci-i18n-base-es luci-i18n-commands-es -odhcp6c -odhcpd-ipv6only -ppp -ppp-mod-pppoe -opkg -wpad-basic-wolfssl -ath10k-firmware-qca9888-ct -kmod-ath10k-ct-smallbuffers -libustream-wolfssl -uclient-fetch -ca-bundle

ath10k-board-qca9888 - 20221012-1
ath10k-firmware-qca9888 - 20221012-1
base-files - 1506-r21123-641e4f2f04
busybox - 1.35.0-4
cgi-io - 2022-08-10-901b0f04-21
dnsmasq - 2.86-15
dropbear - 2022.82-2
firewall4 - 2022-10-18-7ae5e14b-1
fstools - 2022-10-18-ee54c6bc-1
fwtool - 2019-11-12-8f7fe925-1
getrandom - 2022-08-13-4c7b720b-1
hostapd-common - 2022-07-29-b704dc72-5.1
htop - 3.2.1-1
iperf3 - 3.12-1
iw - 5.19-1
iwinfo - 2022-10-14-0496c722-1
jansson4 - 2.14-3
jshn - 2022-09-27-ea560134-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 5.15.74-1-2dd24b9402313bc31b35ebf1775d878e
kmod-ath - 5.15.74+5.15.74-1-1
kmod-ath10k-smallbuffers - 5.15.74+5.15.74-1-1
kmod-ath9k - 5.15.74+5.15.74-1-1
kmod-ath9k-common - 5.15.74+5.15.74-1-1
kmod-cfg80211 - 5.15.74+5.15.74-1-1
kmod-crypto-aead - 5.15.74-1
kmod-crypto-ccm - 5.15.74-1
kmod-crypto-cmac - 5.15.74-1
kmod-crypto-crc32c - 5.15.74-1
kmod-crypto-ctr - 5.15.74-1
kmod-crypto-gcm - 5.15.74-1
kmod-crypto-gf128 - 5.15.74-1
kmod-crypto-ghash - 5.15.74-1
kmod-crypto-hash - 5.15.74-1
kmod-crypto-hmac - 5.15.74-1
kmod-crypto-manager - 5.15.74-1
kmod-crypto-null - 5.15.74-1
kmod-crypto-rng - 5.15.74-1
kmod-crypto-seqiv - 5.15.74-1
kmod-crypto-sha256 - 5.15.74-1
kmod-gpio-button-hotplug - 5.15.74-3
kmod-lib-crc32c - 5.15.74-1
kmod-mac80211 - 5.15.74+5.15.74-1-1
kmod-nf-conntrack - 5.15.74-1
kmod-nf-conntrack6 - 5.15.74-1
kmod-nf-flow - 5.15.74-1
kmod-nf-log - 5.15.74-1
kmod-nf-log6 - 5.15.74-1
kmod-nf-nat - 5.15.74-1
kmod-nf-reject - 5.15.74-1
kmod-nf-reject6 - 5.15.74-1
kmod-nfnetlink - 5.15.74-1
kmod-nft-core - 5.15.74-1
kmod-nft-fib - 5.15.74-1
kmod-nft-nat - 5.15.74-1
kmod-nft-offload - 5.15.74-1
libblobmsg-json20220927 - 2022-09-27-ea560134-1
libc - 1.2.3-4
libgcc1 - 11.3.0-4
libiperf3 - 3.12-1
libiwinfo-data - 2022-10-14-0496c722-1
libiwinfo20210430 - 2022-10-14-0496c722-1
libjson-c5 - 0.16-2
libjson-script20220927 - 2022-09-27-ea560134-1
liblucihttp-ucode - 2022-07-08-6e68a106-1
liblucihttp0 - 2022-07-08-6e68a106-1
libmnl0 - 1.0.5-1
libncurses6 - 6.3-2
libnftnl11 - 1.2.3-2
libnl-tiny2022-05-23 - 2022-05-23-28c44ca9-1
libubox20220927 - 2022-09-27-ea560134-1
libubus20220601 - 2022-06-01-2bebf93c-1
libuci20130104 - 2021-10-22-f84f49f0-6
libucode20220812 - 2022-10-18-00af0650-1
logd - 2022-08-13-4c7b720b-1
luci-app-commands - git-22.299.76611-9d8feac
luci-app-firewall - git-22.089.67453-0eb3aeb
luci-base - git-22.300.38193-2a5efb3
luci-i18n-base-es - git-22.300.43453-55b19ee
luci-i18n-commands-es - git-22.300.43417-b20b69b
luci-i18n-firewall-es - git-22.300.43531-02d38c1
luci-mod-admin-full - git-19.253.48496-3f93650
luci-mod-network - git-22.301.32567-1d157d3
luci-mod-status - git-22.297.83017-97da0ba
luci-mod-system - git-22.297.83017-f478fe6
luci-theme-openwrt-2020 - git-22.299.74636-694b808
mtd - 26
nano - 6.4-1
netifd - 2022-08-25-76d2d41b-1
nftables-json - 1.0.5-2
openwrt-keyring - 2022-03-25-62471e69-2
procd - 2022-07-17-ef5d3e36-1
procd-seccomp - 2022-07-17-ef5d3e36-1
procd-ujail - 2022-07-17-ef5d3e36-1
rpcd - 2022-09-21-8c852b65-1
rpcd-mod-file - 2022-09-21-8c852b65-1
rpcd-mod-iwinfo - 2022-09-21-8c852b65-1
rpcd-mod-luci - 20210614
rpcd-mod-ucode - 2022-09-21-8c852b65-1
swconfig - 12
terminfo - 6.3-2
uboot-envtools - 2022.10-2
ubox - 2022-08-13-4c7b720b-1
ubus - 2022-06-01-2bebf93c-1
ubusd - 2022-06-01-2bebf93c-1
uci - 2021-10-22-f84f49f0-6
ucode - 2022-10-18-00af0650-1
ucode-mod-fs - 2022-10-18-00af0650-1
ucode-mod-html - 1
ucode-mod-math - 2022-10-18-00af0650-1
ucode-mod-ubus - 2022-10-18-00af0650-1
ucode-mod-uci - 2022-10-18-00af0650-1
uhttpd - 2022-08-12-e3395cd9-2
uhttpd-mod-ubus - 2022-08-12-e3395cd9-2
urandom-seed - 3
urngd - 2020-01-21-c7f7b6b6-1
usign - 2020-05-23-f1f65026-1
wireless-regdb - 2022.08.12-1
wpad-mini - 2022-07-29-b704dc72-5.1

Thank you for posting this!

Installing this via the command brought back the web ui but I now have uhttpd listed as a service. Only one of my two routers exhibited the issue. I use the Openwrt 2020 web UI and that's changed, too. The side bar menu is now always visible even when not logged in which I don't like.

Reverting to a prior build and will watch the commits for a fix.

The odd thing is that when I tried to backtrack and reproduce the issue, I did opkg remove luci-app-uhttpd, then did a new 'Attended Sysupgrade' and things still work fine.

Interesting - one of my routers didn't have the problem at all but has different packages (no luci-app-uhttpd though). Since I like Openwrt 2020, and it displayed all menu options when not logged in with this recent build, I will stay on an older build for now.

1 Like

After a sysupgrade off of snapshot this happened to me too. Dropping to cmd line, opkg install luci-app-uhttpd gave this:

Collected errors:
 * opkg_install_pkg: Checksum or size mismatch for package luci-lib-ip. Either the opkg or the package index are corrupt. Try 'opkg update'.
 * opkg_install_cmd: Cannot install package luci-app-uhttpd.

After a opkg update, opkg install luci-app-uhttpd picked up dependencies and everything is well again.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.