Dhcp-server fails to start

I have a new installation of leap 15.6

I would like to install warewulf clustering which requires a dhcp server. However, I can not get the dhcp server to start, whatever I do.

I have used yast set up the server - but get the error

‘saving the configuration file failed. Change the settings?’

/etc/dhcpd.conf contains the following

option domain-name "cluster.local";
option domain-name-servers 10.0.1.1;
option routers 10.0.1.1;
option ntp-servers 10.0.1.1;
ddns-update-style none;
default-lease-time 14400;
subnet 10.0.1.0 netmask 255.255.255.0 {
  range 10.0.1.50 10.0.1.99;
  default-lease-time 14400;
  max-lease-time 172800;
}

‘systemctl start dhcpd’ etc gives:

job for dhcpd.service failed because a timeout was exceeded.
See "systemctl status dhcpd.service" and "journalctl -xeu dhcpd.service" for details.

> systemctl status dhcpd.service
× dhcpd.service - ISC DHCPv4 Server
     Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; enabled; preset: disabled)
     Active: failed (Result: timeout) since Mon 2024-06-17 18:20:03 AEST; 41s ago
    Process: 9317 ExecStart=/usr/lib/dhcp/dhcpd -4 start (code=killed, signal=TERM)
        CPU: 36ms

Jun 17 18:18:33 omega systemd[1]: Starting ISC DHCPv4 Server...
Jun 17 18:18:33 omega dhcpd[9329]: Internet Systems Consortium DHCP Server 4.3.6-P1
Jun 17 18:18:33 omega dhcpd[9329]: Copyright 2004-2018 Internet Systems Consortium.
Jun 17 18:18:33 omega dhcpd[9329]: All rights reserved.
Jun 17 18:18:33 omega dhcpd[9329]: For info, please visit https://www.isc.org/software/dhcp/
Jun 17 18:20:03 omega systemd[1]: dhcpd.service: start operation timed out. Terminating.
Jun 17 18:20:03 omega dhcpd[9317]: Starting ISC DHCPv4 Server
Jun 17 18:20:03 omega systemd[1]: dhcpd.service: Failed with result 'timeout'.
Jun 17 18:20:04 omega systemd[1]: Failed to start ISC DHCPv4 Server.

>journalctl -xeu dhcpd.service
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit dhcpd.service has begun execution.
░░ 
░░ The job identifier is 6933.
Jun 17 18:13:59 omega dhcpd[29265]: Internet Systems Consortium DHCP Server 4.3.6-P1
Jun 17 18:13:59 omega dhcpd[29265]: Copyright 2004-2018 Internet Systems Consortium.
Jun 17 18:13:59 omega dhcpd[29265]: All rights reserved.
Jun 17 18:13:59 omega dhcpd[29265]: For info, please visit https://www.isc.org/software/dhcp/
Jun 17 18:15:29 omega systemd[1]: dhcpd.service: start operation timed out. Terminating.
Jun 17 18:15:29 omega dhcpd[29253]: Starting ISC DHCPv4 Server
Jun 17 18:15:29 omega systemd[1]: dhcpd.service: Failed with result 'timeout'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit dhcpd.service has entered the 'failed' state with result 'timeout'.
Jun 17 18:15:29 omega systemd[1]: Failed to start ISC DHCPv4 Server.
░░ Subject: A start job for unit dhcpd.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit dhcpd.service has finished with a failure.
░░ 
░░ The job identifier is 6933 and the job result is failed.
Jun 17 18:18:33 omega systemd[1]: Starting ISC DHCPv4 Server...
░░ Subject: A start job for unit dhcpd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit dhcpd.service has begun execution.
░░ 
░░ The job identifier is 7184.
Jun 17 18:18:33 omega dhcpd[9329]: Internet Systems Consortium DHCP Server 4.3.6-P1
Jun 17 18:18:33 omega dhcpd[9329]: Copyright 2004-2018 Internet Systems Consortium.
Jun 17 18:18:33 omega dhcpd[9329]: All rights reserved.
Jun 17 18:18:33 omega dhcpd[9329]: For info, please visit https://www.isc.org/software/dhcp/
Jun 17 18:20:03 omega systemd[1]: dhcpd.service: start operation timed out. Terminating.
Jun 17 18:20:03 omega dhcpd[9317]: Starting ISC DHCPv4 Server
Jun 17 18:20:03 omega systemd[1]: dhcpd.service: Failed with result 'timeout'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit dhcpd.service has entered the 'failed' state with result 'timeout'.
Jun 17 18:20:04 omega systemd[1]: Failed to start ISC DHCPv4 Server.
░░ Subject: A start job for unit dhcpd.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit dhcpd.service has finished with a failure.
░░ 
░░ The job identifier is 7184 and the job result is failed.

Not too helpful error message “start operation timed out” so I would first enable more debug info.

Checking the dhcpd manual I see you can run it as foreground process on the command line (-f) I would do that and also add -d. Trying “-t”/“-T” to test the configuration/leases file seems also like a good idea.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.