Bug 55775 - VeyonConnectionError: No response from WebAPI Server
Summary: VeyonConnectionError: No response from WebAPI Server
Status: RESOLVED DUPLICATE of bug 57604
Alias: None
Product: UCS@school
Classification: Unclassified
Component: Veyon
Version: UCS@school 4.4
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UCS@school maintainers
QA Contact:
URL:
Keywords:
Depends on: 57025
Blocks:
  Show dependency treegraph
 
Reported: 2023-03-02 13:29 CET by Mika Westphal
Modified: 2024-09-20 12:40 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.429
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support: Yes
Flags outvoted (downgraded) after PO Review: Yes
Ticket number: 2023030221000248, 2023030221000221, 2023030921000351, 2023081021000349, 2023092221000281, 2024041821000143, 2024041721000163, 2024040521000051, 2024052321000177, 2024070521000046, 2024090521002228
Bug group (optional): Error handling, External feedback
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mika Westphal univentionstaff 2023-03-02 13:29:24 CET
Version: 4.4-9 errata1371 (Blumenthal) - UCS@school 4.4 v9

Error:
Rechner in den Computerräumen können momentan nicht ferngesteuert werden, da der zugehörige Service nicht verfügbar ist. Das System wird versuchen den Service neu zu starten, bitte
probieren Sie es in wenigen Augenblicken noch einmal. Falls das Problem bestehen bleibt, kontaktieren Sie bitte den Systemadministrator.
Request: room_acquire

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/modules/computerroom/room_management.py", line 845, in _test_veyon_backend_connection
    self.veyon_client.test_connection()
  File "%PY2.7%/ucsschool/veyon_client/client.py", line 169, in test_connection
    raise VeyonConnectionError("No response from WebAPI Server ({}).".format(self._url))
VeyonConnectionError: No response from WebAPI Server (http://localhost:11080/api/v1).

Role: domaincontroller_slave
Comment 1 Daniel Tröder univentionstaff 2023-03-03 09:11:51 CET
Sounds like the Veyon proxy app server crashed. Have you tried to restart it?
Please make sure it's updated to the lastest version.
Comment 2 Mika Westphal univentionstaff 2023-09-25 10:12:23 CEST
2023092221000281  5.2-0 errata713  Computerraum Modul öffnen - Veyon app ist nicht installiert.
 2023081021000349  5.0-4 errata771 - UCS@school 5.0 v4

Rechner in den Computerräumen können momentan nicht ferngesteuert werden, da der zugehörige Service nicht verfügbar ist. Das System wird versuchen den Service neu zu starten, bitte probieren Sie es in wenigen Augenblicken noch einmal. Falls das Problem bestehen bleibt, kontaktieren Sie bitte den Systemadministrator.
Request: room_acquire

Traceback (most recent call last):
  File "%PY3%/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "%PY3%/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "%PY3%/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Verbindungsaufbau abgelehnt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/urllib3/connectionpool.py", line 704, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "%PY3%/urllib3/connectionpool.py", line 399, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "%PY3%/urllib3/connection.py", line 239, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.11/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.11/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "/usr/lib/python3.11/http/client.py", line 975, in send
    self.connect()
  File "%PY3%/urllib3/connection.py", line 205, in connect
    conn = self._new_conn()
           ^^^^^^^^^^^^^^^^
  File "%PY3%/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f0e602a3910>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "%PY3%/urllib3/connectionpool.py", line 788, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "%PY3%/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=11080): Max retries exceeded with url: /api/v1/feature (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0e602a3910>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/ucsschool/veyon_client/client.py", line 165, in test_connection
    requests.head("{}/feature".format(self._url), timeout=self._ping_timeout)
  File "%PY3%/requests/api.py", line 100, in head
    return request("head", url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "%PY3%/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "%PY3%/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "%PY3%/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "%PY3%/requests/adapters.py", line 565, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=11080): Max retries exceeded with url: /api/v1/feature (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0e602a3910>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/univention/management/console/modules/computerroom/__init__.py", line 406, in _room_acquire
    self._computerroom.veyon_client.test_connection()
  File "%PY3%/ucsschool/veyon_client/client.py", line 167, in test_connection
    raise VeyonConnectionError("No response from WebAPI Server ({}).".format(self._url))
ucsschool.veyon_client.models.VeyonConnectionError: No response from WebAPI Server (http://localhost:11080/api/v1).
Comment 4 Mika Westphal univentionstaff 2024-04-19 10:03:35 CEST
Version: 5.0-7 errata1018 - UCS@school 5.0 v5

Remark: Die Kontrolle der Computerräume ist nicht möglich. Nach der Auswahl des Raumes kommt direkt die Fehlermeldung im Anhang.

Error:
Rechner in den Computerräumen können momentan nicht ferngesteuert werden, da der zugehörige Service nicht verfügbar ist. Das System wird versuchen den Service neu zu starten, bitte
probieren Sie es in wenigen Augenblicken noch einmal. Falls das Problem bestehen bleibt, kontaktieren Sie bitte den Systemadministrator.
Request: room_acquire

Traceback (most recent call last):
  File "%PY3%/urllib3/connection.py", line 162, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "%PY3%/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "%PY3%/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Verbindungsaufbau abgelehnt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "%PY3%/urllib3/connectionpool.py", line 355, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/http/client.py", line 1264, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1310, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1259, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1034, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 974, in send
    self.connect()
  File "%PY3%/urllib3/connection.py", line 184, in connect
    conn = self._new_conn()
  File "%PY3%/urllib3/connection.py", line 171, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f2ed57bf978>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/requests/adapters.py", line 449, in send
    timeout=timeout
  File "%PY3%/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "%PY3%/urllib3/util/retry.py", line 399, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=11080): Max retries exceeded with url: /api/v1/feature (Caused by
NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2ed57bf978>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/ucsschool/veyon_client/client.py", line 165, in test_connection
    requests.head("{}/feature".format(self._url), timeout=self._ping_timeout)
  File "%PY3%/requests/api.py", line 101, in head
    return request('head', url, **kwargs)
  File "%PY3%/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "%PY3%/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "%PY3%/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "%PY3%/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=11080): Max retries exceeded with url: /api/v1/feature (Caused by
NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2ed57bf978>: Failed to establish a new connection: [Errno 111] Verbindungsaufbau abgelehnt'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/univention/management/console/modules/computerroom/__init__.py", line 406, in _room_acquire
    self._computerroom.veyon_client.test_connection()
  File "%PY3%/ucsschool/veyon_client/client.py", line 167, in test_connection
    raise VeyonConnectionError("No response from WebAPI Server ({}).".format(self._url))
ucsschool.veyon_client.models.VeyonConnectionError: No response from WebAPI Server (http://localhost:11080/api/v1).

Role: domaincontroller_master
Comment 5 Mika Westphal univentionstaff 2024-04-19 10:08:55 CEST
(In reply to Mika Westphal from comment #4)
Same error
Version: 5.0-7 errata1023 - UCS@school 5.0 v5
Role: domaincontroller_slave
Comment 6 Mika Westphal univentionstaff 2024-04-19 10:23:33 CEST
2024040521000051
Version: 5.0-6 errata1009 - UCS@school 5.0 v4
Role: domaincontroller_slave
Comment 7 Mika Westphal univentionstaff 2024-05-24 09:19:50 CEST
Version: 5.0-7 errata1050 - UCS@school 5.0 v5

Remark: Beim Versuch die Computerraum-Steuerung zu öffnen kommt es zum Fehler. Anfänglich wurden scheinbar Klassenarbeiten nicht richtig beendet.

Error:
Rechner in den Computerräumen können momentan nicht ferngesteuert werden, da der zugehörige Service nicht verfügbar ist. Das System wird versuchen den Service neu zu starten, bitte
probieren Sie es in wenigen Augenblicken noch einmal. Falls das Problem bestehen bleibt, kontaktieren Sie bitte den Systemadministrator.
Request: room_acquire

Traceback (most recent call last):
  File "%PY3%/urllib3/connectionpool.py", line 385, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "%PY3%/urllib3/connectionpool.py", line 381, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.7/http/client.py", line 1356, in getresponse
    response.begin()
  File "/usr/lib/python3.7/http/client.py", line 319, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.7/http/client.py", line 280, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/requests/adapters.py", line 449, in send
    timeout=timeout
  File "%PY3%/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "%PY3%/urllib3/util/retry.py", line 368, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "%PY3%/urllib3/connectionpool.py", line 387, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "%PY3%/urllib3/connectionpool.py", line 307, in _raise_timeout
    raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='localhost', port=11080): Read timed out. (read timeout=5.0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/ucsschool/veyon_client/client.py", line 165, in test_connection
    requests.head("{}/feature".format(self._url), timeout=self._ping_timeout)
  File "%PY3%/requests/api.py", line 101, in head
    return request('head', url, **kwargs)
  File "%PY3%/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "%PY3%/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "%PY3%/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "%PY3%/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=11080): Read timed out. (read timeout=5.0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/univention/management/console/modules/computerroom/__init__.py", line 406, in _room_acquire
    self._computerroom.veyon_client.test_connection()
  File "%PY3%/ucsschool/veyon_client/client.py", line 167, in test_connection
    raise VeyonConnectionError("No response from WebAPI Server ({}).".format(self._url))
ucsschool.veyon_client.models.VeyonConnectionError: No response from WebAPI Server (http://localhost:11080/api/v1).

Role: domaincontroller_slave
Comment 8 Mika Westphal univentionstaff 2024-05-24 10:06:07 CEST
2024022021000204
 Version: 5.0-6 errata959 - UCS@school 5.0 v4
 Role: domaincontroller_slave
Comment 9 Mika Westphal univentionstaff 2024-05-24 10:14:12 CEST
2024021421000163
 Version: 5.0-6 errata906 - UCS@school 5.0 v4
 Role: domaincontroller_slave
Comment 11 Mirac Erdemiroglu univentionstaff 2024-07-05 13:05:45 CEST
Customer affected 2024070521000046

UCS VERSION: 5.0-8 errata1080
Comment 13 Mika Westphal univentionstaff 2024-08-12 10:16:42 CEST
2024080721000166 Version: 5.0-8 errata1092 - UCS@school 5.0 v5
Comment 14 Mirac Erdemiroglu univentionstaff 2024-09-05 15:37:25 CEST
Request: room_acquire

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 385, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 381, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.7/http/client.py", line 1356, in getresponse
    response.begin()
  File "/usr/lib/python3.7/http/client.py", line 319, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.7/http/client.py", line 280, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 368, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 307, in _raise_timeout
    raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='localhost', port=11080): Read timed out. (read timeout=5.0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ucsschool/veyon_client/client.py", line 165, in test_connection
    requests.head("{}/feature".format(self._url), timeout=self._ping_timeout)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 101, in head
    return request('head', url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=11080): Read timed out. (read timeout=5.0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/computerroom/__init__.py", line 406, in _room_acquire
    self._computerroom.veyon_client.test_connection()
  File "/usr/lib/python3/dist-packages/ucsschool/veyon_client/client.py", line 167, in test_connection
    raise VeyonConnectionError("No response from WebAPI Server ({}).".format(self._url))
ucsschool.veyon_client.models.VeyonConnectionError: No response from WebAPI Server (http://localhost:11080/api/v1).
Comment 15 Jan-Luca Kiok univentionstaff 2024-09-20 12:40:55 CEST
The room aquiration handling has been improved as part of Bug #57604, so I am closing this issue as a duplicate.

Feel free to re-open or clone this bug if the error still persists.

*** This bug has been marked as a duplicate of bug 57604 ***