Skip to content

AdGuardHome on RT6600ax: Invalid adguardhome.conf (querylog.interval)

After installing Ubuntu and Adguard Home, I had troubles starting the service. Upon attempting to do it manually, I could see the following error:

root@SynologyRouter:/autostart# sh adguardhome.sh
2023/12/16 11:34:33 [error] Couldn't get logging settings from the configuration: unmarshaling duration: time: missing unit in duration "30"
2023/12/16 11:34:33.796134 [info] AdGuard Home, version v0.107.43
2023/12/16 11:34:33.802037 [error] parsing configuration file: unmarshaling duration: time: missing unit in duration "30"

When checking the adguardhome.conf file, I could find this:

querylog:
  enabled: true
  file_enabled: true
  ignored: []
  interval: 30
  size_memory: 100

However, according to https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration, the config must match:

interval: Time interval for statistics. (before v0.107.27) It's a number with duration in days. (since v0.107.27) It's a string with human-readable duration between an hour (1h) and a year (8760h).

Thus, by changing the value from 30 to 30h, I was able to start the Adguard Home service afterwards.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information