Univention Bugzilla – Bug 43651
UCS 4.2 upgrade failed due to isc-dhcp-server
Last modified: 2017-04-04 18:29:04 CEST
Created attachment 8459 [details] updater.log.bz2 The Jenkins upgrade to UCS 4.2 failed: http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestUpgrade/SambaVersion=s4,Systemrolle=master/46/ From the updater.log: isc-dhcp-server (4.3.1-6+deb8u2A~4.2.0.201612191043) wird eingerichtet ... Neue Version der Konfigurationsdatei /etc/init.d/isc-dhcp-server.debian wird installiert ... insserv: warning: script 'K01univention-s4-connector' missing LSB tags and overrides insserv: warning: script 'K02bind9' missing LSB tags and overrides insserv: warning: script 'K01univention-system-setup-boot' missing LSB tags and overrides insserv: warning: script 'K01univention-management-console-web-server' missing LSB tags and overrides insserv: warning: script 'K01univention-saml' missing LSB tags and overrides insserv: warning: script 'S02resize2fs' missing LSB tags and overrides insserv: warning: script 'univention-system-setup-boot' missing LSB tags and overrides insserv: warning: script 'univention-saml' missing LSB tags and overrides insserv: warning: script 'univention-s4-connector' missing LSB tags and overrides insserv: warning: script 'univention-system-setup-boot-prepare' missing LSB tags and overrides insserv: warning: script 'bind9' missing LSB tags and overrides insserv: warning: script 'univention-management-console-web-server' missing LSB tags and overrides insserv: warning: script 'resize2fs' missing LSB tags and overrides This script is disabled, use /etc/init.d/univention-dhcp.. Restarting univention-dhcp: dhcpd. isc-dhcp-server-ldap (4.3.1-6+deb8u2A~4.2.0.201612191043) wird eingerichtet ... univention-dhcp (11.0.0-4A~4.2.0.201701292329) wird eingerichtet ... Neue Version der Konfigurationsdatei /etc/init.d/univention-dhcp wird installiert ... Neue Version der Konfigurationsdatei /etc/runit/univention-dhcp/run wird installiert ... Neue Version der Konfigurationsdatei /etc/univention/templates/files/etc/dhcp/dhcpd.conf wird installiert ... Neue Version der Konfigurationsdatei /etc/univention/templates/files/etc/init.d/isc-dhcp-server wird installiert ... File: /etc/init.d/isc-dhcp-server File: /etc/logrotate.d/univention-dhcp File: /etc/dhcp/dhcpd.conf insserv: warning: script 'K01univention-s4-connector' missing LSB tags and overrides insserv: warning: script 'K02bind9' missing LSB tags and overrides insserv: warning: script 'K01univention-system-setup-boot' missing LSB tags and overrides insserv: warning: script 'K01univention-management-console-web-server' missing LSB tags and overrides insserv: warning: script 'K01univention-saml' missing LSB tags and overrides insserv: warning: script 'S02resize2fs' missing LSB tags and overrides insserv: warning: script 'univention-system-setup-boot' missing LSB tags and overrides insserv: warning: script 'univention-saml' missing LSB tags and overrides insserv: warning: script 'univention-s4-connector' missing LSB tags and overrides insserv: warning: script 'univention-system-setup-boot-prepare' missing LSB tags and overrides insserv: warning: script 'bind9' missing LSB tags and overrides insserv: warning: script 'univention-management-console-web-server' missing LSB tags and overrides insserv: warning: script 'resize2fs' missing LSB tags and overrides dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf. The error was: Internet Systems Consortium DHCP Server 4.3.1 Copyright 2004-2014 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Config file: /etc/dhcp/dhcpd.conf Database file: /var/lib/dhcp/dhcpd.leases PID file: /var/run/dhcpd.pid Configuration file errors encountered -- exiting If you think you have received this message due to a bug rather than a configuration issue please read the section on submitting bugs on either our web page at www.isc.org or in the README file before submitting a bug. These pages explain the proper process and the information we find helpful for debugging.. exiting. invoke-rc.d: initscript univention-dhcp, action "start" failed. dpkg: Fehler beim Bearbeiten des Paketes univention-dhcp (--configure): Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Please provide (maybe Bug #43217 ?) ucr search --brief '^(nameserver|dns/forwarder)[123]$' and sed -i -e'/ldap-debug-file/s/^# *//' /etc/dhcp/dhcpd.conf dhcpd -d -f -t cat /var/log/dhcp-ldap-startup.log
It is still reproducible via Jenkins: http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestUpgrade/SambaVersion=s4,Systemrolle=master/ws/updater.log And here is the config replog: http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestUpgrade/SambaVersion=s4,Systemrolle=master/ws/config-registry.replog.log
(In reply to Stefan Gohmann from comment #2) > It is still reproducible via Jenkins: > http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/ > AutotestUpgrade/SambaVersion=s4,Systemrolle=master/ws/updater.log > > And here is the config replog: > http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/ > AutotestUpgrade/SambaVersion=s4,Systemrolle=master/ws/config-registry.replog. > log set nameserver1=10.210.235.72 set interfaces/eth0/address=10.210.235.72 Feb 27 20:24:16 master071 named[9109]: dlz_dlopen: incorrect version 1 should be 2 in '/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9.so' So named fails to start.... but why dhcpd?
The error message looks like the situation of Bug #43200, maybe univention-samba4 has not been configured yet in these cases?
2787 ? S 0:00 runsvdir -P /etc/service log: ntry.c:36: ldap_first_entry: Assertion `chain != ((void *)0)' failed. dhcpd: getentry.c:36: ldap_first_entry: Assertion `chain != ((void *)0)' failed. dhcpd: getentry.c:36: ldap_first_entry: Assertion `chain != ((void *)0)' failed. dhcpd: getentry.c:36: ldap_first_entry: Assertion `chain != ((void *)0)' failed. dhcpd: getentry.c:36: ldap_first_entry: Assertion `chain != ((void *)0)' failed. . Do dhcpd fails to contact the slapd and fails to start. Later on everythings works: # ps `pgrep slapd` `pgrep named` `pgrep dhcpd` PID TTY STAT TIME COMMAND 3073 ? S 0:00 /usr/sbin/dhcpd -q -f 3319 ? Sl 0:00 /usr/sbin/named -c /etc/bind/named.conf.samba4 -f -d 0 14755 ? Ssl 0:00 named 30709 ? Ssl 0:00 /usr/sbin/slapd -h ldapi:/// ldap://:7389/ ldaps://:7636/ # pgrep -fl runsvdir 2787 runsvdir 25873 runsvdir
(In reply to Philipp Hahn from comment #5) > Do dhcpd fails to contact the slapd and fails to start. Later on everythings > works: Since the users have to reboot after the upgrade, we could simply not abort the upgrade if the dhcp service fails to start. It happens again: http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestUpgrade/SambaVersion=s4,Systemrolle=master/ws/updater.log http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestUpgrade/SambaVersion=s4,Systemrolle=master/
Fixed. I had to override the dh_installinit option --error-handler in debian/rules too. Changelog adjusted.
OK: r77676 r77670 r77672 OK: univention-upgrade
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".