今天打开路由器控制台的时候突然得到一个错误提示,进不了后台了
/usr/lib/lua/luci/dispatcher.lua:462: bad argument #1 to 'pairs' (table expected, got nil) stack traceback:
[C]: in function 'pairs'
/usr/lib/lua/luci/dispatcher.lua:462: in function 'createtree' /usr/lib/lua/luci/dispatcher.lua:188: in function 'dispatch' /usr/lib/lua/luci/dispatcher.lua:95: in function </usr/lib/lua/luci/dispatcher.lua:94>
研究了半天,发现原来是临时文件出错,那么,一个简单粗暴的方式就是清空临时文件
rm -r /tmp/luci-indexcache
其实后来发现还有个更简单的方法,重启路由器即可~~~!
转载请注明:野草堂 » OpenWRT 控制台luci显示错误