Univention Domain Join Assistant schlägt fehl

Hallo zusammen,

mein Join schlägt leider fehl. Es sieht so ein wenig aus wie bei Univention-domain-join-cli für Ubuntu Problem - aber auch ein wenig anders :wink:

Ich bin auf Ubuntu 18.04.2 LTS ohne grafische Oberfläche und verwende netplan. Sollte ja generell supported sein(?). Der UCS ist per ping an seinen fqdn erreichbar. Ich starte den UCS Join mittels:

daniel@mig:~$ sudo univention-domain-join-cli --skip-login-manager --username Administrator --master-ip
Please enter the password for Administrator:
An error occurred. Please check /var/log/univention/domain-join-cli.log for more information.

Selbes Verhalten auch ohne manuelle Übergabe der Master IP. --master-ip

2019-05-18 19:21:38,060 userinfo INFO Automatically detected the domain 'ad.example.org'.
2019-05-18 19:21:47,712 userinfo CRITICAL An error occurred. Please check /var/log/univention/domain-join-cli.log for more information.
2019-05-18 19:21:47,713 debugging CRITICAL [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/usr/sbin/univention-domain-join-cli", line 194, in <module>
  File "/usr/lib/python2.7/dist-packages/univention_domain_join/distributions/ubuntu.py", line 78, in create_backup_of_config_files
    DnsConfigurator(self.nameservers, self.domain).backup(backup_dir)
  File "/usr/lib/python2.7/dist-packages/univention_domain_join/join_steps/dns_configurator.py", line 65, in __init__
    if DnsConfiguratorNetworkManager().works_on_this_system():
  File "/usr/lib/python2.7/dist-packages/univention_domain_join/join_steps/dns_configurator.py", line 144, in works_on_this_system
    stdout=subprocess.PIPE, stderr=subprocess.PIPE
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Liegts an netplan? Vielen Dank für jede Hilfe!

Danke :slight_smile:

Hi, i am pretty sure it is this bug: https://forge.univention.org/bugzilla/show_bug.cgi?id=49103

The domain join assistant is currently missing a dependency on the network-manager package, but tries to run nmcli. You will have to install the package manually and re-run the assistant.

1 Like

Hi thanks for your reply! Confirmed. I actually found the reference at the very second…

		## could also check lsb_release -sr here instead
		p = subprocess.Popen(
			['nmcli', '-v'],
			stdout=subprocess.PIPE, stderr=subprocess.PIPE

… after manually installing nmcli (and checking its compatibily version >1 and starting the service) rerunning the join scripts seems to work. Im am currently checking.

Works! Thank you @damrose :slight_smile: