- OpenWrt 18.06.1 on a WRT3200ACM
- Sometimes, when I try to access the main page on the router, I get this error:
/usr/lib/lua/luci/dispatcher.lua:230: /etc/config/luci seems to be corrupt, unable to find section 'main'
stack traceback:
[C]: in function 'assert'
/usr/lib/lua/luci/dispatcher.lua:230: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:127: in function </usr/lib/lua/luci/dispatcher.lua:126>
- However, “
/etc/config/luci” looks fine, and just rebooting the device fixes the issue.
- When this happens, all other functionality on the router works fine., but f I log into the router and execute “
logread -l 100”, all I can see is this single line:
Thu Jan 1 01:00:00 1970 kern.emerg kernel:
- A couple of minutes later, the logs fill again with normal messages, but luci never recovers.
- Restarting “
uhttpd” does not fix the issue.
service rpcd restartworks for meat some version /var/run/ubus.sock was moved to /var/run/ubus/ubus.sock
so edit /etc/config/rpcd
Another way to solve: https://forum.openwrt.org/t/luci-webgui-crash-after-updating-to-ver-18-6-8-on-tp-link-tl-wa801n-v2/57620/9 <<Adding in the beginning of /etc/config/rpcd
and then rebooting. >>
I had the same error, after an upgrade from some LEDE version (from 2017 IIRC) to OpenWRT 18.06.08. I choosen to keep settings while upgrading, that was apparently a mistake.
To fix it, I did :
rcpd(/etc/init.d/rcpddid not work anymore)No need to restore factory defaults (although it might be a good idea, specially if you don’t have that many settings). You can add
rpcd &to/etc/rc.localbefore theexit 0line and everytime you bootrpcdwill start and LuCi will work just fine.This can also happen when the
rpcdservice is not running / crashing