今天试着在OpnenWRT 19.07.1里安装应用,发现插件报错,情况如下:

Failed to execute cbi dispatcher target for entry '/admin/services/v2ray/global'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:938: module 'luci.cbi' not found:
no field package.preload['luci.cbi']
no file './luci/cbi.lua'
no file '/usr/share/lua/luci/cbi.lua'
no file '/usr/share/lua/luci/cbi/init.lua'
no file '/usr/lib/lua/luci/cbi.lua'
no file '/usr/lib/lua/luci/cbi/init.lua'
no file './luci/cbi.so'
no file '/usr/lib/lua/luci/cbi.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/lib/lua/luci/dispatcher.lua:938: in function </usr/lib/lua/luci/dispatcher.lua:937>

应该是luci的问题

解决办法:

opkg install luci luci-base luci-compat

更新一下luci-compat即可

1 对 “升级到OpenWRT 19.07后luci报错”的想法;

  1. 我的版本是19.07.3的,更新了还是不行,直接把lua源码文件中的报错行注释掉就行了

发表评论

电子邮件地址不会被公开。 必填项已用*标注