Internal server error.
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 217, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 61, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/sbin/univention-management-console-web-server", line 1184, in index
return acs(binding, message, relay_state)
File "/usr/sbin/univention-management-console-web-server", line 1195, in attribute_consuming_service
saml = SAMLUser(response, message)
File "/usr/sbin/univention-management-console-web-server", line 421, in __init__
self.username = ''.join(self.data['uid'])
KeyError: 'uid'
Check what the logging.handler is in /etc/simplesamlphp/config.php.
If it is syslog you find the log messages in /var/log/syslog and /var/log/debug.
You can change the log level also in the config.
What is the name of the Service Provider you created in UCS for Nextcloud? That must match exactly the string it is complaining about in the METADATANOTFOUND error message.