19.07.2 x86_64 luci breaks with luci-app-openvpn or -ddns

Dear all,

Did the following several times by using downloaded openwrt from May 7th and today (May 14th), same result every time:

  • Did a fresh install on APU2E4 with openwrt 19.07.2 squashfs (via sysupgrade -n ... or via luci, no difference)
  • Every time I install luci-app-openvpn or luci-app-ddns it does not want to install, indicating luci-compat was missing or luci-base was already part of.
  • When installing the luci (opkg install luci) I can install luci-app-openvpn or luci-app-ddns.
    => However after a reboot luci is broken (just /lib/... many errors).
    => It states also to be incompatible versions between luci and the luci-app packages.

How can I solve this ?

Many thanks ! and

cheers blinton

You need to upgrade the other LuCI packages first, then it should work.

Dear jow,

Thanks a lot for your quick answer.

After a fresh install, I did
opkg install luci
opkg install luci-base
opkg install luci-compat
to update to the latest (I did not install anything else).

After a reboot, instead of getting the Luci webinterface, I get the following:

/usr/lib/lua/luci/template.lua:97: Failed to execute template 'sysauth'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'header'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'themes/bootstrap/header'.
A runtime error occurred: [string "/usr/lib/lua/luci/view/themes/bootstrap/hea..."]:20: attempt to call field 'node_childs' (a nil value)
stack traceback:
	[string "/usr/lib/lua/luci/view/themes/bootstrap/hea..."]:20: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function 'render'
	/usr/lib/lua/luci/dispatcher.lua:755: in function 'include'
	[string "/usr/lib/lua/luci/view/header.htm"]:3: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function 'render'
	/usr/lib/lua/luci/dispatcher.lua:755: in function 'include'
	[string "/usr/lib/lua/luci/view/sysauth.htm"]:1: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function </usr/lib/lua/luci/template.lua:85>
	(tail call): ?
	(tail call): ?
	/usr/lib/lua/luci/dispatcher.lua:979: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:478: in function </usr/lib/lua/luci/dispatcher.lua:477>

Not sure if I'd rather go for a dd of openwrt ?

Many thanks !

cheers blinton

Please see if it is fixed after an opkg install luci-theme-bootstrap. Also do an rm -r /tmp/luci-* afterwards to flush any caches.

5 Likes

Perfect, that did the trick ! Everything works now perfectly as usual :slight_smile: !
Have a great day !
cheers blinton

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