High CPU Usage and Service Crash in v0.107.61 Under TLS Handshake Failures and DNS Upstream Timeouts
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, AMD64 (aka x86_64)
Installation
GitHub releases or script from README
Setup
On one machine
AdGuard Home version
v0.107.61
Action
Since upgrading to v0.107.61, AdGuard Home experiences a sudden CPU spike up to ~180% usage and then crashes/restarts roughly once per day.
This issue was not observed on earlier versions.
Expected result
AdGuard Home should maintain stable CPU usage and operate continuously without crashing.
Actual result
• CPU usage spikes to ~180% unexpectedly.
• Application crashes and a script eventually auto-restarts the server
• Occurs daily, seemingly without manual interaction.
Additional information and/or screenshots
Observed behavior: Regular TLS handshake errors and DNS upstream timeouts flood logs, corresponding with CPU usage spikes that eventually lead to service crash or watchdog-triggered VM reboot.
Error samples: [error] http: TLS handshake error from 127.0.0.1:xxxxx: remote error: tls: bad certificate server=https ERROR response received addr=https://family.adguard-dns.com:443/dns-query proto=tcp status="request canceled (Client.Timeout exceeded while awaiting headers)"
While I don't see a specific issue
✅ TLS issues and DNS timeouts are stressing AdGuard Home. ✅ Large volume of error spam may explain why CPU usage explodes.
Hi,
- Are you able to provide anymore logs/details about the crash(es)? There is an option (you'll have to edit yaml) to get detailed logs.
- Can you reproduce the same issue if you roll back to the previous version you were using?
- Do you have any other network issues ongoing? It appears from the small log snippet you've provided ADH is having trouble reaching the AdGuard servers for the family protection blocking. What happens if you temporarily disable this feature?
I haven't seen any other similar issues to this posted, so I would have to assume at the moment this is something local to your setup. But please look at the steps above and report back.
I've recently encountered a similar issue with intermittent high CPU and memory usage. After investigation, it turned out to be the AdGuard Home integration in Home Assistant. It periodically requests paths like /control/stats from the server to obtain information. Disabling this integration resolved the problem. You can try logging into the AdGuard Home management interface in your browser first, and then attempt to access this path to observe if AdGuard Home's CPU usage spikes.
@danielraffel Is this still a problem? Did you get anywhere with logs etc?
I'm closing this issue due to a lack of response. If you encounter this problem again, please reopen this issue or create a new one.