Univention Bugzilla – Bug 43916
ad-join.py failed in AD sync mode
Last modified: 2017-04-04 18:29:47 CEST
The following traceback happens in UCS 4.2 when I try to setup a AD sync system. The complete logfile: http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/ADConnectorMultiEnv/Version=w2k12-german/ws/autotest-231-adsync-w2k12-german.log Execute: /root/ad-join.py -H "$(hostname -f)" -u Administrator -p Univention@99 -D 10.210.25.115 -A Administrator -P Univention@99 -S Traceback (most recent call last): File "/root/ad-join.py", line 204, in <module> join_ad() File "/root/ad-join.py", line 146, in join_ad client = Client(options.host, options.username, options.password) File "/usr/lib/pymodules/python2.7/univention/lib/umc.py", line 242, in __init__ self.authenticate(username, password) File "/usr/lib/pymodules/python2.7/univention/lib/umc.py", line 250, in authenticate return self.umc_auth(username, password) File "/usr/lib/pymodules/python2.7/univention/lib/umc.py", line 286, in umc_auth return self.request('POST', 'auth', data) File "/usr/lib/pymodules/python2.7/univention/lib/umc.py", line 297, in request return self.send(request) File "/usr/lib/pymodules/python2.7/univention/lib/umc.py", line 316, in send raise HTTPError(request, response, self.hostname) univention.lib.umc.NotAcceptable: 406 on adsync231.autotest231.local (auth): {"status": 406, "message": "Specified locale is not available", "location": "https://adsync231.autotest231.local/univention/auth"} *** Failed 1: /root/ad-join.py -H "$(hostname -f)" -u Administrator -p Univention@99 -D 10.210.25.115 -A Administrator -P Univention@99 -S
r77877 | Bug #43916: force english locale instead of the locale of jenkins
Now other errors happen. Giving this bug back. Execute: . utils.sh; promote_ad_w2k12 10.210.50.182 autotest231win.local Traceback (most recent call last): File "<string>", line 4, in <module> File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 438, in promote_ad self.set_local_user_password(self.domain_admin, self.domain_password) File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 449, in set_local_user_password self.winexec("cmd /C net user %s" % (user + " " + password), domain_mode=False) File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 231, in winexec return self.__run_command(cmd, dont_fail=dont_fail) File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 154, in __run_command raise WinExeFailed("command '%s' failed with: %s %s" % (" ".join(cmd), stdout, stderr)) univention.winexe.WinExeFailed: command 'winexe --interactive=0 -U testadmin%Univention@99 //10.210.50.182 cmd /C net user administrator Univention@99' failed with: None *** Failed 1: . utils.sh; promote_ad_w2k12 10.210.50.182 autotest231win.local Execute: sleep 10m #wait for windows Execute: . utils.sh; set_windows_gateway 10.210.50.182 autotest231win.local 10.210.16.118 Traceback (most recent call last): File "<string>", line 4, in <module> File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 461, in set_gateway self.winexec("set-gateway", gateway, domain_mode=domain_mode) File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 216, in winexec self.__copy_script(script=script[0], domain_mode=domain_mode, runas_user=runas_user, runas_password=runas_password) File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 171, in __copy_script raise WinExeFailed("certutil not found on client %s! (%s %s)" % (self.client, stderr, stdout)) univention.winexe.WinExeFailed: certutil not found on client 10.210.50.182! (None ERROR: Cannot connect to svcctl pipe. NT_STATUS_LOGON_FAILURE.) *** Failed 1: . utils.sh; set_windows_gateway 10.210.50.182 autotest231win.local 10.210.16.118 Execute: /root/ad-join.py -H "$(hostname -f)" -u Administrator -p Univention@99 -D 10.210.50.182 -A Administrator -P Univention@99 -S === AD-JOIN SYNC MODE SELECTED === === AD-JOIN STARTED === Traceback (most recent call last): File "/root/ad-join.py", line 203, in <module> join_ad() File "/root/ad-join.py", line 149, in join_ad join_sync_mode() File "/root/ad-join.py", line 68, in join_sync_mode result = client.umc_command("adconnector/check_domain", request_options).result File "/usr/lib/pymodules/python2.7/univention/lib/umc.py", line 272, in umc_command return self.request('POST', 'command/%s' % (path,), data, headers) File "/usr/lib/pymodules/python2.7/univention/lib/umc.py", line 297, in request return self.send(request) File "/usr/lib/pymodules/python2.7/univention/lib/umc.py", line 316, in send raise HTTPError(request, response, self.hostname) univention.lib.umc.BadRequest: 400 on adsync231.autotest231.local (command/adconnector/check_domain): {"status": 400, "message": "Could not connect to AD Server 10.210.50.182. Please verify that the specified address is correct.", "location": "https://adsync231.autotest231.local/univention/command"} *** Failed 1: /root/ad-join.py -H "$(hostname -f)" -u Administrator -p Univention@99 -D 10.210.50.182 -A Administrator -P Univention@99 -S
(In reply to Florian Best from comment #2) > Now other errors happen. Giving this bug back. This issue was about the traceback. And that is OK now. One setup has been started, so I guess it is a timing issue. I'll check that and create a new bug if necessary.
OK
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".