Skip to content
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

On reboot of host, AGH fails to load local filters #5835

Closed
3 tasks done
sshaikh opened this issue May 20, 2023 · 3 comments
Closed
3 tasks done

On reboot of host, AGH fails to load local filters #5835

sshaikh opened this issue May 20, 2023 · 3 comments

Comments

@sshaikh
Copy link

sshaikh commented May 20, 2023

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, OpenWrt

CPU architecture

ARMv7

Installation

Other (please mention in the description)

Setup

On one machine

AdGuard Home version

Version: v0.107.21

Description

What did you do?

Switched all my lists to local files as per #5606

Expected result

For AGH to use the local lists

Actual result

After some time (or perhaps updates/restarts), the rules counts and last updated field blank out, and thus AGH stops blocking anything

Screenshots (if applicable)

Additional information

I'm seeing an issue where adguard stops seeing lists added via local file. The entries are still there, but the Rules Count is 0 and the Last Updated is blank.

Unticking and reticking the entry reloads the file.

AGH list updates are disabled and I run this every night to update. Running the script arbitrarily doesn't seem to have a problem:

#!/bin/ash

FILTER_DIR=$1

wget -O "$FILTER_DIR"/oisd_big_abp.txt https://big.oisd.nl/
wget -O "$FILTER_DIR"/pgl.txt https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml
wget -O "$FILTER_DIR"/easylist.txt https://easylist.to/easylist/easylist.txt
wget -O "$FILTER_DIR"/easyprivacy.txt https://easylist.to/easylist/easyprivacy.txt
wget -O "$FILTER_DIR"/filter.txt https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
wget -O "$FILTER_DIR"/hosts.txt https://adaway.org/hosts.txt

service adguardhome restart
@sshaikh
Copy link
Author

sshaikh commented May 20, 2023

After some more digging it seems that the issue is that after a reboot AGH for some reason fails to load the local files, and enters a failure state thereafter that a restart of the service doesn't fix.

I see nothing in logs indicating this failure. FWIW I do keep the lists on a mounted USB stick, but the AGH binary is installed to the same place so I don't think it's a mounting or timing issue.

Is there a way to force rechecking of the files via an API or similar in the same way toggling the ticking does?

@ghost
Copy link

ghost commented Apr 2, 2024

Hi @sshaikh, are you still experiencing this?

@ghost ghost added the waiting for data Waiting for users to provide more data. label Apr 2, 2024
@sshaikh
Copy link
Author

sshaikh commented Apr 2, 2024

Hi - unfortunately I had since stopped using agh because of this and other memory issues.

@ghost ghost added cannot reproduce and removed waiting for data Waiting for users to provide more data. labels Apr 2, 2024
@ghost ghost closed this as not planned Won't fix, can't repro, duplicate, stale Apr 2, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant