/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>
I dont want to setup everything again (I installed also print server and some other packages), gl.inet admin area works normally byt why luci doesnt work?
Restarted, but not sure what should I do that that rpcd config
root@openwrt:~# service rpcd restart
root@openwrt:~#
root@openwrt:~# option socket /var/run/ubus.sock
-ash: option: not found
root@openwrt:~# cat /var/run/ubus.sock
cat: can't open '/var/run/ubus.sock': No such device or address
root@openwrt:~# cat /var/run/ubus/ubus.sock
cat: can't open '/var/run/ubus/ubus.sock': No such file or directory
root@openwrt:~# cp /rom/etc/config/rpcd /etc/config/rpcd
cp: can't stat '/rom/etc/config/rpcd': No such file or directory
The problem is not with luci but rpcd, although the error message is misleading and confusing!
I am suspecting that one of the packages he installed for the print server messed up his rpcd. It happened before with me and drove me nuts when I installed grep with opkg!
Which packages have you installed recently? GL-AR750S as print server - #8 by satheemuah I followed this guide
Luci was working after I installed it, I configured p910nd Printer server on it and firewall on gl.inet admin area. If I remember correctly, after router reboot the next day after the installation of print server, I could access Luci normally.
How long have you been running the modem without firmware update?
for like 2 months, I don’t remember exactly, I haven’t updated firmware recently.
Have you restored your configurations/settings recently?
No
Actually, I removed the # comments on those lines, rebooted router and now luci works. I will keep you updated if it stops working again. Not sure why it wasnt working before.