AdguardTeam / AdguardTeam/AdGuardHome

Error while creating "dhcpv4" and no registering of the handlers

Offen
#4,944 13 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @EugeneOne1 Auf GitHub ansehen
bug P3: Medium waiting for data
Vorherrschende Sprache
TypeScript
Sterne
36.9k
Forks
2.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Prerequisites

- [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer

- [X] I have searched other issues and found no duplicates

- [X] I want to report a bug and not ask a question

### Operating system type

FreeBSD

### CPU architecture

AMD64

### Installation

GitHub releases or script from README

### Setup

On a router, DHCP is handled by the router

### AdGuard Home version

v0.108.0-b.15

### Description

**What did you do?**
I installed AdGuard Home on an OPNsense router that currently runs FreeBSD 13.1-RELEASE-p2. I am able to start AdGuard Home but there is no webserver starting. The console shows that necessary permissions are existing and right after that there is an error shown

_creating dhcpv4 srv: dhcpv4: **nil is not an IP address**_

Right after that the auth and web modules are initialized, redirect for first launch is shown and all internal IPs and IPs of the wan-gateways are shown

**Expected result**
Opening first launch assistant using port 3000 for configuration

**Actual result**
No webpage published, no listening on ports 3000 and 3001

**Screenshots (if applicable)**

**Additional information**
Seems to be a problem registering the IPv4 dhcp server while first start. Found some code in "package dhcpd" that could be responsible for that. There is already a running IPv4 dhcp server on that device.

s.registerHandlers()

v4conf := conf.Conf4
v4conf.InterfaceName = s.conf.InterfaceName
v4conf.notify = s.onNotify
v4conf.Enabled = s.conf.Enabled && len(v4conf.RangeStart) != 0

_s.srv4, err = v4Create(&v4conf)
if err != nil {
if v4conf.Enabled {
return nil, fmt.Errorf("**creating dhcpv4 srv: %w**", err)
}

log.Error("creating dhcpv4 srv: %s", err)
}_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.