Univention Bugzilla – Bug 50880
schoolimport/dry-run/progress: ServerError: Received status_code=502 with reason='Proxy Error'
Last modified: 2023-06-23 13:29:19 CEST
We received the following traceback: Version: 4.4-2 errata322 (Blumenthal) - UCS@school 4.4 v3 Traceback(933e2717fb5d0dd93e4bb70cebe6036b): Internal server error during "schoolimport/dry-run/progress". Request: schoolimport/dry-run/progress Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 358, in __error_handling six.reraise(etype, exc, etraceback) File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 261, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 639, 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 "%PY2.7%/univention/management/console/modules/schoolimport/__init__.py", line 209, in poll_dry_run return progress.poll() File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/mixins.py", line 102, in poll six.reraise(self.exc_info[1], None, self.exc_info[2]) File "<string>", line 2, in reraise ServerError: Received status_code=502 with reason='Proxy Error' for requests.post(**files={u'input_file': (u'***', <closed file '<uninitialized file>', mode '<uninitialized file>' at 0x7f0a9b851e40>, 'text/plain')}, url=u'https://***/api/v1/imports/users/', auth=(u'Administrator', u'**********'), headers={u'Accept': u'application/json'}, params=None, data={u'school': u'https://***/api/v1/schools/****/', u'dryrun': True, u'user_role': u'teacher'}). Role: domaincontroller_master
Reported again, with instead a 500 Internal Server Error: Version: 4.4-2 errata323 (Blumenthal) - UCS@school 4.4 v3 ServerError: Received status_code=500 with reason='Internal Server Error' for requests.post(**files={u'input_file': (u'1571614398-prova - Copia.txt', <closed file '<uninitialized file>', mode '<uninitialized file>' at 0x7f4d37d3ce40>, 'text/plain')}, url=u'https://***/api/v1/imports/users/', auth=(u'Administrator', u'**********'), headers={u'Accept': u'application/json'}, params=None, data={u'school': u'https://***/api/v1/schools/***/', u'dryrun': True, u'user_role': u'teacher'}).
Reported again (500 Internal Server Error) Version: 4.4-3 errata386 (Blumenthal) - UCS@school 4.4 v4 ServerError: Received status_code=500 with reason='Internal Server Error' for requests.post(**files={u'input_file': (u'***', <closed file '<uninitialized file>', mode '<uninitialized file>' at 0x7f0bd6789ed0>, 'text/plain')}, url=u'https://***/api/v1/imports/users/', auth=(u'Administrator', u'**********'), headers={u'Accept': u'application/json'}, params=None, data={u'school': u'https://***/api/v1/schools/***/', u'dryrun': True, u'user_role': u'teacher'}).
Those are all the same user in tickets from 2-5 months ago without any relevant information attached. Closing due to impossible to analyse and no further comment from user.
reported again (all the tickets newly attached to this bug are still reported by the same user) Versions: Version: 4.4-2 errata322 (Blumenthal) - UCS@school 4.4 v3 Version: 4.4-2 errata374 (Blumenthal) - UCS@school 4.4 v4 Version: 4.4-3 errata413 (Blumenthal) - UCS@school 4.4 v4 Remarks: Remark: Internal server error during school import Roles: domaincontroller_master
Reported again: Version: 4.4-5 errata652 (Blumenthal) - UCS@school 4.4 v5 Remark: Mir wird keine Schule zur auswahl angeboten ServerError: Received status_code=500
reported again: Ticket#2020072721000628
reported again: Ticket#2020081321000411 Version: 4.4-5 errata710 (Blumenthal) - UCS@school 4.4 v6 Remark: Was soll mir diese Fehlermeldung sagen? Sie kommt während eines Schüler-Imports der ou e144. Einen Proxy verwendet der Server nicht, warum er also einen 'Proxy Error' meldet erschließt sich mir nicht. ServerError: Received status_code=502 with reason='Proxy Error' for requests.get(**files=None, url=u'https://**********/api/v1/schools/e513/', auth=(u'Administrator', u'**********'), headers={u'Accept': u'application/json'}, params={}, data=None).
Ticket 2021071221000351 Version: 4.4-8 errata1001 (Blumenthal) - UCS@school 4.4 v9 Remark: Benutzerimport gestartet, dann kommt die Fehlermeldung, dann das Fenster "Benutzerimport durchführen"; Benutzerrolle kann nicht ausgewählt werden, das Feld bleibt leer. Den Fehler habe ich auf mehreren Systemen nachstellen können. Bitte um Rat, Ticket an den Support ist eröffnet. Error: Interner Server-Fehler in "schoolimport/schools". Request: schoolimport/schools Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling six.reraise(etype, exc, etraceback) File "%PY2.7%/univention/management/console/base.py", line 262, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 641, in _decorated return function(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func yield function(self, *args) File "%PY2.7%/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 "%PY2.7%/ucsschool/http_api/client.py", line 593, in list return self._to_python(self._list_resource(**params)) File "%PY2.7%/ucsschool/http_api/client.py", line 551, in _list_resource return self._resource_from_url(resource_url, **params) File "%PY2.7%/ucsschool/http_api/client.py", line 543, in _resource_from_url return self.client.call_api("get", url, params=params) File "%PY2.7%/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://ucs-5069.*********.intranet/api/v1/schools/', auth=(u'Administrator', u'***********'), headers={u'Accept': u'application/json'}, params={}, data=None). Role: domaincontroller_master
Ticket 2021071321000401 Version: 4.4-8 errata1007 (Blumenthal) - UCS@school 4.4 v9 Remark: Dienste wie von Frau Scheinig empfohlen neu gestartet. csv-Datei sowie user-import.json geprüft, trotzdem kein Erfolg. Error: Interner Server-Fehler in "schoolimport/dry-run/progress". Request: schoolimport/dry-run/progress Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling six.reraise(etype, exc, etraceback) File "%PY2.7%/univention/management/console/base.py", line 262, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 641, in _decorated return function(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/schoolimport/__init__.py", line 248, in poll_dry_run return progress.poll() File "%PY2.7%/univention/management/console/modules/mixins.py", line 102, in poll six.reraise(self.exc_info[1], None, self.exc_info[2]) File "<string>", line 2, in reraise ServerError: Received status_code=500 with reason='Internal Server Error' for requests.post(**files={u'input_file': (u'***********.csv', <closed file '<uninitialized file>', mode '<uninitialized file>' at 0x7fde0ae1fae0>, 'text/plain')}, url=u'https://***********/api/v1/imports/users/', auth=(u'Administrator', u'************'), headers={u'Accept': u'application/json'}, params=None, data={u'school': u'https://***********/api/v1/schools/5069/', u'dryrun': True, u'user_role': u'teacher'}). Role: domaincontroller_master