AdguardTeam/AdGuardHome

Statistics and Query log resets on every router reboot.

Closed this issue · 2 comments

Prerequisites

Platform (OS and CPU architecture)

Linux, ARMv8

Installation

Custom package (OpenWrt, HomeAssistant, etc; please mention in the description)

Setup

On a router, DHCP is handled by the router

AdGuard Home version

0.107.57

Action

Replace the following command with the one you're calling or a
description of the failing action:

Rebooting router from LuCI interface menu.

Expected result

I expect that going to AGH after the reboot that my logs and statistics will not be reset.

Actual result

All logs and statistics are reset.

Additional information and/or screenshots

Gl.inet MT6000 on OpenWrt 24.10.2
Following error is in system log at startup:

daemon.err AdGuardHome[5271]: 2025/09/06 00:56:34.823933 [info] permcheck: warning: found unexpected permissions type=directory path=/tmp/lib/adguardhome perm=0755 want=0700

I've set the wanted permissions on said folder but it did not stick

Uninstalled and manually installed version 0.107.65
Appears to have solved the issue. Not sure if the issue was because the version in opkg is older or the install method.
The folder permissions were not the issue as I'm still receiving that error in this latest install.

Update. Turns out that the OpenWRT package is configured to write logs/statistics to /tmp. I had totally missed this little detail.