Bug 50880 - schoolimport/dry-run/progress: ServerError: Received status_code=502 with reason='Proxy Error'
schoolimport/dry-run/progress: ServerError: Received status_code=502 with rea...
Status: REOPENED
Product: UCS@school
Classification: Unclassified
Component: UMC - User Import UI
UCS@school 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Daniel Tröder
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-02-28 12:12 CET by Florian Best
Modified: 2023-06-23 13:29 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 201910282100109, 2019102921000906, 2019121121000016, 2019102921000497, 2019103121001026, 2019112321000531, 2019112321000602, 2019121921001055, 2020010621000946, 2020012221001058, 2020021621000372, 2020021921000652, 2020072921000026, 2020072721000673
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2020-02-28 12:12:28 CET
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
Comment 1 Florian Best univentionstaff 2020-02-28 12:15:22 CET
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'}).
Comment 2 Christian Castens univentionstaff 2020-02-28 15:46:56 CET
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'}).
Comment 4 Daniel Tröder univentionstaff 2020-03-02 08:49:22 CET
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.
Comment 5 Christian Castens univentionstaff 2020-08-12 08:57:41 CEST
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
Comment 6 Christian Castens univentionstaff 2020-08-19 16:24:56 CEST
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
Comment 7 Christian Castens univentionstaff 2020-08-19 16:27:24 CEST
reported again:
Ticket#2020072721000628
Comment 8 Christian Castens univentionstaff 2020-08-21 13:13:30 CEST
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).
Comment 9 Christian Castens univentionstaff 2021-07-13 12:09:31 CEST
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
Comment 10 Christian Castens univentionstaff 2021-07-16 20:49:09 CEST
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