hassio-addons / addon-adguard-home

AdGuard Home - Home Assistant Community Add-ons
https://addons.community
MIT License
388 stars 48 forks source link

Error when updating filters #347

Closed gigatexel closed 1 year ago

gigatexel commented 1 year ago

Problem/Motivation

Each day, the follow appears in the add-on logs:

2022/09/28 12:02:45.266988 [info] saving filter 1 contents to: /data/adguard/data/filters/1.txt
2022/09/28 12:02:45.268608 [info] updated filter 1: 955644 bytes, 49481 rules
2022/09/28 12:02:48.285878 [error] os.Chtimes(): chtimes /data/adguard/data/filters/2.txt: no such file or directory
2022/09/28 12:02:48.288281 [info] Failed to update filter https://github.com/AdAway/adaway.github.io/blob/master/hosts.txt: data is HTML, not plain text
2022/09/28 12:02:49.292367 [info] saving filter 1623497339 contents to: /data/adguard/data/filters/1623497339.txt
2022/09/28 12:02:49.304922 [info] updated filter 1623497339: 7502261 bytes, 344232 rules
2022/09/28 12:02:49.305433 [info] Updated filter #1.  Rules: 49428 -> 49481
2022/09/28 12:02:49.306374 [info] Updated filter #1623497339.  Rules: 344234 -> 344232

Using fully updated HA, HAOS and Add-On

avlemos commented 1 year ago

@gigatexel , have you tried changing to https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt ?

gigatexel commented 1 year ago

Ok, thanks, works now.

Whas this change in some release notes? I haven't changed anything in the addon an just upgrade as updates are available :-)

avlemos commented 1 year ago

I don't know to be honest, I am new to the project, but just by looking at the error message, I got it you needed the contents of the actual file, and not the Github page.