Bug 44708 - adconnector/check_domain: raises gaierror: [Errno -2]
adconnector/check_domain: raises gaierror: [Errno -2]
Status: NEW
Product: UCS
Classification: Unclassified
Component: AD Connector
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-30 10:42 CEST by Florian Best
Modified: 2021-11-26 16:41 CET (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.103
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021012921000795, 2019051021000531, 2019012621000411, 2018092121000694, 2017123121000054, 2017052821000341, 2020042721000268
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2017-05-30 10:42:59 CEST
Version: 4.2-0 errata25 (Lesum)

Die Ausführung des Kommandos adconnector/check_domain ist fehlgeschlagen:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 249, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/adconnector/__init__.py", line 393, in check_domain
    admember.check_ad_account(ad_domain_info, username, password)
  File "%PY2.7%/univention/lib/admember.py", line 243, in check_ad_account
    (previous_host_static_ucr_set, previous_host_static_ucr_unset) = prepare_dns_reverse_settings(ad_domain_info, ucr=ucr)
  File "%PY2.7%/univention/lib/admember.py", line 997, in prepare_dns_reverse_settings
    ip = socket.gethostbyname(ad_server_name)
gaierror: [Errno -2] Der Name oder der Dienst ist nicht bekannt
Comment 1 Johannes Keiser univentionstaff 2018-01-12 18:39:47 CET
Version: 4.2-1 errata197 (Lesum)

Remark: Help cannot connect to windows domain

Execution of command 'adconnector/check_domain' has failed:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 249, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/adconnector/__init__.py", line 393, in check_domain
    admember.check_ad_account(ad_domain_info, username, password)
  File "%PY2.7%/univention/lib/admember.py", line 243, in check_ad_account
    (previous_host_static_ucr_set, previous_host_static_ucr_unset) = prepare_dns_reverse_settings(ad_domain_info, ucr=ucr)
  File "%PY2.7%/univention/lib/admember.py", line 999, in prepare_dns_reverse_settings
    ip = socket.gethostbyname(ad_server_name)
gaierror: [Errno -2] Name or service not known
Comment 2 Johannes Keiser univentionstaff 2018-10-04 13:29:13 CEST
Reported again: Version: 4.3-2 errata229 (Neustadt)

Interner Server-Fehler in "setup/check/join_info (wizard)".
Request: setup/check/join_info (wizard)

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 253, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/setup/__init__.py", line 784, in check_domain_join_information
    domain = util.check_credentials_ad(nameserver, address, username, password)
  File "%PY2.7%/univention/management/console/modules/setup/util.py", line 1140, in check_credentials_ad
    check_ad_account(ad_domain_info, username, password)
  File "%PY2.7%/univention/lib/admember.py", line 260, in check_ad_account
    (previous_host_static_ucr_set, previous_host_static_ucr_unset) = prepare_dns_reverse_settings(ad_domain_info, ucr=ucr)
  File "%PY2.7%/univention/lib/admember.py", line 1062, in prepare_dns_reverse_settings
    ip = socket.gethostbyname(ad_server_name)
gaierror: [Errno -2] Der Name oder der Dienst ist nicht bekannt
Comment 3 Johannes Keiser univentionstaff 2019-01-31 13:12:10 CET
Version: 4.3-3 errata376 (Neustadt)

Remark: ???

Interner Server-Fehler in "setup/check/join_info (wizard)".
Request: setup/check/join_info (wizard)

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 253, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/setup/__init__.py", line 784, in check_domain_join_information
    domain = util.check_credentials_ad(nameserver, address, username, password)
  File "%PY2.7%/univention/management/console/modules/setup/util.py", line 1140, in check_credentials_ad
    check_ad_account(ad_domain_info, username, password)
  File "%PY2.7%/univention/lib/admember.py", line 280, in check_ad_account
    (previous_host_static_ucr_set, previous_host_static_ucr_unset) = prepare_dns_reverse_settings(ad_domain_info, ucr=ucr)
  File "%PY2.7%/univention/lib/admember.py", line 1082, in prepare_dns_reverse_settings
    ip = socket.gethostbyname(ad_server_name)
gaierror: [Errno -3] Temporärer Fehler bei der Namensauflösung

Role: None
Comment 4 Johannes Keiser univentionstaff 2019-05-14 14:33:42 CEST
Reported again: Version: 4.4-0 errata90 (Blumenthal)

Internal server error during "adconnector/check_domain".
Request: adconnector/check_domain

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 253, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/adconnector/__init__.py", line 396, in check_domain
    admember.check_ad_account(ad_domain_info, username, password)
  File "%PY2.7%/univention/lib/admember.py", line 280, in check_ad_account
    (previous_host_static_ucr_set, previous_host_static_ucr_unset) = prepare_dns_reverse_settings(ad_domain_info, ucr=ucr)
  File "%PY2.7%/univention/lib/admember.py", line 1082, in prepare_dns_reverse_settings
    ip = socket.gethostbyname(ad_server_name)
gaierror: [Errno -2] Name or service not known

Role: domaincontroller_master
Comment 5 Christian Castens univentionstaff 2020-08-26 17:17:28 CEST
reported again: 

Version: 4.4-3 errata438 (Blumenthal)

Traceback(d41d8cd98f00b204e9800998ecf8427e):
Internal server error during "setup/check/join_info (wizard)".
Request: setup/check/join_info (wizard)

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 358, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 261, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/setup/__init__.py", line 794, in check_domain_join_information
    domain = util.check_credentials_ad(nameserver, address, username, password)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/setup/util.py", line 1142, in check_credentials_ad
    check_ad_account(ad_domain_info, username, password)
  File "/usr/lib/python2.7/dist-packages/univention/lib/admember.py", line 274, in check_ad_account
    (previous_host_static_ucr_set, previous_host_static_ucr_unset) = prepare_dns_reverse_settings(ad_domain_info, ucr=ucr)
  File "/usr/lib/python2.7/dist-packages/univention/lib/admember.py", line 1076, in prepare_dns_reverse_settings
    ip = socket.gethostbyname(ad_server_name)
gaierror: [Errno -2] Name or service not known

Role: None
Comment 6 Maximilian Janßen univentionstaff 2021-11-26 16:41:29 CET
Version: 4.4-7 errata877 (Blumenthal)

Error: 
Interner Server-Fehler in "adconnector/check_domain".
Request: adconnector/check_domain

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/adconnector/__init__.py", line 396, in check_domain
    admember.check_ad_account(ad_domain_info, username, password)
  File "%PY2.7%/univention/lib/admember.py", line 275, in check_ad_account
    (previous_host_static_ucr_set, previous_host_static_ucr_unset) = prepare_dns_reverse_settings(ad_domain_info, ucr=ucr)
  File "%PY2.7%/univention/lib/admember.py", line 1074, in prepare_dns_reverse_settings
    ip = socket.gethostbyname(ad_server_name)
gaierror: [Errno -2] Der Name oder der Dienst ist nicht bekannt

Role: domaincontroller_master