Problem: Nach dem Installieren kann das Import Modul nicht aufgerufen werden

Problem:

Nach dem Installieren kann das Import Modul nicht aufgerufen werden.

Es kommt folgender Fehler:

20.07.21 11:39:13.416  MAIN        ( ERROR   ) : Internal server error during "schoolimport/schools".
Request: schoolimport/schools

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 641, in _decorated
    return function(self, request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/schoolimport/__init__.py", line 104, in schools
    dict(id=school.name, label=school.displayName) for school in self.client.school.list()
  File "/usr/lib/python2.7/dist-packages/ucsschool/http_api/client.py", line 593, in list
    return self._to_python(self._list_resource(**params))
  File "/usr/lib/python2.7/dist-packages/ucsschool/http_api/client.py", line 551, in _list_resource
    return self._resource_from_url(resource_url, **params)
  File "/usr/lib/python2.7/dist-packages/ucsschool/http_api/client.py", line 543, in _resource_from_url
    return self.client.call_api("get", url, params=params)
  File "/usr/lib/python2.7/dist-packages/ucsschool/http_api/client.py", line 524, in call_api
    raise exc(msg, status_code=response.status_code)
ServerError: Received status_code=500 with reason='Internal Server Error' for requests.get(**files=None, url=u'https://school.schein.en/api/v1/schools/', auth=(u'Administrator', u'**********'), headers={u'Accept': u'application/json'}, params={}, data=None).

Das Problem wurde mit ucs-school-import 17.0.70A~4.4.0.202106291122 eingeführt und mit ucs-school-import 7.0.71A~4.4.0.202107141220 behoben.

Trotzdem verschwindet der Traceback nicht.

Solution:

Nachdem die letzen Erratas eingespielt wurden, muss das Joinskript 40ucs-school-import-http-api.inst nochmal ausgeführt werden. Danach müssen die Dienste, idealerweise der Server, einmal rebootet werden.

univention-run-join-scripts --run-scripts 40ucs-school-import-http-api.inst --force
systemctl restart celery-worker-ucsschool-import.service 
systemctl restart celeryd.service
systemctl restart ucs-school-import-http-api.service
systemctl restart rabbitmq-server.service