OpenWrt错误处理
手动安装openclash之后web页面无法正常加载,报如下错误
/usr/lib/lua/luci/controller/openclash.lua:92: module 'luci.cbi.datatypes' not found:
no field package.preload['luci.cbi.datatypes']
no file './luci/cbi/datatypes.lua'
no file '/usr/share/lua/luci/cbi/datatypes.lua'
no file '/usr/share/lua/luci/cbi/datatypes/init.lua'
no file '/usr/lib/lua/luci/cbi/datatypes.lua'
no file '/usr/lib/lua/luci/cbi/datatypes/init.lua'
no file './luci/cbi/datatypes.so'
no file '/usr/lib/lua/luci/cbi/datatypes.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/controller/openclash.lua:92: in main chunk
[C]: in function 'require'
/usr/lib/lua/luci/dispatcher.lua:1135: in function 'createindex'
/usr/lib/lua/luci/dispatcher.lua:1236: in function 'createtree'
/usr/lib/lua/luci/dispatcher.lua:639: in function 'menu_json'
/usr/lib/lua/luci/dispatcher.lua:888: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:483: in function </usr/lib/lua/luci/dispatcher.lua:482>解决方法:通过命令行手动安装luci-compat
opkg update
opkg install luci-compat检查OpenClash版本或下载内核速度过慢、失败
【/tmp/clash_last_version】下载失败:【curl: (28) Operation timed out after 60000 milliseconds with 0 bytes received】
【/tmp/openclash_last_version】下载失败:【curl: (35) ssl_handshake returned - mbedTLS: (-0x7280) SSL - The connection indicated an EOF】
【/tmp/openclash_last_version】下载失败:【curl: (28) SSL connection timeout】![[../../../media/Images/OpenClashError_01.png]]
在OpenClash的“覆写设置”-->“常规设置”中将GitHub地址修改为某个CDN地址,同时尽量将该地址在规则中配置为直连 示例:
- DOMAIN-KEYWORD,jsdelivr.net,DIRECT使用OpenClash+AdGuardHome过滤DNS导致DHCP无法分配私有DNS
现象:DHCP客户端无法获取到在“网络--接口--LAN--高级设置”中配置的“自定义DNS服务器”
解决:在“网络--接口--LAN--DHCP服务器--高级设置”中,将"DHCP选项"输入6,192.168.3.1,再重启一下LAN口。
DHCP选项中,3,192.16.83.1 3是指定网关,6是指定DNS
ssh: Connection to erxited: No auth methods could be used.
通过OpenWrt发起SSH连接会报错。 OpenWrt默认用的SSH服务是dropbear,没有认证模块,安装openssh-client来实现
opkg update
opkg install openssh-client
最后更新于