rufengsuixing/luci-app-adguardhome

在单臂 OpenWRT 上无法安装

terenceng81 opened this issue · 2 comments

  • 我用着最新版的 luci-app-adguardhome
  • 我检查了没有人提交同样的问题

问题详细信息
AdGuard Home luci的版本: v1.89 最新
操作系统和版本: OpenWrt 19.07.2 r10947-65030d81f3 / LuCI openwrt-19.07 branch git-20.211.35121-aa4aa72
我的 OpenWRT 是作为二级路由使用的,它并没有 WAN 口,只有单纯的一个 LAN 口,主路由是 ROS

希望的执行结果: 成功安装并在OpenWRT上使用 AdGuard Home

日志: 安装的时候会有下列错误信息
root@OpenWRT:/etc/config# opkg install luci-app-adguardhome_1.8-9_all.ipk
Installing luci-app-adguardhome (1.8-9) to root...
Configuring luci-app-adguardhome.
uci: Entry not found
Command failed: Not found
awk: /etc/AdGuardHome.yaml: No such file or directory
Command failed: Invalid argument

日志: 无法下载core,会显示有任务正在执行,其任务并不会完成。

日志: 删除的时候会有下列错误信息
root@OpenWRT:/etc/config# opkg remove luci-app-adguardhome
Removing package luci-app-adguardhome from root...
awk: /etc/AdGuardHome.yaml: No such file or directory
AdGuardHome turn off
enabled=0
Command failed: Not found
awk: /etc/AdGuardHome.yaml: No such file or directory
AdGuardHome turn off
enabled=0
Command failed: Not found
Not deleting modified conffile /etc/config/AdGuardHome.

反安装后有些文件需要手动清除

  1. 目录 rm /tmp/luci-indexcache*
  2. 配置文件 root@OpenWRT:/etc/config# rm AdGuardHome
  3. 目录 root@OpenWRT:/usr/share# rmdir AdGuardHome

手动下载 core 文件,访问 openwrt 里的 luci-app-adguardhome ,出现下列问题,页面打不开。

/usr/lib/lua/luci/model/cbi/AdGuardHome/base.lua:49: attempt to concatenate local 'version' (a nil value)
stack traceback:
/usr/lib/lua/luci/model/cbi/AdGuardHome/base.lua:49: in function 'func'
/usr/lib/lua/luci/cbi.lua:66: in function 'load'
/usr/lib/lua/luci/dispatcher.lua:1340: in function '_cbi'
/usr/lib/lua/luci/dispatcher.lua:1023: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:999: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:478: in function </usr/lib/lua/luci/dispatcher.lua:477>

删除 :/usr/bin/AdGuardHome/AdGuardHome 页面反而能打开。。。

作者不支持了吗?