mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
Can't update filter on Windows #1010
Labels
No labels
P1: Critical
P2: High
P3: Medium
P4: Low
UI
bug
cannot reproduce
compatibility
dependencies
docker
documentation
duplicate
enhancement
enhancement
external libs
feature request
good first issue
help wanted
infrastructure
invalid
localization
needs investigation
performance
potential-duplicate
question
recurrent
research
snap
waiting for data
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AdGuardHome#1010
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bestpika on GitHub (Oct 18, 2019).
Originally assigned to: @szolin on GitHub.
Prerequisites
Issue Details
0.99.0SystemWindows 8.1 x64Windows 10 x64 1903Steps
Expected Behavior
Actual Behavior
The filter's rule count does not change and filter files seem like locked and AGH create
.tmpfile to save it.I have to stop service and delete files then start service to update filters.
See screenshots.
Screenshots
Screenshot:
Additional Information
@ghost commented on GitHub (Oct 19, 2019):
I also experience this issue
@szolin commented on GitHub (Oct 21, 2019):
How long did you wait for the update procedure to complete?
Please note that this procedure can be long because it downloads all your enabled filters and parses all their rules, so it may take several minutes to complete. During the update DNS server works as usual - you don't have to restart the service or anything.
@szolin commented on GitHub (Oct 21, 2019):
I see now that on Windows update procedure is broken - AGH can't rename files from .tmp to .txt because Windows has these file paths locked (they are being used until new files are ready).
@ghost commented on GitHub (Oct 21, 2019):
@szolin that doesn't occur on v0.98.1
@szolin commented on GitHub (Oct 21, 2019):
Yes, because for #928 I implemented a new algorithm for this whole thing. The current problem is that it doesn't account for Windows specific behaviour.
@bestpika commented on GitHub (Oct 21, 2019):
@szolin I am waiting for a long time.
The first filter (1.txt) only 1KB (17 rules).
@bestpika commented on GitHub (Oct 21, 2019):
Here is the log.
@ameshkov commented on GitHub (Oct 21, 2019):
Here's what I think -- start using in-memory filter lists on Windows, and keep file-based filter lists on macOS and Linux only.
@ghost commented on GitHub (Oct 21, 2019):
@bestpika
You dont have to wait such time. Don't you see that "All filters are already up-to-date" notification?
(And as you said if stop service and delete all files then start service again helps to update them)
@bestpika commented on GitHub (Oct 21, 2019):
@ArchiveBase I am posted AGH's log.

The log said AGH CANNOT save the file.
And I saw
All filters are already up-to-date.@ghost commented on GitHub (Oct 21, 2019):
@bestpika Yup
https://github.com/AdguardTeam/AdGuardHome/issues/1088#issuecomment-544486819