Univention Bugzilla – Bug 27153
Fehlermeldung beim erneuten Joinen
Last modified: 2012-12-12 21:11:00 CET
Beim erneuten Joinen tritt die folgende Exception in der Joinlog auf: File: /etc/init.d/slapd Setting slapd/port/ldaps File: /etc/init.d/slapd Restarting ldap server(s). Stopping ldap server(s): slapd. done. Check database: done Starting ldap server(s): slapd. . Error reading smb_krb5 reply packet: NT_STATUS_CONNECTION_REFUSED from 10.201.32.3 Traceback (most recent call last): File "/usr/share/univention-samba4/scripts/univention-samba4-site-tool.py", line 120, in <module> print >> sys.stderr, "site already exists" % opts.site TypeError: not all arguments converted during string formatting Create samba/autostart Create winbind/autostart
Ist bzw. wird Bestandteil von UCS.
UCS 3.1 will be the next release.
Der traceback ("not all arguments converted") wurde behoben, UCS 3.1-0 Changelog ist angepasst.
Ich bekomme aber immer noch einen Traceback: root@master21:~# /usr/share/univention-samba4/scripts/univention-samba4-site-tool.py -H "ldap://$ldap_master" -U"$dcaccount"%"$bindpwd" --site "test1" --createsite --ignore-exists created site test1 root@master21:~# /usr/share/univention-samba4/scripts/univention-samba4-site-tool.py -H "ldap://$ldap_master" -U"$dcaccount"%"$bindpwd" --site "test1" --createsite --ignore-exists site test1 already exists Traceback (most recent call last): File "/usr/share/univention-samba4/scripts/univention-samba4-site-tool.py", line 155, in <module> samdb.add_ldif(site_add_ldif) File "/usr/lib/python2.6/dist-packages/samba/__init__.py", line 224, in add_ldif self.add(msg, controls) _ldb.LdbError: (68, 'LDAP error 68 LDAP_ENTRY_ALREADY_EXISTS - <Entry CN=test1,CN=Sites,CN=Configuration,DC=deadlock2,DC=local already exists> <>') root@master21:~# Ohne --ignore_exists: root@master21:~# /usr/share/univention-samba4/scripts/univention-samba4-site-tool.py -H "ldap://$ldap_master" -U"$dcaccount"%"$bindpwd" --site "test2" --createsite created site test2 root@master21:~# /usr/share/univention-samba4/scripts/univention-samba4-site-tool.py -H "ldap://$ldap_master" -U"$dcaccount"%"$bindpwd" --site "test2" --createsite site test2 already exists root@master21:~# IMHO müsste bei --ignore_exists der Return Code auch korrekt sein.
Der Traceback wurde behoben. Falls der LDAP Eintrag schon existiert und univention-samba4-site-tool.py mit --ignore-exists aufgerufen wird, wird es nun mit sys.exit(0) beendet.
OK, das funktioniert jetzt.
UCS 3.1-0 has been released: http://forum.univention.de/viewtopic.php?f=54&t=2125 If this error occurs again, please use "Clone This Bug".