isc-dhcp-server.service fails on xenial with "Can't open lease database /var/lib/dhcp/dhcpd.leases: No such file or directory"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
isc-dhcp (Ubuntu) |
Fix Released
|
Critical
|
Mathieu Trudel-Lapierre |
Bug Description
While investigating a DHCP issue on MAAS, I installed a fresh xenial on a LXC container and installed the isc-dhcp-server package. It fails to start with a syslog entry like "dhcpd[8090]: Can't open lease database /var/lib/
From the machine:
root@xenial-
Description: Ubuntu Xenial Xerus (development branch)
Release: 16.04
root@xenial-
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii isc-dhcp-client 4.3.3-5ubuntu1 amd64 DHCP client for automatically obtaining an IP address
un isc-dhcp-
ii isc-dhcp-common 4.3.3-5ubuntu1 amd64 common files used by all of the isc-dhcp packages
ii isc-dhcp-server 4.3.3-5ubuntu1 amd64 ISC DHCP server for automatic IP address assignment
un isc-dhcp-
root@xenial-
● isc-dhcp-
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since Tue 2016-01-19 23:43:40 UTC; 6min ago
Docs: man:dhcpd(8)
Process: 8090 ExecStart=/bin/sh -ec CONFIG_
Process: 8081 ExecStartPre=
Main PID: 8090 (code=exited, status=1/FAILURE)
Jan 19 23:43:40 xenial-dhcp-test sh[8090]: Can't open lease database /var/lib/
Jan 19 23:43:40 xenial-dhcp-test sh[8090]: check for failed database rewrite attempt!
Jan 19 23:43:40 xenial-dhcp-test sh[8090]: Please read the dhcpd.leases manual page if you
Jan 19 23:43:40 xenial-dhcp-test sh[8090]: don't know what to do about this.
Jan 19 23:43:40 xenial-dhcp-test sh[8090]: If you think you have received this message due to a bug rather
Jan 19 23:43:40 xenial-dhcp-test sh[8090]: than a configuration issue please read the section on submitting
Jan 19 23:43:40 xenial-dhcp-test sh[8090]: bugs on either our web page at www.isc.org or in the README file
Jan 19 23:43:40 xenial-dhcp-test sh[8090]: before submitting a bug. These pages explain the proper
Jan 19 23:43:40 xenial-dhcp-test sh[8090]: process and the information we find helpful for debugging..
Jan 19 23:43:40 xenial-dhcp-test sh[8090]: exiting.
Hint: Some lines were ellipsized, use -l to show in full.
Changed in isc-dhcp (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
importance: | Undecided → Critical |
This bug was fixed in the package isc-dhcp - 4.3.3-5ubuntu2
---------------
isc-dhcp (4.3.3-5ubuntu2) xenial; urgency=medium
* Correct my previous upload: Create the initial leases file if it doesn't
exist when isc-dhcp-server or isc-dhcp-server6 are started, because it
won't do it by itself. (LP: #1535952)
-- Mathieu Trudel-Lapierre <email address hidden> Wed, 20 Jan 2016 13:24:59 -0500