/usr/lib/lua/luci/dispatcher.lua:431: /etc/config/luci seems to be corrupt, unable to find section 'main'

I get the following error message when i try to open advanced settings:
/usr/lib/lua/luci/dispatcher.lua:431: /etc/config/luci seems to be corrupt, unable to find section 'main'

After reboot, all works fine, but after some time its broken again.

Hi

This appears to be an OpenWRT issue.

Please try the suggestions discussed in the following GitHub issue and see whether they resolve the problem for you:

it only states, that i have to enable swapp.. but it already is enabled and i did not change these settings at all. Looks like the device is simply unstable by design, maybe this is the reason for the option for scheduled restart … since the router is still working in this state, i do not care that much

Could you please let us know the following:

  1. The device model and firmware version
  2. When the issue occurs, please SSH into the router and run the following commands:
ps | grep rpcd
free -h
  1. Have you installed and ran any additional third-party plugins, or are you using an ad blocker (such as AdGuard Home) with a large number of filter lists enabled?
    • Model

      GL-MT300N-V2

    • Architecture

      MediaTek MT7628AN ver:1 eco:2

    • OpenWrt Version

      OpenWrt 22.03.4 r20123-38ccc47687

    • Kernel Version

      5.10.176

  1. i cannot reach SSH from the other side of the tunnel. Im not at the location of the router. I can access the web interface, but ssh runs into a timeout. Im able to access web ui from the IP of the other end of the tunnel, but i cannot access local ips of the router. I was unable to find a setting which allows ssh from the wan side (would be no security issue, since it is behind another router, simply to provide a permanent tunnel to deal with geo blocking issues)

It should be just a firewall thing, so make sure to allow SSH via iptables
And maybe set rtty.general.ssh_en='1'

root@VpnGateway:~# ps | grep rpcd

1506 root 2240 S /sbin/rpcd -s /var/run/ubus/ubus.sock -t 30

2369 root 1312 S grep rpcd

root@VpnGateway:~# free h

          total        used        free      shared  buff/cache   available

Mem: 121960 28684 61392 2092 31884 72496

Swap: 0 0 0

root@VpnGateway:~#

Were these details collected when the issue occurred?
It appears that the relevant processes are running normally, and there is still sufficient free memory available.