hassio-addons / addon-adguard-home

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

Since New Update, Addon is stuck in a boot loop (53: bind: invalid argument) #173

Closed idloco closed 3 years ago

idloco commented 3 years ago

Problem/Motivation

The AdGuard addon is not working correctly since the 4.10 update

Expected behavior

The addon should start correctly, and block adds

Actual behavior

The addon is stuck in a boot loop where it throws an error that one of the parameters is incorrect upon binding the port 53

_**[fatal] couldn't start forwarding DNS server: couldn't listen to UDP socket, cause: listen udp [XXXX]:53: bind: invalid argument

Steps to reproduce

Update the addon to 4.10 and restart it.

Proposed changes

Check the correct parameters required for the addon to start

ither commented 3 years ago

I have the same problem, my log is like this:

AdGuard Home provides a beautiful, easy and feature-rich web interface to
easily manage the filtering process and its settings.
![AdGuard Home in the Home Assistant frontend][screenshot]
[discord-shield]: https://img.shields.io/discord/478094546522079232.svg
[discord]: https://discord.me/hassioaddons
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
[forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-adguard-home/90684?u=frenck
[github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png
[github-sponsors]: https://github.com/sponsors/frenck
[maintenance-shield]: https://img.shields.io/maintenance/yes/2021.svg
[patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png
[patreon]: https://www.patreon.com/frenck
[project-stage-shield]: https://img.shields.io/badge/project%20stage-production%20ready-brightgreen.svg
[release-shield]: https://img.shields.io/badge/version-v4.1.2-blue.svg
[release]: https://github.com/hassio-addons/addon-adguard-home/tree/v4.1.2
[screenshot]: https://github.com/hassio-addons/addon-adguard-home/raw/v4.1.2/images/screenshot.png", "advanced": false, "stage": "stable", "auto_update": false, "repository": "a0d7b954", "version": "4.1.2", "version_latest": "4.1.2", "update_available": false, "protected": true, "rating": 5, "boot": "auto", "options": {"ssl": false, "certfile": "fullchain.pem", "keyfile": "privkey.pem", "log_level": "debug"}, "schema": [{"name": "log_level", "optional": true, "type": "select", "options": ["trace", "debug", "info", "notice", "warning", "error", "fatal"]}, {"name": "ssl", "required": true, "type": "boolean"}, {"name": "certfile", "required": true, "type": "string"}, {"name": "keyfile", "required": true, "type": "string"}, {"name": "leave_front_door_open", "optional": true, "type": "boolean"}], "arch": ["aarch64", "amd64", "armhf", "armv7", "i386"], "machine": [], "homeassistant": "0.113.2", "url": "https://github.com/hassio-addons/addon-adguard-home", "state": "started", "detached": false, "available": true, "build": false, "network": {"53/udp": 53, "80/tcp": null}, "network_description": {"53/udp": "DNS server port", "80/tcp": "Web interface (Not required for Ingress)"}, "host_network": true, "host_pid": false, "host_ipc": false, "host_dbus": false, "privileged": [], "full_access": false, "apparmor": "default", "devices": [], "icon": true, "logo": true, "changelog": true, "documentation": true, "stdin": false, "webui": null, "hassio_api": true, "hassio_role": "manager", "auth_api": true, "homeassistant_api": false, "gpio": false, "usb": false, "uart": false, "kernel_modules": false, "devicetree": false, "udev": false, "docker_api": false, "video": false, "audio": false, "audio_input": null, "audio_output": null, "startup": "services", "services": [], "discovery": ["adguard"], "ip_address": "172.30.32.1", "translations": {}, "ingress": true, "ingress_entry": "/api/hassio_ingress/0B9jfmqln-Tl8PTpTwj25Vu1WkZUQlr5M5acjjRCRPY", "ingress_url": "/api/hassio_ingress/0B9jfmqln-Tl8PTpTwj25Vu1WkZUQlr5M5acjjRCRPY/", "ingress_port": 62358, "ingress_panel": true, "watchdog": true}}
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[00:46:46] INFO: Starting AdGuard Home server...
2021/05/20 00:46:46.498943 [info] AdGuard Home, version v0.106.3
2021/05/20 00:46:46.507722 [info] Initializing auth module: /data/adguard/data/sessions.db
2021/05/20 00:46:46.508191 [info] auth: initialized.  users:0  sessions:0
2021/05/20 00:46:46.508351 [info] Initialize web module
2021/05/20 00:46:46.576736 [info] Go to http://127.0.0.1:45158
[00:46:46] INFO: Starting NGinx...
2021/05/20 00:46:47.138816 [info] Starting the DNS proxy server
2021/05/20 00:46:47.139330 [info] Ratelimit is enabled and set to 20 rps
2021/05/20 00:46:47.139569 [info] The server is configured to refuse ANY requests
2021/05/20 00:46:47.139769 [info] DNS cache is enabled
2021/05/20 00:46:47.139964 [info] Creating the UDP server socket
2021/05/20 00:46:47.140328 [info] Listening to udp://10.1.11.190:53
2021/05/20 00:46:47.140608 [info] Creating the UDP server socket
2021/05/20 00:46:47.145783 [fatal] couldn't start forwarding DNS server: couldn't listen to UDP socket, cause: listen udp [fe80::eca9:8963:2452:ad9d]:53: bind: invalid argument
[00:46:47] INFO: Starting AdGuard Home server...
2021/05/20 00:46:47.467260 [info] AdGuard Home, version v0.106.3
2021/05/20 00:46:47.474814 [info] Initializing auth module: /data/adguard/data/sessions.db
2021/05/20 00:46:47.475223 [info] auth: initialized.  users:0  sessions:0
2021/05/20 00:46:47.475418 [info] Initialize web module
2021/05/20 00:46:47.553280 [info] Go to http://127.0.0.1:45158
2021/05/20 00:46:48.066884 [info] Starting the DNS proxy server
2021/05/20 00:46:48.067452 [info] Ratelimit is enabled and set to 20 rps
2021/05/20 00:46:48.067642 [info] The server is configured to refuse ANY requests
2021/05/20 00:46:48.067787 [info] DNS cache is enabled
2021/05/20 00:46:48.067969 [info] Creating the UDP server socket
2021/05/20 00:46:48.068212 [info] Listening to udp://10.1.11.190:53
2021/05/20 00:46:48.068357 [info] Creating the UDP server socket
2021/05/20 00:46:48.073195 [fatal] couldn't start forwarding DNS server: couldn't listen to UDP socket, cause: listen udp [fe80::eca9:8963:2452:ad9d]:53: bind: invalid argument
[00:46:48] INFO: Starting AdGuard Home server...
2021/05/20 00:46:48.466576 [info] AdGuard Home, version v0.106.3

Tried rebooting Home Assistant first and then the host, same result

Some other data:

Core Version core-2021.5.5
Supervisor Version supervisor-2021.04.3 Channel stable
MiguelAngelLV commented 3 years ago

Same here

[06:25:24] INFO: Starting AdGuard Home server...
2021/05/20 06:25:24.493643 [info] AdGuard Home, version v0.106.3
2021/05/20 06:25:24.499825 [info] dhcp: loaded leases v4:87  v6:0  total-read:87 from DB
2021/05/20 06:25:24.533629 [info] Initializing auth module: /data/adguard/data/sessions.db
2021/05/20 06:25:24.534539 [info] auth: initialized.  users:0  sessions:0
2021/05/20 06:25:24.534634 [info] Initialize web module
2021/05/20 06:25:24.597209 [info] dhcpv4: listening
[dhcpv4] 2021/05/20 06:25:24 Server listening on 0.0.0.0:67
[dhcpv4] 2021/05/20 06:25:24 Ready to handle requests
2021/05/20 06:25:24.598722 [info] Go to http://127.0.0.1:45158
2021/05/20 06:25:25.062482 [info] Starting the DNS proxy server
2021/05/20 06:25:25.062519 [info] Ratelimit is enabled and set to 20 rps
2021/05/20 06:25:25.062537 [info] The server is configured to refuse ANY requests
2021/05/20 06:25:25.062554 [info] DNS cache is enabled
2021/05/20 06:25:25.062574 [info] MaxGoroutines is set to 50
2021/05/20 06:25:25.062601 [info] Creating the UDP server socket
2021/05/20 06:25:25.062778 [info] Listening to udp://192.168.1.2:53
2021/05/20 06:25:25.062800 [info] Creating the UDP server socket
2021/05/20 06:25:25.234258 [fatal] couldn't start forwarding DNS server: couldn't listen to UDP socket, cause: listen udp [fe80::73a2:9e9b:11ec:b5a4]:53: bind: invalid argument

I think that It try use IPv6

frenck commented 3 years ago

Tracking this issue in #174