-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query log entries disappear after a service restart #6100
Comments
AdGuard Home keeps an in-memory buffer of records, configurable through the In any case, enabling verbose logs and seeing if there are any errors during the shutdown should help. You can also set |
Same here, reproduced, and I found just a little bit differnces in verbose log:
And here's another server which works perfectly normal:
I tried over and over again, they always do these works like that, and first one always lost it's query log and stats, second one always works great. Anything else should I provide? By the way, I do tried to set |
@fernvenue, thanks for the effort! The question remains still, how do you stop AGH? When it's shut down properly, the following lines indicate that the stats and the query log have been correctly flushed to disk:
We haven't been able to find bugs in the start-up procedure, so the shutdown is the main suspect for now. |
Hi @ainar-g, this will happen when I use
AdGuardHome installed by:
I got nothing when I try
If any other information needed or I can help with, feel free to tell me :) |
Ah, so this is mostly seen when running as a service. We'll investigate. |
Updates #6100. Squashed commit of the following: commit f8a37b4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Aug 28 14:08:41 2023 +0300 home: imp code commit 2dd357f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Aug 25 19:35:42 2023 +0300 all: imp docs commit 369f178 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Aug 25 19:26:14 2023 +0300 all: upd chlog commit c07d80e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Aug 25 16:22:58 2023 +0300 home: fix more commit 3872806 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Aug 24 15:35:22 2023 +0300 home: fix query log
We've pushed the edge release containing the fix. |
Hi @schzhn, I just tested edge release, that works for me :) |
Prerequisites
I have checked the Wiki and Discussions and found no answer
I have searched other issues and found no duplicates
I want to report a bug and not ask a question or ask for help
I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
Linux, AMD64 (aka x86_64)
Installation
GitHub releases or script from README
Setup
On a router, DHCP is handled by the router
AdGuard Home version
0.107.36
Action
As the title say, after a machine restart / AGH service restart, entries in query log disappear. Sometimes 2 hours, sometimes 6 hours, sometimes a day or two, it vary. Restarted the service 3 times now, in a period of 30-40 minutes and all logs disappeared to the same time and the same entry log at 17:03.
The problem showed up after updating to .36 build. Couldn't see it on previously running .34 (skipped .35) or any other build since .21 when my journey with AGH started. No setting changed between these builds other than increased rate limit from 20 to 40 queries/second and possibly increasing both the cache size to 32MB and TTL.
Expected result
Complete query log.
Actual result
Not complete log.
Additional information and/or screenshots
OpenWrt 22.03.3 x86 Intel, kernel 5.10.161. Not using the opkg package but stable script from AGH repo.
The text was updated successfully, but these errors were encountered: