New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while creating "dhcpv4" and no registering of the handlers #4944
Comments
Same issue 11/7 |
I also have the same issue:- |
i also have the same issue, has anyone figured out a fix? |
@GH-USER2022, hello and sorry for the late response. Unfortunately, we can't reproduce the web page availability issue. Could you please send us the whole log AdGuard Home generates, preferably with option I'd suppose there is actually another error, since the mentioned one shouldn't affect the web part of AGH. |
Merge in DNS/adguard-home from 4944-dhcp-creation to master Updates #4944. Updates #5191. Squashed commit of the following: commit f5bc567 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Fri Nov 25 18:07:35 2022 +0300 all: log changes, imp log commit 526fe71 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Fri Nov 25 17:38:30 2022 +0300 dhcpd: log creation err as debug
I can reproduce the issue (cannot access the front end). Here's the log with option root@OPNsense:~/opt/AdGuardHome # ./AdGuardHome -v |
And here is the log with an edge release.
|
@GH-USER2022, is that reproduces in the newer releases? If yes, I'd like to clarify a few things. Firstly, do you try to access the router with the printed addresses? Which one do you use exactly? What are the others? Secondly, it appears that in some circumstances AGH silently doesn't bind to the addresses, it prints for accessing. Could you please show the output of |
Merge in DNS/adguard-home from 4944-dhcp-creation to master Updates AdguardTeam#4944. Updates AdguardTeam#5191. Squashed commit of the following: commit f5bc567 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Fri Nov 25 18:07:35 2022 +0300 all: log changes, imp log commit 526fe71 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Fri Nov 25 17:38:30 2022 +0300 dhcpd: log creation err as debug
Same Issue HERE: 2023/06/15 00:17:23.292711 9107#1 [info] AdGuard Home, version v0.107.32 My Version: |
There is any Fix for this ? |
Prerequisites
I have checked the Wiki and Discussions and found no answer
I have searched other issues and found no duplicates
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)
}_
The text was updated successfully, but these errors were encountered: