Bug 27815 - dhcpd.service doesn't start, ends with timeout. Is dhcpd.conf in the wrong place?
Summary: dhcpd.service doesn't start, ends with timeout. Is dhcpd.conf in the wrong pl...
Status: RESOLVED DUPLICATE of bug 28358
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-14 09:41 CET by papoteur
Modified: 2021-05-09 23:59 CEST (History)
3 users (show)

See Also:
Source RPM: dhcp-4.4.2-6.mga8.src.rpm
CVE:
Status comment:


Attachments
Configuration file (4.59 KB, text/plain)
2020-12-14 09:47 CET, papoteur
Details

Description papoteur 2020-12-14 09:41:37 CET
Description of problem:
If configured dhcpd to start at boot.
But it never starts, automatically nor manually.

● dhcpd.service - DHCPv4 Server Daemon
     Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; enabled; vendor preset: disabled)
     Active: failed (Result: timeout) since Mon 2020-12-14 09:03:42 CET; 32min ago
       Docs: man:dhcpd(8)
             man:dhcpd.conf(5)
    Process: 2147 ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid $DHCPDARGS (code=killed, signal=TERM)
   Main PID: 2147 (code=killed, signal=TERM)
        CPU: 62ms

déc. 14 09:02:13 localhost dhcpd[2147]: Source compiled to use binary-leases
déc. 14 09:02:13 localhost dhcpd[2147]: Wrote 0 class decls to leases file.
déc. 14 09:02:13 localhost dhcpd[2147]: Wrote 0 leases to leases file.
déc. 14 09:02:13 localhost dhcpd[2147]: Listening on LPF/enp0s3/08:00:27:0c:1b:5f/192.168.1.0/24
déc. 14 09:02:13 localhost dhcpd[2147]: Sending on   LPF/enp0s3/08:00:27:0c:1b:5f/192.168.1.0/24
déc. 14 09:02:13 localhost dhcpd[2147]: Sending on   Socket/fallback/fallback-net
déc. 14 09:02:13 localhost dhcpd[2147]: Server starting service.
déc. 14 09:03:42 localhost systemd[1]: dhcpd.service: start operation timed out. Terminating.
déc. 14 09:03:42 localhost systemd[1]: dhcpd.service: Failed with result 'timeout'.
déc. 14 09:03:42 localhost systemd[1]: Failed to start DHCPv4 Server Daemon.
Comment 1 papoteur 2020-12-14 09:47:14 CET
Created attachment 12077 [details]
Configuration file

This file is generated with a patched drakwizard-dhcp, to allow detecting used interface.
Note that drakwizard writes this file in /etc/dhcpd.conf, although dhcp is launched using /etc/dhcp/dhcpd.conf. Is this a wanted change? How users have to manage that in migrating from 7 to 8?
Comment 3 Lewis Smith 2020-12-14 20:26:07 CET
(In reply to papoteur from comment #1)
> Note that drakwizard writes this file in
> /etc/dhcpd.conf
> although dhcp is launched using
> /etc/dhcp/dhcpd.conf           ********
> Is this a wanted change? How users have to manage that in migrating
> from 7 to 8?
 $ urpmf /etc/dhcp/dhcpd.conf
yields nothing, so that path seems not to be provided.
 $ urpmf /etc/dhcpd.conf
 dhcp-server:/etc/dhcpd.conf
 $ urpmq -l dhcp-server | grep /etc
 /etc/dhcpd.conf
It seems worth resolving this path difference at least.

Can the customer try linking (should not need to be symbolic) the two:
 # ln  /etc/dhcpd.conf  /etc/dhcp/dhcpd.conf
to see whether that sorts the problem?

Source RPM: dhcp-server-4.4.2-6.mga8 => dhcp-4.4.2-6.mga8.src.rpm
CC: (none) => lewyssmith
Summary: dhcpd.service doesn't start, ends with timeout => dhcpd.service doesn't start, ends with timeout. Is dhcpd.conf in the wrong place?

Comment 4 Lewis Smith 2020-12-14 20:28:19 CET
Silly me. I imagine there is a need to create /etc/dhcp/ first.
Comment 5 David Walser 2020-12-14 21:34:01 CET
Someone made a mess out of the service files in a recent commit.

Should be fixed in dhcp-4.4.2-7.mga8
Comment 6 David Walser 2020-12-15 01:36:10 CET
Should be available now.

Resolution: (none) => FIXED
Status: NEW => RESOLVED
CC: (none) => luigiwalser

Comment 7 Budi Rachmanto 佛慈 浪漫人 2021-05-09 21:34:19 CEST
still persists on 4.2.2-8

CC: (none) => pim7dj
Ever confirmed: 1 => 0
Status: RESOLVED => UNCONFIRMED
Resolution: FIXED => (none)

Comment 8 David Walser 2021-05-09 23:02:14 CEST
We know.

*** This bug has been marked as a duplicate of bug 28358 ***

Resolution: (none) => DUPLICATE
Status: UNCONFIRMED => RESOLVED

Comment 9 Budi Rachmanto 佛慈 浪漫人 2021-05-09 23:26:30 CEST
dhcpd itself is okay

The problem is within systemd / systemctl script.

Status: RESOLVED => REOPENED
Ever confirmed: 0 => 1
Resolution: DUPLICATE => (none)

Comment 10 David Walser 2021-05-09 23:59:48 CEST
We know.

*** This bug has been marked as a duplicate of bug 28358 ***

Resolution: (none) => DUPLICATE
Status: REOPENED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.