AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

"Enable DHCP server" button doesn't work

Open jkazimierczak opened this issue 1 year ago • 6 comments

Prerequisites

Platform (OS and CPU architecture)

Linux, ARM64

Installation

Docker

Setup

On one machine

AdGuard Home version

v0.107.62

Action

When clicking "Enable DHCP server" nothing happens:

  • no network request is visible in the browser's network tab,
  • yaml config file is not changed and stays set to false.

Manually modifying config file to true enables DHCP and it correctly assigns leases. I didn't check the static reservation, but the DHCP itself works, it's just it cannot be enabled through WebUI.

Disabling DHCP server from WebUI works as expected.

Expected result

DHCP server being enabled and config file being updated accordingly.

Actual result

As described in "Action".

Additional information and/or screenshots

No response

jkazimierczak avatar Jun 08 '25 22:06 jkazimierczak

How would DHCP work within a docker containter? Are you using network type of "host"?

I will ask the Devs about this - prehaps there is a check that says "If within docker don't allow DHCP to be enabled" or similar.

tjharman avatar Jun 30 '25 19:06 tjharman

Yes, I'm using AGH in docker container with the host network mode. The problem is not that the DHCP doesn't work, but that the button within the AGH WebUI for enabling it doesn't work. The DHCP can be enabled manually within the config, and it works fine.

Image proof of working DHCP:

Image

jkazimierczak avatar Jun 30 '25 19:06 jkazimierczak

I'll flag this to the devs.

tjharman avatar Jun 30 '25 20:06 tjharman

@jkazimierczak, just to be clear, have you pressed Check for DHCP servers first? What was the result? The Enable DHCP server button is only unblocked once the check has been done.

ainar-g avatar Jul 01 '25 10:07 ainar-g

Hey @ainar-g, AdGuard fails to complete the check. But you're right, despite the failed check, Enable DHCP server button stops being disabled and I can enable the DHCP server from WebUI. If this is intended flow, maybe a tooltip on disabled buttons or a mention in the settings description would provide a good hint on what to do?

Image

jkazimierczak avatar Jul 04 '25 16:07 jkazimierczak

Yes, that's how it's supposed to work. I agree that it's not very user-friendly. We'll try to fix it in the near future. Thank you.

sofvaskina avatar Aug 27 '26 15:08 sofvaskina