today i tried to install nextcloud to a ucs server. But when i run the join script there is a failure:
univention-run-join-scripts started
Mi 23. Aug 16:40:14 CEST 2023
univention-join-hooks: looking for hook type "join/pre-joinscripts" on ucs-2018.XXX.intranet
Found hooks:
RUNNING 50nextcloud.inst
2023-08-23 16:40:16.016968770+02:00 (in joinscript_init)
Object exists: cn=services,cn=univention,dc=XXX,dc=intranet
Object exists: cn=Nextcloud Hub,cn=services,cn=univention,dc=XXX,dc=intranet
No modification: cn=ucs-2018,cn=dc,cn=computers,dc=XXX,dc=intranet
WARNING: cannot append Nextcloud Hub to service, value exists
Not updating nextcloud/ucs/modifyUsersFilter
Not updating nextcloud/ucs/userEnabled
Not updating nextcloud/ucs/userQuota
Not updating nextcloud/ucs/debug
Not updating nextcloud/ldap/cacheTTL
Not updating nextcloud/ldap/homeFolderAttribute
Not updating nextcloud/ldap/userSearchAttributes
Not updating nextcloud/ldap/userDisplayName
Not updating nextcloud/ldap/groupDisplayName
Not updating nextcloud/ldap/base
Not updating nextcloud/ldap/baseUsers
Not updating nextcloud/ldap/baseGroups
Not updating nextcloud/ldap/filterLogin
Not updating nextcloud/ldap/filterUsers
Not updating nextcloud/ldap/filterGroups
LDAP Error: No such object.
EXITCODE=1
8c69b65a-d933-4f08-b21e-06e753c88a2c
univention-join-hooks: looking for hook type "join/post-joinscripts" on ucs-2018.XXX.intranet
Found hooks:
Mi 23. Aug 16:40:18 CEST 2023
univention-run-join-scripts finished
I think it is a problem with the .intranet TDL. What i did was:
1.) enter the IP and the hostname (.intranet and the external dyndns names into the hosts file (nextcloud dokker and lokal system)
2.) hardcode the hostname ucs-2018.XXX.intranet to the 50nextcloud.inst script
3.) hardcode the dyndns hostname to the 50nextcloud.inst script
4.) commented out the nextcloud_configure_saml line in the 50nextcloud.inst script
These are the sugesstions i found in old therad but nothin worked.
i got the same error message today and focused on the “LDAP Error: No such object” message. The error is thrown when the join script tries to add an LDAP entry into the “saml-serviceprovider” container because that container didn’t exist.
I could solve this by manually creating the “saml-serviceprovider” container underneath the “univention” container and running the join script again. Afterwards the login for Nextcloud worked as expected.
I don’t think, that you ran into the same error as I did because the error is about something in the saml:config namespace. That is related to the nextcloud configuration and you might need to examine that in the corresponding docker container.
This is, what the nextcloud commandline is showing on my instance:
Seems like the addition of the SSO & SAML app in Nextcloud allowed the join script to run when I attempted to upgrade this time.
Unfortunately I had another issue and had to roll back again. My UCS upgrade attempt got stuck on 5.1 and wouldn’t continue through to 5.2.
I think the problem was having the latest Keycloak app installed. There was an error about the Keycloak version not being compatible.
I think on my next attempt I will install the SSO & SAML app, then update Nextcloud and make sure that works. I will not update Keycloak and then run the UCS upgrade to 5.2. Hopefully that goes through with no errors and then I can attempt the Keycloak update after I make it to 5.2.
I ran into various other problems during the following update to 5.2 and rolled back because I had not enough time to take care of this.
I really would like to have a precheck which can be started manually without triggering the upgrade and thus be able to take care of any obstacles beforehand.