question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

/etc/config/luci seems to be corrupt, unable to find section 'main'

See original GitHub issue
  • 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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

22reactions
token0commented, Apr 28, 2019

service rpcd restart works for me

6reactions
JocelynDelalandecommented, Apr 10, 2020

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 :

  • run by hand (SSH console) : rcpd (/etc/init.d/rcpd did not work anymore)
  • restore factory defaults
Read more comments on GitHub >

github_iconTop Results From Across the Web

How I fixed OpenWRT LuCI error /etc/config/luci seems to be ...
How I fixed OpenWRT LuCI error /etc/config/luci seems to be corrupt, unable to find section 'main'. Problem: When you try to open your...
Read more >
Recent upgrade broke Luci - Installing and Using OpenWrt
/usr/lib/lua/luci/dispatcher.lua:234: /etc/config/luci seems to be corrupt, unable to find section 'main' stack traceback…
Read more >
Luci seems to be corrupt - Technical Support - GL.iNet Forum
The next day, I tried to go to the advanced section and I got the ... /etc/config/luci seems to be corrupt, unable to...
Read more >
[OpenWrt-Users] Luci install but not create /etc/config/luci
I'm installing openwrt on a TL-WR740N and i try to install luci to get a ... /etc/config/luci seems to be corrupt, unable to...
Read more >
/usr/lib/lua/luci/dispatcher.lua:370: /etc/config/luci seems to be ...
/usr/lib/lua/luci/dispatcher.lua:370: /etc/config/luci seems to be corrupt, unable to find section 'main'. OpenWrt.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found