Univention Bugzilla – Bug 56103
Domain Setup failed: Host name is already assigned
Last modified: 2023-09-18 12:49:11 CEST
Version: 5.0-3 errata677 Role: domaincontroller_backup Domain setup (this might take a while): Please visit https://help.univention.com/t/8842 for common problems during the join and how to fix them -- Host name *** is already assigned to a computer object of different role, please use a different name or remove that object. E: MAC address *** is already assigned to cn=***,cn=dc,cn=computers,dc=***,dc=loc. E: IP address 10.11.20.130 is already assigned to cn=***,cn=dc,cn=computers,dc=***,dc=loc, please remove that object or change the IP address. Tue Mar 7 18:11:52 -05 2023: starting /usr/sbin/univention-join -dcname ***.***.loc -dcaccount AD-UCS -dcpwd /var/cache/univention-system-setup/secret -checkPrerequisites running version check OK: UCS version on ***.***.loc is higher or equal (5.03) to the local version (5.03). Check if /var/lib/univention-directory-replication/failed.ldif exists binddn search on ***.***.loc with UDM failed Tue Mar 7 18:12:03 -05 2023: finish /usr/sbin/univention-join Tue Mar 7 18:23:39 -05 2023: starting /usr/share/univention-join/univention-join -dcname ***.***.loc -dcaccount AD-UCS -dcpwd /tmp/tmp.BdVP0ooHpT running version check OK: UCS version on ***.***.loc is higher or equal (5.03) to the local version (5.03). Check if /var/lib/univention-directory-replication/failed.ldif exists Stopping slapd (via systemctl): slapd.service. Starting slapd (via systemctl): slapd.service. binddn search on ***.***.loc with UDM failed Tue May 30 21:06:31 -05 2023 univention-join-hooks: looking for hook type "join/pre-join" on ***.***.loc Found hooks: cn=ensure-minmum-ucs-version,cn=data,cn=univention,dc=***,dc=loc Running: ensure-minmum-ucs-version (cn=ensure-minmum-ucs-version,cn=data,cn=univention,dc=***,dc=loc) in /tmp/tmplorp3395/tmp4d52a94x univention-server-join: joins a server to an univention domain copyright (c) 2001-2023 Univention GmbH, Germany /etc/machine.secret: Permission denied /etc/machine.secret: Permission denied E: Host name *** is already assigned to a computer object of different role, please use a different name or remove that object. E: MAC address *** is already assigned to cn=***,cn=dc,cn=computers,dc=***,dc=loc. E: IP address 10.11.20.130 is already assigned to cn=***,cn=dc,cn=computers,dc=***,dc=loc, please remove that object or change the IP address. ************************************************************************** * Join failed! * * Contact your system administrator * ************************************************************************** * Message: Please visit https://help.univention.com/t/8842 for common problems during the join and how to fix them -- Host name *** is already assigned to a computer object of different role, please use a different name or remove that object. E: MAC address *** is already assigned to cn=***,cn=dc,cn=computers,dc=***,dc=loc. E: IP address 10.11.20.130 is already assigned to cn=***,cn=dc,cn=computers,dc=***,dc=loc, please remove that object or change the IP address. **************************************************************************
Works as designed: when you re-use the name of a host, which previously already existed (as its computer account is still there), and you change the role, join will fail to protect you from loosing that earlier computer account, which would unjoin that host. UCS cannot know if that host is currently offline or if this is a left-over because you disbanded that host. Instructions to fix this problem are already printed; please follow them! → WORKS-FOR-ME
*** Bug 54624 has been marked as a duplicate of this bug. ***
*** Bug 56618 has been marked as a duplicate of this bug. ***