AdguardTeam / AdGuardHome

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

DNS starting up #5520

Closed IThundxr closed 1 year ago

IThundxr commented 1 year ago

Prerequisites

Operating system type

Linux, Other (please mention the version in the description)

CPU architecture

AMD64

Installation

Docker

Setup

On one machine

AdGuard Home version

latest

Description

What did you do?

Restart docker container

Expected result

Adguard starts up

Actual result

port errors

Screenshots (if applicable)

Additional information

server@homeserver:~$ sudo docker logs adguardhome
2023/02/21 00:09:00.039346 [info] AdGuard Home, version v0.107.24
2023/02/21 00:09:00.039407 [info] AdGuard Home updates are disabled
2023/02/21 00:09:00.043080 [info] tls: using default ciphers
2023/02/21 00:09:00.065849 [info] Initializing auth module: /opt/adguardhome/work/data/sessions.db
2023/02/21 00:09:00.065966 [info] auth: initialized.  users:1  sessions:2
2023/02/21 00:09:00.065986 [info] web: initializing
2023/02/21 00:09:00.677023 [info] dnsproxy: cache: enabled, size 4096 b
2023/02/21 00:09:00.677120 [info] MaxGoroutines is set to 300
2023/02/21 00:09:00.677315 [info] AdGuard Home is available at the following addresses:
2023/02/21 00:09:00.680437 [info] go to http://127.0.0.1:3000
2023/02/21 00:09:00.680534 [info] go to http://172.20.0.3:3000
2023/02/21 00:09:07.549866 [info] Starting the DNS proxy server
2023/02/21 00:09:07.549882 [info] Ratelimit is enabled and set to 20 rps
2023/02/21 00:09:07.549888 [info] The server is configured to refuse ANY requests
2023/02/21 00:09:07.549894 [info] dnsproxy: cache: enabled, size 4194304 b
2023/02/21 00:09:07.549902 [info] MaxGoroutines is set to 300
2023/02/21 00:09:07.549916 [info] Creating the UDP server socket
2023/02/21 00:09:07.554358 [fatal] couldn't start forwarding DNS server: listening to udp socket: listen udp 172.18.0.2:53: bind: cannot assign requested address
2023/02/21 00:09:08.834651 [info] AdGuard Home, version v0.107.24
2023/02/21 00:09:08.834688 [info] AdGuard Home updates are disabled
2023/02/21 00:09:08.836811 [info] tls: using default ciphers
2023/02/21 00:09:08.843095 [info] Initializing auth module: /opt/adguardhome/work/data/sessions.db
2023/02/21 00:09:08.843192 [info] auth: initialized.  users:1  sessions:2
2023/02/21 00:09:08.843244 [info] web: initializing
2023/02/21 00:09:09.275658 [info] dnsproxy: cache: enabled, size 4096 b
2023/02/21 00:09:09.275677 [info] MaxGoroutines is set to 300
2023/02/21 00:09:09.275781 [info] AdGuard Home is available at the following addresses:
2023/02/21 00:09:09.276082 [info] go to http://127.0.0.1:3000
2023/02/21 00:09:09.276094 [info] go to http://172.20.0.3:3000

the logs

version: '3'

volumes:
  pg_data:

services:
  adguardhome:
    container_name: adguardhome
    image: adguard/adguardhome
    restart: unless-stopped
    ports:
      - 53:53/tcp
      - 53:53/udp
      - 80:80/tcp
      - 443:443/tcp
      - 443:443/udp
      - 3000:3000/tcp
      - 853:853/tcp
    volumes:
      - ./adguardhome/work:/opt/adguardhome/work
      - ./adguardhome/conf:/opt/adguardhome/conf
IThundxr commented 1 year ago

2023/02/21 00:09:07.554358 [fatal] couldn't start forwarding DNS server: listening to udp socket: listen udp 172.18.0.2:53: bind: cannot assign requested address is the main error

IThundxr commented 1 year ago

It's running Ubuntu btw

ghost commented 1 year ago

Disable systemd-resolved https://bobcares.com/blog/disable-systemd-resolved-in-ubuntu/

IThundxr commented 1 year ago

Disable systemd-resolved

https://bobcares.com/blog/disable-systemd-resolved-in-ubuntu/

Already did that following the wiki it worked fine yesterday and today it's stopped working

IThundxr commented 1 year ago

started working now which is confusing