Server began to freeze after the last update #4354

Closed
opened 2026-03-04 05:01:23 -05:00 by deekerman · 40 comments
Owner

Originally created by @ammnt on GitHub (Mar 30, 2023).

Originally assigned to: @ainar-g on GitHub.

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

Operating system type

Linux, Other (please mention the version in the description)

CPU architecture

AMD64

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

v0.108.0-b.31

Description

What did you do?

Classic GH-script installation. Debian 11 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

Nothing special. Just updated to the last beta version and keep use as always. But now the server freezes. The verbose log is attached. Please start look from 22:43 MSK:
log.txt

Expected result

Actual result

Screenshots (if applicable)

Additional information

Originally created by @ammnt on GitHub (Mar 30, 2023). Originally assigned to: @ainar-g on GitHub. ### Prerequisites - [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/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 ### Operating system type Linux, Other (please mention the version in the description) ### CPU architecture AMD64 ### Installation GitHub releases or script from README ### Setup On one machine ### AdGuard Home version v0.108.0-b.31 ### Description #### What did you do? Classic GH-script installation. Debian 11 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye Nothing special. Just updated to the last beta version and keep use as always. But now the server freezes. The verbose log is attached. Please start look from 22:43 MSK: [log.txt](https://github.com/AdguardTeam/AdGuardHome/files/11115624/log.txt) #### Expected result #### Actual result #### Screenshots (if applicable) #### Additional information
deekerman 2026-03-04 05:01:23 -05:00
Author
Owner

@ammnt commented on GitHub (Mar 30, 2023):

It looks like HTTP server stop responding when I use the journal section to find some domains🤔

@ammnt commented on GitHub (Mar 30, 2023): It looks like HTTP server stop responding when I use the journal section to find some domains🤔
Author
Owner

@cjom commented on GitHub (Mar 30, 2023):

It's not only the HTTP server stop responding, connected devices also start saying "no internet access" either new or already connected.

My AGH is running directly in router Xiaomi AX3600 with OpenWRT (amd64 edge build).
This happens some hours after reboot, but reboot does not always fixes issue.

@cjom commented on GitHub (Mar 30, 2023): It's not only the HTTP server stop responding, connected devices also start saying "no internet access" either new or already connected. My AGH is running directly in router Xiaomi AX3600 with OpenWRT (amd64 edge build). This happens some hours after reboot, but reboot does not always fixes issue.
Author
Owner

@Aiolos-Wang commented on GitHub (Mar 30, 2023):

It is same for me.
After updated to latest version. server started to stuck in its web page. Connected devices can not query DNS request.
Rebooting the server only relieves it for a while.

@Aiolos-Wang commented on GitHub (Mar 30, 2023): It is same for me. After updated to latest version. server started to stuck in its web page. Connected devices can not query DNS request. Rebooting the server only relieves it for a while.
Author
Owner

@tomamplius commented on GitHub (Mar 30, 2023):

It is same for me.

@tomamplius commented on GitHub (Mar 30, 2023): It is same for me.
Author
Owner

@muok commented on GitHub (Mar 30, 2023):

Same issue here. There's a config file error. AGH modifies the config file and there's a syntax error.

The only way I resolved this is by restoring a backup.

@muok commented on GitHub (Mar 30, 2023): Same issue here. There's a config file error. AGH modifies the config file and there's a syntax error. The only way I resolved this is by restoring a backup.
Author
Owner

@laurentftech commented on GitHub (Mar 31, 2023):

Same here on ARMv7.

@laurentftech commented on GitHub (Mar 31, 2023): Same here on ARMv7.
Author
Owner

@Fooose commented on GitHub (Mar 31, 2023):

The error also occurs here, on an x86 Pfsense system.
AdGuard freezes and only a restart brings relief.

@Fooose commented on GitHub (Mar 31, 2023): The error also occurs here, on an x86 Pfsense system. AdGuard freezes and only a restart brings relief.
Author
Owner

@ainar-g commented on GitHub (Mar 31, 2023):

Thanks for the reports, everyone. We're investigating but cannot reproduce it so far. Enabling and sharing verbose logs either here or through devteam@adguard.com, like OP did, would really help.

@ammnt, if it really is the query log, does disabling it fix the issue? Also, are there any panics in e.g. /var/log/AdGuardHome.err and /var/log/AdGuardHome.out?

@mouk, could you please elaborate? What kind of error do you see? There shouldn't be any syntax errors, but if you were following Edge, you could be affected by #5627, which shouldn't affect Beta users.

@ainar-g commented on GitHub (Mar 31, 2023): Thanks for the reports, everyone. We're investigating but cannot reproduce it so far. Enabling and sharing [verbose logs] either here or through <devteam@adguard.com>, like OP did, would really help. @ammnt, if it really is the query log, does disabling it fix the issue? Also, are there any panics in e.g. `/var/log/AdGuardHome.err` and `/var/log/AdGuardHome.out`? @mouk, could you please elaborate? What kind of error do you see? There shouldn't be any syntax errors, but if you were following Edge, you could be affected by #5627, which shouldn't affect Beta users. [verbose logs]: https://github.com/AdguardTeam/AdGuardHome/wiki/FAQ#verboselog
Author
Owner

@ammnt commented on GitHub (Mar 31, 2023):

@ainar-g, I have sent you the message just now. Check devteam@adguard.com mailbox please🙂

@ammnt commented on GitHub (Mar 31, 2023): @ainar-g, I have sent you the message just now. Check devteam@adguard.com mailbox please🙂
Author
Owner

@ammnt commented on GitHub (Mar 31, 2023):

@ainar-g, I recorded a video with the problem reproducing and the log output at that point. I will send you this next 10 minutes.

@ammnt commented on GitHub (Mar 31, 2023): @ainar-g, I recorded a video with the problem reproducing and the log output at that point. I will send you this next 10 minutes.
Author
Owner

@ainar-g commented on GitHub (Mar 31, 2023):

@ammnt, thanks for the information. We have a few theories. The latest Edge release contains a fix for one of them. We're working on the other ones.

@ainar-g commented on GitHub (Mar 31, 2023): @ammnt, thanks for the information. We have a few theories. The latest Edge release contains a fix for one of them. We're working on the other ones.
Author
Owner

@ainar-g commented on GitHub (Mar 31, 2023):

v0.108.0-a.496+3575aa05 contains the second part of the tentative fix.

@ainar-g commented on GitHub (Mar 31, 2023): v0.108.0-a.496+3575aa05 contains the second part of the tentative fix.
Author
Owner

@qqsir-dev commented on GitHub (Apr 1, 2023):

same problem with v0.108.0-a.496+3575aa05
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8733c87cb5fd adguard/adguardhome:edge "/sbin/tini -- /opt/…" 2 minutes ago Up 2 minutes (unhealthy) adguardhome

@qqsir-dev commented on GitHub (Apr 1, 2023): same problem with v0.108.0-a.496+3575aa05 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8733c87cb5fd adguard/adguardhome:edge "/sbin/tini -- /opt/…" 2 minutes ago Up 2 minutes (unhealthy) adguardhome
Author
Owner

@fabricionaweb commented on GitHub (Apr 1, 2023):

It may had happened to me 3 many times today. v0.108.0-b.31 running on OpenWRT 22.03.3.
I have turned verbose on to try to catch some logs. But nothing yet. I may back if I found anything useful

I cant get any log as when it crashs the logs stops as well.

@fabricionaweb commented on GitHub (Apr 1, 2023): It may had happened to me ~~3~~ many times today. `v0.108.0-b.31` running on OpenWRT 22.03.3. I have turned verbose on to try to catch some logs. But nothing yet. I may back if I found anything useful I cant get any log as when it crashs the logs stops as well.
Author
Owner

@ammnt commented on GitHub (Apr 2, 2023):

@ainar-g, I have not tested the latest version on the edge channel, but I can say that my server has not freezed over the past few days, since I did not use the web interface🤔

@ammnt commented on GitHub (Apr 2, 2023): @ainar-g, I have not tested the latest version on the edge channel, but I can say that my server has not freezed over the past few days, since I did not use the web interface🤔
Author
Owner

@qqsir-dev commented on GitHub (Apr 3, 2023):

I am running v0.108.0-a.496+3575aa05 on Ubuntu 22.04.2 with Docker, it runs several minutes and goes to unhealthy, please check. Thanks.

@qqsir-dev commented on GitHub (Apr 3, 2023): I am running v0.108.0-a.496+3575aa05 on Ubuntu 22.04.2 with Docker, it runs several minutes and goes to unhealthy, please check. Thanks.
Author
Owner

@qqsir-dev commented on GitHub (Apr 3, 2023):

I am running v0.108.0-a.496+3575aa05 on Ubuntu 22.04.2 with Docker, it runs several minutes and goes to unhealthy, please check. Thanks.

same as Version: v0.108.0-a.497+2a0d0629
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
355ff4b31d43 adguard/adguardhome:edge "/sbin/tini -- /opt/…" 3 minutes ago Up 3 minutes (unhealthy) adguardhome

@qqsir-dev commented on GitHub (Apr 3, 2023): > I am running v0.108.0-a.496+3575aa05 on Ubuntu 22.04.2 with Docker, it runs several minutes and goes to unhealthy, please check. Thanks. same as Version: v0.108.0-a.497+2a0d0629 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 355ff4b31d43 adguard/adguardhome:edge "/sbin/tini -- /opt/…" 3 minutes ago Up 3 minutes (unhealthy) adguardhome
Author
Owner

@ammnt commented on GitHub (Apr 3, 2023):

@ainar-g, I am sure that the Docker container fall down itself, as healthcheck knocks on HTTP port. We must try to run the container without healthcheck and if it does not fall, then it is about HTTP processing and the library that is responsible for this.

@ammnt commented on GitHub (Apr 3, 2023): @ainar-g, I am sure that the Docker container fall down itself, as healthcheck knocks on HTTP port. We must try to run the container without healthcheck and if it does not fall, then it is about HTTP processing and the library that is responsible for this.
Author
Owner

@ainar-g commented on GitHub (Apr 3, 2023):

@qqsir-dev, please report Docker healthcheck issues to #3290. Thanks.

@ammnt, our current theory is that long-running querylog searches prevented new requests from being counted. We've made a few changes that address those issues. Were you (or anyone watching the issue) able to test the most recent Edge releases?

@ainar-g commented on GitHub (Apr 3, 2023): @qqsir-dev, please report Docker healthcheck issues to #3290. Thanks. @ammnt, our current theory is that long-running querylog searches prevented new requests from being counted. We've made a few changes that address those issues. Were you (or anyone watching the issue) able to test the most recent Edge releases?
Author
Owner

@ZeroClover commented on GitHub (Apr 3, 2023):

I also encountered this problem on one of my AGH servers with a fairly high query volume, version v0.108.0-b.31. AGH is running on a Debian 11 x64 vm.

image

Tried to get the logs, but when the problem occurs, the AGH binary no longer responds and does not output any logs.

The Systemd Unit is also unable to shut down AGH, and will only force it to shut down after a timeout with SIGKILL

image

The way to reproduce the problem is to click on "Query Log" in the WebGUI and after tens of seconds or minutes, AGH stops responding.

@ZeroClover commented on GitHub (Apr 3, 2023): I also encountered this problem on one of my AGH servers with a fairly high query volume, version v0.108.0-b.31. AGH is running on a Debian 11 x64 vm. <img width="618" alt="image" src="https://user-images.githubusercontent.com/13190004/229563280-96406e43-f329-43ea-ae1b-2b6ba7343783.png"> Tried to get the logs, but when the problem occurs, the AGH binary no longer responds and does not output any logs. The Systemd Unit is also unable to shut down AGH, and will only force it to shut down after a timeout with SIGKILL <img width="370" alt="image" src="https://user-images.githubusercontent.com/13190004/229563337-c597b6fa-bb5f-44a8-83d2-9ab5254c9e67.png"> The way to reproduce the problem is to click on "Query Log" in the WebGUI and after tens of seconds or minutes, AGH stops responding.
Author
Owner

@blamaz commented on GitHub (Apr 3, 2023):

Same problem here on openwrt master snapshot updating to AdGuard Home v0.108.0-a.497+2a0d0629.

@blamaz commented on GitHub (Apr 3, 2023): Same problem here on openwrt master snapshot updating to AdGuard Home v0.108.0-a.497+2a0d0629.
Author
Owner

@ammnt commented on GitHub (Apr 4, 2023):

@ainar-g, I checked the latest version of the Docker image now. There are no changes - the server still falls after a while. The logs are not unusual🤷🏻‍♂️

@ammnt commented on GitHub (Apr 4, 2023): @ainar-g, I checked the latest version of the Docker image now. There are no changes - the server still falls after a while. The logs are not unusual🤷🏻‍♂️
Author
Owner

@ainar-g commented on GitHub (Apr 5, 2023):

We've been able to reproduce the issue overnight. We have a few new theories, but most of them have to do with bugs in the Safe Search feature. @ammnt, could you please disable Safe Search, restart AGH, and see if the situation improves? We'll keep investigating the code in the meantime.

@ainar-g commented on GitHub (Apr 5, 2023): We've been able to reproduce the issue overnight. We have a few new theories, but most of them have to do with bugs in the Safe Search feature. @ammnt, could you please disable Safe Search, restart AGH, and see if the situation improves? We'll keep investigating the code in the meantime.
Author
Owner

@ammnt commented on GitHub (Apr 5, 2023):

@ainar-g, unfortunately the same issue with disabled safesearch function. The verbose log is attached:
log.txt

EDIT:
Or I need to test it on the last version of edge build?😀

@ammnt commented on GitHub (Apr 5, 2023): @ainar-g, unfortunately the same issue with disabled safesearch function. The verbose log is attached: [log.txt](https://github.com/AdguardTeam/AdGuardHome/files/11158717/log.txt) EDIT: Or I need to test it on the last version of edge build?😀
Author
Owner

@ainar-g commented on GitHub (Apr 5, 2023):

Thanks for trying it out. We are still investigating.

@ainar-g commented on GitHub (Apr 5, 2023): Thanks for trying it out. We are still investigating.
Author
Owner

@fabricionaweb commented on GitHub (Apr 5, 2023):

I had rolled back to stable. But before it, if it does help, I had one client that uses safe-search. And I had indeed notice some "adults websites" being blocked and it can be related.

@fabricionaweb commented on GitHub (Apr 5, 2023): I had rolled back to stable. But before it, if it does help, I had one client that uses safe-search. And I had indeed notice some "adults websites" being blocked and it can be related.
Author
Owner

@ammnt commented on GitHub (Apr 5, 2023):

I have tested the latest beta build. Works really better for now. Keep trying to reproduce it🫡

@ammnt commented on GitHub (Apr 5, 2023): I have tested the latest beta build. Works really better for now. Keep trying to reproduce it🫡
Author
Owner

@qqsir-dev commented on GitHub (Apr 5, 2023):

I have tested the latest beta build. Works really better for now. Keep trying to reproduce it🫡

me too, its working good for about 10 more minutes.

@qqsir-dev commented on GitHub (Apr 5, 2023): > I have tested the latest beta build. Works really better for now. Keep trying to reproduce it🫡 me too, its working good for about 10 more minutes.
Author
Owner

@ammnt commented on GitHub (Apr 5, 2023):

But I completely disabled safesearch service as @ainar-g told before👆🏼

@ammnt commented on GitHub (Apr 5, 2023): But I completely disabled safesearch service as @ainar-g told before👆🏼
Author
Owner

@qqsir-dev commented on GitHub (Apr 5, 2023):

But I completely disabled safesearch service as @ainar-g told before👆🏼

I didn't use safe search, its working good now.

@qqsir-dev commented on GitHub (Apr 5, 2023): > But I completely disabled safesearch service as @ainar-g told before👆🏼 I didn't use safe search, its working good now.
Author
Owner

@qqsir-dev commented on GitHub (Apr 5, 2023):

But, Encryption on/off will stop http service.

@qqsir-dev commented on GitHub (Apr 5, 2023): But, Encryption on/off will stop http service.
Author
Owner

@ammnt commented on GitHub (Apr 5, 2023):

I don't use built-in encryption but it works fine now with the enabled safesearch too.

@ammnt commented on GitHub (Apr 5, 2023): I don't use built-in encryption but it works fine now with the enabled safesearch too.
Author
Owner

@virtualm2000 commented on GitHub (Apr 5, 2023):

I've tried v0.108.0-b.32. I doesn't work if safe search is enabled in client settings. It will become non responsive as before.
If safe search is disabled everywhere then it seems it works.
I use encryption too.

@virtualm2000 commented on GitHub (Apr 5, 2023): I've tried v0.108.0-b.32. I doesn't work if safe search is enabled in client settings. It will become non responsive as before. If safe search is disabled everywhere then it seems it works. I use encryption too.
Author
Owner

@ainar-g commented on GitHub (Apr 6, 2023):

@ammnt, we've made a few improvements to safe search as well as the debugging API. Could you please update to v0.108.0-a.505+b1120221 or later and set debug_pprof to true in the config file? Then, if you are able to reproduce the error, can you please save and send us the following files:

curl -o /tmp/goroutine.pprof 'http://localhost:6060/debug/pprof/goroutine?debug=1'
curl -o /tmp/mutex.pprof 'http://localhost:6060/debug/pprof/mutex?debug=1'
curl -o /tmp/block.pprof 'http://localhost:6060/debug/pprof/block?debug=1'

These three files will contain the information that should help us find out, what is causing the issue. We're doing the same on our testing machines, but it'll help to have more data.

@ainar-g commented on GitHub (Apr 6, 2023): @ammnt, we've made a few improvements to safe search as well as the debugging API. Could you please update to `v0.108.0-a.505+b1120221` or later and set `debug_pprof` to `true` in the config file? Then, if you are able to reproduce the error, can you please save and send us the following files: ``` curl -o /tmp/goroutine.pprof 'http://localhost:6060/debug/pprof/goroutine?debug=1' curl -o /tmp/mutex.pprof 'http://localhost:6060/debug/pprof/mutex?debug=1' curl -o /tmp/block.pprof 'http://localhost:6060/debug/pprof/block?debug=1' ``` These three files will contain the information that should help us find out, what is causing the issue. We're doing the same on our testing machines, but it'll help to have more data.
Author
Owner

@ainar-g commented on GitHub (Apr 6, 2023):

Update: we had been able to reliably reproduce the freeze and have pushed a change that fixes the issue in our tests in Edge build v0.108.0-a.506+5d5a7295.

@ainar-g commented on GitHub (Apr 6, 2023): Update: we had been able to reliably reproduce the freeze and have pushed a change that fixes the issue in our tests in Edge build `v0.108.0-a.506+5d5a7295`.
Author
Owner

@virtualm2000 commented on GitHub (Apr 6, 2023):

Running v0.108.0-a.506+5d5a7295 for about one hour and no issues anymore.

@virtualm2000 commented on GitHub (Apr 6, 2023): Running v0.108.0-a.506+5d5a7295 for about one hour and no issues anymore.
Author
Owner

@Aiolos-Wang commented on GitHub (Apr 6, 2023):

I updated to v0.108.0-a.506+5d5a7295 of my ADguard in LXC. It is runing over 1 hour and woks well till now

@Aiolos-Wang commented on GitHub (Apr 6, 2023): I updated to v0.108.0-a.506+5d5a7295 of my ADguard in LXC. It is runing over 1 hour and woks well till now
Author
Owner

@blamaz commented on GitHub (Apr 7, 2023):

Updated to v0.108.0-a.506+5d5a7295 and running fine again

@blamaz commented on GitHub (Apr 7, 2023): Updated to v0.108.0-a.506+5d5a7295 and running fine again
Author
Owner

@cjom commented on GitHub (Apr 8, 2023):

Version: v0.108.0-a.508+15bba281 running in router Xiaomi 3600 with safe search enable
Running without issues for around 12h.

@cjom commented on GitHub (Apr 8, 2023): Version: v0.108.0-a.508+15bba281 running in router Xiaomi 3600 with safe search enable Running without issues for around 12h.
Author
Owner

@ainar-g commented on GitHub (Apr 10, 2023):

Thanks everyone for testing! Since a lot of people are indicating that AGH runs well after the fix, we'll close this issue. The fix will be included into the next Beta and Release builds, which should come in the next few days.

@ainar-g commented on GitHub (Apr 10, 2023): Thanks everyone for testing! Since a lot of people are indicating that AGH runs well after the fix, we'll close this issue. The fix will be included into the next Beta and Release builds, which should come in the next few days.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AdGuardHome#4354
No description provided.