After upgrading from TrueNAS Scale 22.12.1 to Scale 22.12.2 I encountered the bug described in this thread: https://www.truenas.com/community/threads/task-renew-kerberos-ticket-hangs-since-the-update.108037/
In trying to resolve it, I left the AD domain and attempted to rejoin it. Now, though, every single time I attempt to enable Active Directory, even with the same credentials that worked before, I get the following error:
Note the number of timeout seconds in the last line. It is always a very similar (if not identical) value, and is not affected whatsoever by the DNS Timeout setting when configuring Active Directory.
In trying to resolve it, I left the AD domain and attempted to rejoin it. Now, though, every single time I attempt to enable Active Directory, even with the same credentials that worked before, I get the following error:
Code:
Error: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 196, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1335, in _call
return await methodobj(*prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/service.py", line 576, in update
rv = await self.middleware._call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1335, in _call
return await methodobj(*prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1186, in nf
res = await f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1318, in nf
return await func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/activedirectory.py", line 434, in do_update
await self.middleware.call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1386, in call
return await self._call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1335, in _call
return await methodobj(*prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/plugins/activedirectory_/dns.py", line 210, in check_nameservers
resp = await self.middleware.call('dnsclient.forward_lookup', {
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1386, in call
return await self._call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1335, in _call
return await methodobj(*prepared_call.args)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1318, in nf
return await func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1186, in nf
res = await f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/middlewared/plugins/dns_client.py", line 108, in forward_lookup
results = await asyncio.gather(*[
File "/usr/lib/python3/dist-packages/middlewared/plugins/dns_client.py", line 40, in resolve_name
ans = await r.resolve(
File "/usr/lib/python3/dist-packages/dns/asyncresolver.py", line 114, in resolve
timeout = self._compute_timeout(start, lifetime)
File "/usr/lib/python3/dist-packages/dns/resolver.py", line 950, in _compute_timeout
raise Timeout(timeout=duration)
dns.exception.Timeout: The DNS operation timed out after 12.405295133590698 secondsNote the number of timeout seconds in the last line. It is always a very similar (if not identical) value, and is not affected whatsoever by the DNS Timeout setting when configuring Active Directory.