luci-app-adguardhome icon indicating copy to clipboard operation
luci-app-adguardhome copied to clipboard

无法正常安装和使用

Open LeviMarvin opened this issue 3 years ago • 7 comments

问题详细信息

  • AdGuard Home luci的版本:
    • 1.8-11
  • AdGuard Home server的版本:
    • v107.5
  • 操作系统和版本:
    • OpenWrt 21.02.2

希望的执行结果

  1. 正确显示快速配置文件
  2. 正确更新核心

实际的执行结果

  1. `

500 内部服务器错误

对不起,服务器遇到未知错误。

/usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/map'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/tsection'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/ucisection'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/tvalue'.
A runtime error occurred: /usr/lib/lua/luci/model/cbi/AdGuardHome/manual.lua:11: bad argument #1 to 'lines' (/tmp/resolv.conf.auto: No such file or directory)
stack traceback:
	[C]: in function 'lines'
	/usr/lib/lua/luci/model/cbi/AdGuardHome/manual.lua:11: in function 'gen_template_config'
	/usr/lib/lua/luci/model/cbi/AdGuardHome/manual.lua:46: in function 'cfgvalue'
	[string "/usr/lib/lua/luci/view/cbi/tvalue.htm"]:1: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function 
	(tail call): ?
	/usr/lib/lua/luci/cbi.lua:257: in function 'render'
	/usr/lib/lua/luci/cbi.lua:1473: in function 'render'
	/usr/lib/lua/luci/cbi.lua:266: in function 'render_children'
	[string "/usr/lib/lua/luci/view/cbi/ucisection.htm"]:7: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function 'render'
	/usr/lib/lua/luci/dispatcher.lua:754: in function 'include'
	[string "/usr/lib/lua/luci/view/cbi/tsection.htm"]:1: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function 
	(tail call): ?
	/usr/lib/lua/luci/cbi.lua:257: in function 'render'
	/usr/lib/lua/luci/cbi.lua:266: in function 'render_children'
	[string "/usr/lib/lua/luci/view/cbi/map.htm"]:6: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function 
	(tail call): ?
	/usr/lib/lua/luci/cbi.lua:257: in function 'render'
	/usr/lib/lua/luci/cbi.lua:440: in function 'render'
	/usr/lib/lua/luci/dispatcher.lua:1451: in function '_cbi'
	/usr/lib/lua/luci/dispatcher.lua:1024: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:479: in function 
	</div>
	<footer>
		<span>
			<a href="https://github.com/openwrt/luci">Powered by LuCI openwrt-21.02 branch (git-22.052.50801-31a27f3)</a> / OpenWrt 21.02.2 r16495-bf0c965af0
		</span>
		<ul class="breadcrumb pull-right" id="modemenu" style="display:none"></ul>
	</footer>
	<script type="text/javascript">L.require('menu-bootstrap')</script>
	
</body>

LeviMarvin avatar Mar 19 '22 12:03 LeviMarvin

安装 luci-compat 了吗?

lemchen avatar Apr 02 '22 05:04 lemchen

安装了

LeviMarvin avatar Apr 02 '22 08:04 LeviMarvin

好像是最新版本的AdguardHome把执行路径和配置路径都改了,这边的Luci包还没改,所以读不到配置(现在改为/opt/AdguardHome/AdguardHome.yaml,原来是/etc/AdguardHome.yaml) 目前我的解决方案是保存好旧版的yaml配置文件,重新手动安装AdguardHome,再用Winscp进去新路径覆盖掉原始配置文件。操作界面用XXX.XXX.XXX.XXX:3000的方式进,不用图形界面了

补充方法二:

将路径改为下图所示,再用Winscp进去/opt/AdguardHome/路径,上传旧的AdguardHome.yaml,重启后可以正常使用 uTools_1649817081910

WilsonXu0512 avatar Apr 09 '22 13:04 WilsonXu0512

我不再用 LuCI 进行操作,按照官方教程安装、替换 DNS 解析后,直接访问 AdGuradHome 的 IP:端口 的 WEB 控制台进行操作。 这是目前最好的解决方案。

LeviMarvin avatar Apr 12 '22 07:04 LeviMarvin

2DBF6F00-6277-4651-8EA8-FF9EFD4EC8E6 我的也这样

gsxzn163 avatar May 22 '22 02:05 gsxzn163

我不再用 LuCI 进行操作,按照官方教程安装、替换 DNS 解析后,直接访问 AdGuradHome 的 IP:端口 的 WEB 控制台进行操作。 这是目前最好的解决方案。

官方 openwrt 下怎么操作?

142857X1 avatar Mar 27 '23 11:03 142857X1

我不再用 LuCI 进行操作,按照官方教程安装、替换 DNS 解析后,直接访问 AdGuradHome 的 IP:端口 的 WEB 控制台进行操作。 这是目前最好的解决方案。

请教官方教程安装是怎么操作?

142857X1 avatar Mar 28 '23 21:03 142857X1