opn-repo icon indicating copy to clipboard operation
opn-repo copied to clipboard

Adguard crashing after a weeks

Open mkono87 opened this issue 2 years ago • 19 comments

I have been dealing with this weird issue for months now and cant seem to pinpoint it as its somewhere rare and cant see anything in logs.

Out of the blue adguard will just stop running and I can either attempt to restart the service or I have to reboot the modem to get it running again. Do you know of a specific place I can check. Im thinking im either going to have to move adguard to another system or something if I cant get this sorted out. Any help would be appreciated.

mkono87 avatar Feb 09 '22 19:02 mkono87

Nothing in system log? So you Monitor RAM? Latest version?

mimugmail avatar Feb 09 '22 21:02 mimugmail

Not anything that sticks out as an issue. Nothing related to adguard either. Ram has been fine. I still have access to LAN and opnsense itself. I always keep adguard up to date from within the GUI. In terms of opnsense versions, I have had this issue over a few upgrades. So weird.

Btw....Where does the config yaml reside?

mkono87 avatar Feb 09 '22 21:02 mkono87

Same here. Logs look clean as well.

Config is at /usr/local/AdGuardHome/AdGuardHome.yaml

ErwinJoubert avatar Feb 14 '22 10:02 ErwinJoubert

Still nothing, I guess? I'm in the same boat - it's been happening for the year or so I've been using it and nothing is identifiable re: memory or logs. I have to manually start it again - if I try restarting otherwise it stops running if it was and just stays stopped, but the manual start works for some reason.

burntoc avatar Mar 30 '22 21:03 burntoc

@burntoc About a month ago, I reinstalled opnsense and its still happening from time to time. I dont have to restart just restart the service.

mkono87 avatar Mar 31 '22 02:03 mkono87

Hard to troubleshoot without any logs or oom indicators. I'm running it at home without issues for months.

mimugmail avatar Mar 31 '22 05:03 mimugmail

How do we get the logs to provide more info than they normally do? Nothing obvious in the logs to date - still crashes at least monthly.

On Wed, Mar 30, 2022 at 10:54 PM Michael @.***> wrote:

Hard to troubleshoot without any logs or oom indicators. I'm running it at home without issues for months.

— Reply to this email directly, view it on GitHub https://github.com/mimugmail/opn-repo/issues/95#issuecomment-1084104687, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZWF2OBFIR6LBBT3ZR5XHTVCU4ZPANCNFSM5N6NOSLQ . You are receiving this because you were mentioned.Message ID: @.***>

burntoc avatar Mar 31 '22 06:03 burntoc

@mimugmail Are you able to tell us where we could find logs related to adguard? We have clean logs for what we can see.

mkono87 avatar Mar 31 '22 14:03 mkono87

@mkono87 I have experience the same problem. As a workaround I have created a Monit Service to monitor the AdGuarddHome with 5 seconds Polling Interval: Screenshot from 2022-04-29 16-46-31 If it goes down the Monit will start it in 10 seconds.

chrisf4lc0n avatar Apr 29 '22 15:04 chrisf4lc0n

@mkono87 I have experience the same problem. As a workaround I have created a Monit Service to monitor the AdGuarddHome with 5 seconds Polling Interval: Screenshot from 2022-04-29 16-46-31 If it goes down the Monit will start it 10 seconds.

Thanks - I've been looking for something straightforward like this. Can you ELI5 how I could set the poll time? I have the normal Monit setting at 120, and I see if I click Advanced on this Service it shows Poll Time, but I thought it accepts values in seconds and if I type in a number it won't allow me to apply the changes. Left it blank for now, but I'd like to increase it to 15 seconds.

burntoc avatar Apr 29 '22 16:04 burntoc

Screenshot from 2022-04-29 17-14-29

chrisf4lc0n avatar Apr 29 '22 16:04 chrisf4lc0n

@burntoc have you enabled the Monit?

chrisf4lc0n avatar Apr 29 '22 16:04 chrisf4lc0n

@burntoc have you enabled the Monit?

Yep. That's so odd. As long as I leave Poll Time blank and click Apply it processes a fraction of a second and that notice disappears. If I put any number in Poll Time, exactly as you've done, it will process very briefly as before, but the Apply notice stays there like it didn't fully take. I can navigate away and back and it still shows the number. Maybe it is just an interface bug.

burntoc avatar Apr 29 '22 16:04 burntoc

@burntoc have you tried restarting the OPNsense box?

chrisf4lc0n avatar Apr 29 '22 16:04 chrisf4lc0n

@burntoc have you tried restarting the OPNsense box?

Just did. Didn't help. Reinstalled the package. Didn't help. Recreated the task - triple-checked to make sure it matches yours exactly, verified the path via ssh - no joy. I just decided to leave that field blank for now and I changed the General Settings poll time to 15 and that change took okay. I don't really have any other checks going on so hopefully that will work okay.

burntoc avatar Apr 29 '22 16:04 burntoc

@chrisf4lc0n Thanks, not sure why I didn't receive an update to this. I resintalled opnsense due to other reasons and still had this issue. Hopefully this will help. Do you have any idea where the log files for adguard are? Would still be nice to know whats happening. Ps...I also see that odd apply button bug.

By default the polling time is 10 seconds?

mkono87 avatar May 04 '22 15:05 mkono87

I've experienced this on OPNsense 22.1.10-amd64 twice in the last two weeks. With the AGH service down, I can't navigate to anything (LAN or WAN). I must wire up to the OPNsense box and manually restart the service. I did notice via the AGH UI that there was an update to 0.107.8, which I just applied; will see if that helps.

bachya avatar Jul 21 '22 19:07 bachya

Screenshot from 2022-04-29 17-14-29

Poll Time for 5 seconds needs: 5 CYCLES instead of just 5

aleksasiriski avatar Dec 22 '22 13:12 aleksasiriski

For any others troubleshooting this there's a log_file option in AdGuardHome.yaml - I've only has this happen twice, so hopefully if it happens again there will be some further info in the AdGuard log.

hlarsen avatar Jan 23 '23 15:01 hlarsen