AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
25.23k stars 1.81k forks source link

Fatal error while initing hosts watcher #7076

Closed oompaloomp closed 4 months ago

oompaloomp commented 4 months ago

Prerequisites

Platform (OS and CPU architecture)

Custom (please mention in the description)

Installation

GitHub releases or script from README

Setup

On a router, DHCP is handled by the router

AdGuard Home version

0.107.51

Action

Platform: Linux RM-AC2100 3.4.113 #1 SMP Sat Jun 1 02:51:01 EEST 2024 mips GNU/Linux aka Padavan (https://gitlab.com/hadzhioglu/padavan-ng/-/commits/master), router RM-AC2100. Log AdGuard Home: 2024/06/14 04:32:26.322121 [info] AdGuard Home, version v0.107.51 2024/06/14 04:32:26.771555 [info] tls: using default ciphers 2024/06/14 04:32:26.771998 [fatal] initing hosts watcher: os watcher: creating watcher: function not implemented

Expected result

AdGuard Home web ui not up.

Actual result

Web not up, In log file - fatal error.

Additional information and/or screenshots

No response

ainar-g commented 4 months ago

Please specify the OS, the CPU architecture, and the filesystem type more precisely.

This is most likely due to the FS not supporting notifications. Which should definitely be an error, but not a fatal one. @EugeneOne1, please inspect why this is considered fatal and, if there aren't good reasons, fix.

In the meantime, setting dns.hostsfile_enabled and clients.runtime_sources.hosts to false could be the workaround.

oompaloomp commented 4 months ago

Jun 13 21:26:32 RM-AC2100: firmware version: 3.4.3.9L-102_233c967 Jun 13 21:26:32 kernel: Linux version 3.4.113 (test@test-virtual-machine) (gcc version 7.5.0 (crosstool-NG MIPS32) ) #1 SMP Sat Jun 1 02:51:01 EEST 2024 Jun 13 21:26:32 kernel: MediaTek SoC: MT7621A, RevID: 0104, RAM: DDR3, XTAL: 40MHz Jun 13 21:26:32 kernel: CPU/OCP/SYS frequency: 880/293/220 MHz Jun 13 21:26:32 kernel: CPU revision is: 0001992f (MIPS 1004Kc) @ainar-g, setting dns.hostsfile_enabled and clients.runtime_sources.hosts to false, btw fatal error wile started agh 2024/06/14 10:59:12.692537 [info] AdGuard Home, version v0.107.51 2024/06/14 10:59:13.425514 [info] tls: using default ciphers 2024/06/14 10:59:13.430113 [fatal] initing hosts watcher: os watcher: creating watcher: function not implemented File attached. AdGuardHome.zip

oompaloomp commented 4 months ago

Thx for yours support, when i can try fix this bug in v0.107.52?

EugeneOne1 commented 4 months ago

@oompaloomp, hello again and sorry for the late reply. We've pushed the edge build that disables /etc/hosts tracking for systems that don't support it, could you please check if it works?

oompaloomp commented 4 months ago

@EugeneOne1, unfortunately can't. Changed the router to Keenetic Hopper DSL (KN-3610).