wir haben auf unserem OPSI Server leider mal wieder ein Problem:
In unregelmäßigen Abständen kommt es zu dem Fehler bei der Anmeldung im "OPSI-Configed / 4.3.4.3) zu dem Problem, dass sich Admins nicht mehr Anmelden können. Die erscheinende Meldung lautet dann "Unauthorized".
Was wir bisher feststellen konnten, ist dass die Anmeldung nach dem Neustart des Dienstes "opsiconfd.service" über Systemctl wieder funktioniert.
Unser Workaround ist aktuell alle halbe Stunde den Dienst über einen Cronjob Neuzustarten.
Im Logfile unter /var/log/opsi/opsiconfd.log sind keine aktuellen Fehler zu sehen.
In den Logfiles der einzelnen Clients sind folgende Meldungen zu finden:
Code: Alles auswählen
Traceback (most recent call last):
File "opsiconfd/session.py", line 416, in __call__
File "opsiconfd/session.py", line 292, in handle_request
File "starlette/middleware/exceptions.py", line 62, in __call__
File "starlette/_exception_handler.py", line 63, in wrapped_app
File "starlette/responses.py", line 148, in __call__
File "starlette/_exception_handler.py", line 39, in sender
File "opsiconfd/session.py", line 290, in send_wrapper
File "opsiconfd/metrics/statistics.py", line 236, in send_wrapper
File "opsiconfd/application/middleware.py", line 197, in send_wrapper
File "uvicorn/protocols/websockets/wsproto_impl.py", line 347, in send
RuntimeError: Expected ASGI message 'websocket.send' or 'websocket.close', but got 'websocket.http.response.start'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "uvicorn/protocols/websockets/wsproto_impl.py", line 234, in run_asgi
File "uvicorn/middleware/proxy_headers.py", line 60, in __call__
File "fastapi/applications.py", line 1054, in __call__
File "starlette/applications.py", line 113, in __call__
File "starlette/middleware/errors.py", line 152, in __call__
File "opsiconfd/application/middleware.py", line 199, in __call__
File "opsiconfd/metrics/statistics.py", line 252, in __call__
File "opsiconfd/session.py", line 418, in __call__
File "opsiconfd/session.py", line 354, in handle_request_exception
File "opsiconfd/metrics/statistics.py", line 236, in send_wrapper
File "opsiconfd/application/middleware.py", line 197, in send_wrapper
File "uvicorn/protocols/websockets/wsproto_impl.py", line 347, in send
RuntimeError: Expected ASGI message 'websocket.send' or 'websocket.close', but got 'websocket.http.response.start'.
Weiterhin ist mir aufgefallen, dass wenn man über mehrere Clients (ca. 3000 Stk.) eine Aktion starten (z.B. setzen einer Anwendung auf "Setup"),
sich der OPSI-Configed komplett Aufhängt und auch nach einer halben Stunde keine weitere Nutzung des Configed mehr möglich ist.
In Windows nutzt der Configed dann knapp 2Gb RAM. CPU Auslastung ist unauffällig.
Hatte diesen Fehler bereits jemand und wenn ja, was war die Lösung, bzw. wo könnte ich hier noch nach Fehlern suchen?