Crashing when updating filters
Prerequisites
-
[X] I have checked the Wiki and Discussions and found no answer
-
[X] I have searched other issues and found no duplicates
-
[X] I want to report a bug and not ask a question or ask for help
-
[X] 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, ARMv5
Installation
Other (please mention in the description)
Setup
Other (please mention in the description)
AdGuard Home version
Raspberry Pi
Action
from the UI, i went to filters, then looked at the filter lists. when going out and back to dashboard, site is unresponsive and add blcoking stops. i have to unplug it to get it back working. If i dont go to filters, no issues.
Expected result
Filter vieweing should not crash the software
Actual result
crashes the ui and the ip becomes unresponsive
Additional information and/or screenshots
No response
Check the verbose logs for the precise errors and make sure you aren't adding too many rules for your machine.
Check the verbose logs for the precise errors and make sure you aren't adding too many rules for your machine.
@ainar-g I've also experienced this issue yesterday, unblocked 4 entries on the Query Log, and it crashed my internet. Can you be more specific when you say: "make sure you aren't adding too many rules for your machine.". Two reboots and one power off after it all went back working again, no logs after.
The most CPU- and RAM-intensive task in AdGuard Home is the filtering engine compilation, and depending on how much CPU power and RAM the machine has, there are limits to what is a reasonable number. For general protection, enabling lists with ≤ 1M rules should be enough.
As mentioned, the verbose logs are the most direct way to see if this is related to the filtering engine or not.
This is exactly the issue. Glad it isn’t just me. Exactly the issue. Sent from a mobile device. Please excuse typographical errors. On Aug 8, 2024, at 4:53 AM, chapas @.> wrote:Re: [AdguardTeam/AdGuardHome] Crashing when updating filters (Issue #7174)Check the verbose logs for the precise errors and make sure you aren't adding too many rules for your @.'ve also experienced this issue yesterday, unblocked 4 entries on the Query Log, and it crashed my internet. Can you be more specific when you say: "make sure you aren't adding too many rules for your machine.".Two reboots and one power off after it all went back working again, no logs after.—Reply to this email directly, view it on GitHub or unsubscribe.You are receiving this email because you commented on the thread.Triage notifications on the go with GitHub Mobile for iOS or Android.
I don’t think I have any lists other than the default ones. Sent from a mobile device. Please excuse typographical errors. On Aug 8, 2024, at 5:16 AM, Ainar Garipov @.***> wrote:Re: [AdguardTeam/AdGuardHome] Crashing when updating filters (Issue #7174)The most CPU- and RAM-intensive task in AdGuard Home is the filtering engine compilation, and depending on how much CPU power and RAM the machine has, there are limits to what is a reasonable number. For general protection, enabling lists with ≤ 1M rules should be enough.As mentioned, the verbose logs are the most direct way to see if this is related to the filtering engine or not.—Reply to this email directly, view it on GitHub or unsubscribe.You are receiving this email because you authored the thread.Triage notifications on the go with GitHub Mobile for iOS or Android.
I have added all active rules and the total across 14 rulesets totals 547,901, so not near a 1m cap.
I have the log files and can DM them. dont want to post here for everyone
i was able to repro by navigating to client settings, clicking apply in the first section and then navigating away. And once it crashes, I have to unplug of SSH into the device and force stop and restart the adguard service
and then i receive this from the log page.
This is crashing more and more now.
...same here on my second agh. 1st one working fine, no probs 2nd with the issue u descrieb. Saw somwhere "expected permissions" in log but changing didnt solve the problem. Let me know if u solved the problem.
(I am using AGH on OpenWrt).
As a hopefully temporary solution, I am using this cronjob to restart AGH after a crash (the check is done every minutes, and requires jq):
# Restart AdGuard Home on crash
* * * * * [ "$(service adguardhome info | jq '.adguardhome.instances.instance1.running')" = "true" ] || service adguardhome start
Glad i found the Error on my System the last days. My VPS just had 1G ram and afterwards i recognized theres no swap installed. So when updating this huge amount of lists, the System freezed when ram was full. After changing swappiness and installing a swapfile, System works perfect. Hope this helps maybe for understanding.