Problem: Join Script 30univention-appcenter fails on UCS 4.4

join
appcenter
ucs-4-4
problem

#1

Kudos @damrose

Problem:

With UCS 4.4 the Join Script “30univention-appcenter” fails.

Solution

Step 1:

Check your logfile /var/log/univention/join.log for entries like this:

Waiting for activation of the extension object app_syntax:...................................................ERROR: Master did not mark the extension object active within 180 seconds.
ERROR
ucs_registerLDAPExtension: registraton of /usr/share/univention-appcenter/app_syntax.py failed.

EXITCODE=1

Step 2:

Check if the object exists and is deactivated:

root@master:~# udm settings/udm_syntax list

DN: cn=app_syntax,cn=udm_syntax,cn=univention,dc=multi,dc=ucs
  active: FALSE
[...]
  filename: app_syntax.py
  name: app_syntax
  package: univention-appcenter
[...]

Please note the DN here as we will need it in the next step: cn=app_syntax,cn=udm_syntax,cn=univention,dc=multi,dc=ucs

Step 3:

Remove the object as a simple activation is not sufficient.

udm settings/udm_syntax remove --dn="cn=app_syntax,cn=udm_syntax,cn=univention,dc=multi,dc=ucs"

Step 4:

Re-run the join script

univention-run-join-scripts

Step 5 (if it still fails):

There might be an issue with your replication. Do:

root@ucs01:~# univention-directory-listener-ctrl status
Listener status:
 finish: univention-directory-listener: (pid 7920) 6s, normally down

Current Notifier ID on "ucs01.multi.ucs"
 2525

Last Notifier ID processed by local Listener:
 2212

Last transaction processed:
 2525 cn=app_syntax,cn=udm_syntax,cn=univention,dc=multi,dc=ucs a

Modules:
[...]

You see a mismatch between the two IDs (2212 on Listener vs. 2525 on Notifier).

Go ahead troubleshooting with the help of these articles.