Good evening everyone. My dhcp server stopped working. I pulled the status and features Failure. If anyone can help me.

Follows AppendixA error imageenter image description here

Script of service isc-dhcp-server status

root@jhn01:~# service isc-dhcp-server restart
root@jhn01:~# service isc-dhcp-server status
● isc-dhcp-server.service - ISC DHCP IPv4 server
   Loaded: loaded (/lib/systemd/system/isc-dhcp-server.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Qui 2016-01-28 23:58:04 BRST; 6s ago
     Docs: man:dhcpd(8)
  Process: 1252 ExecStart=/bin/sh -ec      CONFIG_FILE=/etc/dhcp/dhcpd.conf;      if [ -f /etc/ltsp/dhcpd.conf ]; then CONFIG_FILE=/etc/ltsp/dhcpd.conf; fi;      [ -e /var/lib/dhcp/dhcpd.leases ] || touch /var/lib/dhcp/dhcpd.leases;      exec dhcpd -user dhcpd -group dhcpd -f -4 -pf /run/dhcp-server/dhcpd.pid -cf $CONFIG_FILE $INTERFACES (code=exited, status=1/FAILURE)
  Process: 1248 ExecStartPre=/bin/chown dhcpd:dhcpd /run/dhcp-server (code=exited, status=0/SUCCESS)
 Main PID: 1252 (code=exited, status=1/FAILURE)

Jan 28 23:58:04 jhn01 sh[1252]: Can't open /var/lib/dhcp/dhcpd.leases for append.
Jan 28 23:58:04 jhn01 sh[1252]: If you think you have received this message due to a bug rather
Jan 28 23:58:04 jhn01 sh[1252]: than a configuration issue please read the section on submitting
Jan 28 23:58:04 jhn01 sh[1252]: bugs on either our web page at www.isc.org or in the README file
Jan 28 23:58:04 jhn01 sh[1252]: before submitting a bug.  These pages explain the proper
Jan 28 23:58:04 jhn01 sh[1252]: process and the information we find helpful for debugging..
Jan 28 23:58:04 jhn01 sh[1252]: exiting.
Jan 28 23:58:04 jhn01 systemd[1]: isc-dhcp-server.service: Main process exited, code=exited, statu...ILURE
Jan 28 23:58:04 jhn01 systemd[1]: isc-dhcp-server.service: Unit entered failed state.
Jan 28 23:58:04 jhn01 systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.

Version S.O : Distributor ID: Ubuntu Description: Ubuntu Xenial Xerus (development branch) Release: 16.04 Codename: xenial

  • It'd be really helpful if you could copy the text in the terminal and paste it into your question instead :). – TheWanderer Jan 29 '16 at 2:07

It's a bug in isc-dhcp-server/apparmor. See https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1543794 for progress and possible workarounds

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.