Slave join script sucess but can't rerun univention-join

As i’m having issues with one slave server i try rerun the univention-join but i get the following “stupid” error

**************************************************************************
* 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 -- The ssh-login to Administrator@ccmdc01.ccm.local failed with "close failed in file object destructor: sys.excepthook is missing lost sys.stderr ". Please make sure the account Administrator exists and is a member of the Domain Admins group!
**************************************************************************

Is stupid because is from the slave i do a ssh i’m able to connect without issues to the master it that user and credentials…

root@MPAVDC1:~# ssh ccmdc01
Password:
Univention DC Master 4.3-3:

The UCS management system is available at https://CCMDC01.ccm.local/ (192.168.120.2)

You can log into the Univention Management Console - the principal tool to manage
users, groups, etc. - using the "Administrator" account and the password selected
for the root user on the master domain controller.


Last login: Fri Jan 25 08:26:41 2019 from 192.168.1.75
root@CCMDC01:~# exit
logout
Connection to ccmdc01 closed.
root@MPAVDC1:~# ssh Administrator@ccmdc01.ccm.local
Password:
Univention DC Master 4.3-3:

The UCS management system is available at https://CCMDC01.ccm.local/ (192.168.120.2)

You can log into the Univention Management Console - the principal tool to manage
users, groups, etc. - using the "Administrator" account and the password selected
for the root user on the master domain controller.


Administrator@CCMDC01:~$

Hi! What you see in /var/log/univention/join.log, last rows before error?

@zakabluk

++ univention-ssh -timeout 3 /tmp/tmp.CB5yicWs4x/dcpwd Administrator@ccmdc01.ccm.local ls
+ ssh_out='close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr'
+ '[' 1 -ne 0 ']'
++ echo 'close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr'
++ tr '\n' ' '
++ tr '\r' ' '
+ ssh_out='close failed in file object destructor: sys.excepthook is missing lost sys.stderr '
+ failed_message 'The ssh-login to Administrator@ccmdc01.ccm.local failed with "close failed in file object destructor: sys.excepthook is missing lost sys.stderr ". Please make sure the account Administrator exists and is a member of the Domain Admins group!'
+ tee -a /var/log/univention/join.log
+ echo ''
+ echo ''

OMG. I suggest it’s python problem. Because /usr/sbin/univention-ssh it’s python script and you can reproduce your error if launched univention-ssh with options “pwd_file user@host command”

@zakabluk should i reinstall python ?
The server is updated to the latest patchs

Tell me pls your OS and python version.

@zakabluk

root@MPAVDC1:~# ucr get version/erratalevel
410
root@MPAVDC1:~# ucr get version/version
4.3
root@MPAVDC1:~# ucr get version/patchlevel
3
root@MPAVDC1:~# ucr get version/releasename
Neustadt
root@MPAVDC1:~# uname -a
Linux MPAVDC1 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
root@MPAVDC1:~# python -V
Python 2.7.13

hm, looks nice. I used iso image ucs same version, yesterday. And did join without problems. Maybe reason on master node ? Maybe you can found errors in master node logs(join.log)?

@zakabluk i have more slaves and both are working ok.

This new slave is a VM running over xcp-ng (xenserver) but have resources… two things that i notice in the slave is the cpu high usage (mainly smbd process) and sometimes i get pkgsql errors in logs, that isn’t configured…

So i have a lot of issues with this server i can’t find the reason…

@zakabluk

I’m always getting this error


RUNNING 98univention-pkgdb-tools.inst
2019-01-25 11:58:24.248456977+00:00 (in joinscript_init)
Traceback (most recent call last):
  File "/usr/sbin/univention-pkgdb-scan", line 37, in <module>
    univention.pkgdb.main()
  File "/usr/lib/pymodules/python2.7/univention/pkgdb.py", line 578, in main
    connection = open_database_connection(config_registry, pkgdbu=False)
  File "/usr/lib/pymodules/python2.7/univention/pkgdb.py", line 560, in open_database_connection
    connection = pgdb.connect(database=connectstring)
  File "/usr/lib/python2.7/dist-packages/pgdb.py", line 1615, in connect
    cnx = _connect(dbname, dbhost, dbport, dbopt, dbuser, dbpasswd)
pg.InternalError: FATAL:  no pg_hba.conf entry for host "192.168.103.2", user "MPAVDC1$", database "pkgdb", SSL on

2019-01-25 11:58:27.519760046+00:00 (in joinscript_save_current_version)
EXITCODE=0
RUNNING 98univention-samba4-dns.inst

Mastodon