OpenWrt Forum Archive

Topic: Can't login to LUCI

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,
When trying to access LUCI i get the following message:

/usr/lib/lua/luci/dispatcher.lua:582: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
    [C]: in function 'pairs'
    /usr/lib/lua/luci/dispatcher.lua:582: in function 'createtree'
    /usr/lib/lua/luci/dispatcher.lua:230: in function 'dispatch'
    /usr/lib/lua/luci/dispatcher.lua:195: in function </usr/lib/lua/luci/dispatcher.lua:194>

Router is functional and I have SSH access.
How do I fix this?

Try "rm -r /tmp/luci-indexcache"

thanks, LUCI interface is back!

Any idea what caused this? I just tried to reboot the router and got that message

I'm not entirely sure - maybe you ran out of ram? Did you recently install any packages through luci?

yes, I installed a package, made some changes to to Local Startup (System -> Startup) and then rebooted

The discussion might have continued from here.