So /opt is not found, do I need mount_root to access it by default? Why isn't /opt there by default?
There did you get your AGH "install media" from?
I installed the agh through opkg/gui.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
opkg list-installed adguardhome
Says something about betas and /opt, info might be outdated though.
{
"kernel": "5.15.150",
"hostname": "OpenWrt",
"system": "ARMv8 Processor rev 4",
"model": "GL.iNet GL-MT3000",
"board_name": "glinet,gl-mt3000",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "23.05.3",
"revision": "r23809-234f1a2efa",
"target": "mediatek/filogic",
"description": "OpenWrt 23.05.3 r23809-234f1a2efa"
}
}
adguardhome - 0.107.46-1
In which file you put that working directory yourself? It is not default.
One issue I noticed during my installation of AGH:
After completing the last command in the installation which was:
/etc/init.d/dnsmasq restart
This was the result (repeated a few times until it stops):
openwrt udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: no lease, failing
My setup involves firewalls where some of the groups don't have access to the router itself, but I do have custom rules for DHCP and DNS.
Nothing to do with agh,
What do you mean? My adguardhome.yaml is indeed in /etc though.
I SSH directly and started the installation script from pwd /root:
https://openwrt.org/docs/guide-user/services/dns/adguard-home#setup
wait a minute, I do have /var/adguardhome which has the config files as shown?
But official documentation says that it should be under /opt?
Hope you enjoy your double ad protection. It is up to you to figure out which you use and which conf files apply.
I have no idea what you are telling me? How did you figure out I have two agh?
sorry, I'm three times as confused now as I was before posting, could you please elaborate?
As i said you are running 2 copies of agh. Decide for one. Here one in /var and so on is supported, other in /opt is upstream blobs.
Have you checked the script? It has nothing to do with installing two instances, it is even documented to run after installing with opkg, I even linked you the setup script:
https://openwrt.org/docs/guide-user/services/dns/adguard-home#setup
How did you arrive at /opt/AdG...?
/opt is not even mounted on my openwrt, hence my question.
I found about /opt/adg here: https://openwrt.org/docs/guide-user/services/dns/adguard-home#data_files
Author of section likely copied it from upstreams.
There are two ways to install AGH:
- opkg (this is how you did it) - described here: https://openwrt.org/docs/guide-user/services/dns/adguard-home
- manual - described here: [How-To-Updated 2021] Installing AdGuardHome on OpenWrt [Manual and opkg method]
Quoting from the manual installation thread:
I suspect there is typo in the documentation: https://openwrt.org/docs/guide-user/services/dns/adguard-home#data_files, there should be nothing in /opt
when installing via opkg.