I encountered somewhat similar issue with Adguard-home cannot read certs on usbkey . I configured my AGH so statistics, querylog, and log (syslog) are saved in USB drive (/mnt/sda1).
There's no jail_mount_rw config option at the moment. I'll add this when I have time, or you can do it yourself and open a PR.
Thank you for the confirmation. Personally I’m not yet familiar with the codebase e.g. where the related code reside. I will try to take a look on it.
alternatively why don't you move the workdir - which is RW - somewhere else?
Because I sometimes encounter issue with my external drive. With my current config, if there’s something wrong with my external drive that prevents AGH from starting (like in this case), I would remove and disable AGH querylog and statistics and AGH would run.
I could try to move AGH workdir to the external drive if that would make the external drive read-write-able by AGH itself. But if something goes wrong with my external drive, I would need to update 2 config files: AGH workdir and also disable AGH querylog and statistics.
I have tested the change in my router and it works as expected. Please kindly review it. Thank you!
Edit: The PR has been merged and released along with 25.12. If anyone encountered similar issue in 25.12, please check and update your /etc/config/adguardhome to add related directory to read-write jail.