Univention Bugzilla – Bug 40457
Error handling in 98univention-samba4-dns.inst
Last modified: 2020-06-22 15:48:44 CEST
I see the following messages in the join.log: cannot reset server in localhost-only mode syntax error cannot reset server in localhost-only mode syntax error Failed update of 2 entries The joinscript nevertheless exits with 0. Here is the full log. RUNNING 98univention-samba4-dns.inst 2016-01-18 18:36:18.931560843+01:00 (in joinscript_init) Waiting for RID Pool replication: done. Not updating samba4/sysvol/sync/cron Adding CNAME record "3ff3015c-1999-4048-be9d-91ec738b5c4c._msdcs ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "ldap tcp 0 100 389 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Does not exist Adding SRV record "ldap._tcp.dc msdcs 0 100 389 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "ldap._tcp.aa7a9533-db0c-426c-9ca0-78e7513891de.domains msdcs 0 100 389 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done No record found Adding SRV record "kerberos tcp 0 100 88 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "kerberos udp 0 100 88 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "kerberos._tcp.dc msdcs 0 100 88 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "kpasswd tcp 0 100 464 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "kpasswd udp 0 100 464 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "ldap._tcp.Default-First-Site-Name sites 0 100 389 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "ldap._tcp.Default-First-Site-Name._sites.dc msdcs 0 100 389 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "kerberos._tcp.Default-First-Site-Name sites 0 100 88 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "kerberos._tcp.Default-First-Site-Name._sites.dc msdcs 0 100 88 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding TXT record "_kerberos UNIVENTION-PT41.INTRANET" to zone univention-pt41.intranet... done Adding A record "gc._msdcs 192.168.0.113" to zone univention-pt41.intranet... done Adding SRV record "gc tcp 0 100 3268 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "ldap._tcp.gc msdcs 0 100 3268 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "gc._tcp.Default-First-Site-Name sites 0 100 3268 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "ldap._tcp.Default-First-Site-Name._sites.gc msdcs 0 100 3268 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done Adding SRV record "ldap._tcp.pdc msdcs 0 100 389 ucs-1843.univention-pt41.intranet." to zone univention-pt41.intranet... done cannot reset server in localhost-only mode syntax error cannot reset server in localhost-only mode syntax error Failed update of 2 entries 2016-01-18 18:36:35.648963666+01:00 (in joinscript_save_current_version) EXITCODE=0
I guess we need to fix 4.1-0-0-ucs/2:4.3.3-1-errata4.1-0/95_dnsupdate.patch for this. This patch adds the option --local to the samba_dnsupdate script, which causes nsupdate to be called with the option "-l". As far as I can see the samba_dnupdate script must not pass a "server " line to nsupdate in that case.
This bug should also change that the joinscript fails with an error code != 0 in any case where something fails.
Created attachment 9089 [details] patch Patch attaches "|| die" to relevant joinscript calls.
We need to fix Comment 1 too, otherwise support will be unhappy.
(In reply to Arvid Requate from comment #4) > We need to fix Comment 1 too, otherwise support will be unhappy. Yes, the new file is: svn/patches/samba/4.2-0-0-ucs/2:4.6.1-1-errata4.2-1/95_dnsupdate.quilt