Luci not accessible

Hi forum,

something went wrong while updating my OpenWrt.
I can access the device via SLL, but the the webintrface brings some errors:

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

I tried to --force-reinstall luci and lua but it didn't work. Is there any idea to bring the device back on track ?

Thanks in advice

Could be happening after removal of python-base package and a py script in /usr/libexec/rpcd with the wrong shebang (#!/usr/bin/python vs. #!/usr/bin/python3)

So what can I do to fix this ?

Since this being one potential cause check whether /usr/bin/python is existent on the node

ll /usr/bin | grep python

If it is present then the cause is likely something else. If absent check for py scripts in /usr/libexec/rpcd. If none existent then the cause is likely something else. If py scripts exist check the shebang for each such script and correct it if necessary, alternatively set a symlink (only if /usr/bin/python is absent)

ln -sfn /usr/bin/python3 /usr/bin/python

and restart rpcd or reboot the node.

Does this help?

no py scripts in both directories :frowning:

opkg install luci-theme-bootstrap replies the following:

Package luci-theme-bootstrap (git-20.124.71364-85909bc-1) installed in root is up to date

Have you tried the second solution (flushing caches)?

I also tried to flush the caches. But there were no files like luci-*

Your web browser cache.

Oh, OK :scream:
Tried it from another client. But the same output

I managed to connect via SCP, uploaded the sysupdate and installed it.
Now it works again !
Thank's for your help