DHCP Server Issues

Hi all,

I am recently having issues with my DHCP server.
I must be related to some of the latest updates (there was an dhcp related errata shortly before my upgrade to UCS5).
Sometimes my dhcp service stops and complains about not being properly configured in systemd.
Anyone having an idea what is going on here?

Jun 24 04:12:55 praxis systemd[1]: /lib/systemd/system/isc-dhcp-server.service.d/univention-dhcp.conf:16: PIDFile= references path below legacy directory /var/run/, updating /var/run/dhcpd.p
id → /run/dhcpd.pid; please update the unit file accordingly.
Jun 24 04:12:55 praxis systemd[1]: Stopping ISC DHCP Server for IPv4...
Jun 24 04:12:55 praxis systemd[1]: isc-dhcp-server.service: Main process exited, code=killed, status=15/TERM
Jun 24 04:12:55 praxis systemd[1]: isc-dhcp-server.service: Succeeded.
Jun 24 04:12:55 praxis systemd[1]: Stopped ISC DHCP Server for IPv4.

For some strange reason the univention-dhcp service disappeared and I only have isc-dhcp.service:

root@praxis://lib/systemd/system# systemctl status univention-dhcp
Unit univention-dhcp.service could not be found.
root@praxis://lib/systemd/system# systemctl list-unit-files| grep dhc
isc-dhcp-server.service                                         generated

Ideas?

/KNEBB

I removed and reinstalled the dhcp server meanwhile by:

root@praxis:~# apt remove univention-dhcp
root@praxis:~# apt autoremove 
root@praxis:~# apt install univention-dhcp

Unfortunatly there seem still be some errors:

root@praxis:~# systemctl enable isc-dhcp-server
isc-dhcp-server.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable isc-dhcp-server
insserv: warning: script 'K01univention-system-setup-boot' missing LSB tags
insserv: warning: current start runlevel(s) (empty) of script `isc-dhcp-server' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (1) of script `isc-dhcp-server' overrides LSB defaults (0 1 6).
insserv: warning: script 'univention-system-setup-boot' missing LSB tags
insserv: warning: script 'univention-system-setup-boot-prepare' missing LSB tags
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `univention-system-setup-boot-prepare'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `univention-system-setup-boot-prepare'
update-rc.d: error: no runlevel symlinks to modify, aborting!

Is dhcp server systemV oder systemd compliant?

/KNEBB

We have this problem too - ever since upgrade to UCS5.0-1 was working fine previously on 4.4-8.
Currently we need to manually start the univention-dhcp service whenever the server reboots.

Same errors as original poster - is there a way to boost this issue?

Hi @hatchjdecho

there was another thread later on : Since UCS5 dhcp- server does not start automatically

Here are some indications what you could try to resolve this issue.

Best, Bernd

1 Like

Many thanks I will follow up on the other thread.

Mastodon