Checkmk Enterprise Edition 2.1.0p2
OpenSUSE 15.3
ImportError: cannot import name ‘x509’ from ‘cryptography.hazmat.bindings._rust’ (unknown location)
Hallo zusammen,
Ich benötige mal euer Schwarm Wissen. Auf einem Windows Server 2016 hab ich den Windows Agent erfolgreich installiert. Beim versuch den Agent mit dem Updater in die Bakery zu registrieren ist dieser Fehler aufgetaucht:
C:\Program Files (x86)\checkmk\service>check_mk_agent.exe updater
Traceback (most recent call last):
File "C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py", line 32, in <module>
from OpenSSL import crypto # type: ignore[import]
File "C:\ProgramData\checkmk\agent\modules\python-3\.venv\lib\site-packages\OpenSSL\__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "C:\ProgramData\checkmk\agent\modules\python-3\.venv\lib\site-packages\OpenSSL\crypto.py", line 8, in <module>
from cryptography import utils, x509
File "C:\ProgramData\checkmk\agent\modules\python-3\.venv\lib\site-packages\cryptography\x509\__init__.py", line 6, in <module>
from cryptography.x509 import certificate_transparency
File "C:\ProgramData\checkmk\agent\modules\python-3\.venv\lib\site-packages\cryptography\x509\certificate_transparency.py", line 10, in <module>
from cryptography.hazmat.bindings._rust import x509 as rust_x509
ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)
Was ich bisher gemacht hab um das Problem zu beheben ist:
- Neuinstallation des Agent.
- den Agent neu gebacken.
- Deinstallation => Restart => Neuinstallation.
- (Siehe Nr. 3 mit) alle Dateien nach der Deinstallation gelöscht aus Program Files (x86) & ProgramData
Hier noch ein Auszug aus dem Agent Log:
2022-06-10 13:12:14.513 [app 1788] [Trace] Enabled Debug
2022-06-10 13:12:14.514 [app 1788] Loaded start config 'C:\Program Files (x86)\checkmk\service\check_mk.yml','C:\ProgramData\checkmk\agent\bakery','C:\ProgramData\checkmk\agent\check_mk.user.yml'
2022-06-10 13:12:14.515 [app 1788] 'C:\ProgramData\checkmk\agent\plugins\cmk_update_agent.checkmk.py' will be used for updater
2022-06-10 13:12:14.515 [app 1788] Loading module config
2022-06-10 13:12:14.516 [app 1788] Processed [1] module(s)
2022-06-10 13:12:14.586 [app 1788] The command 'C:\ProgramData\checkmk\agent\modules\python-3\postinstall.cmd' is successful
2022-06-10 13:12:14.587 [app 1788] Module 'python-3' is prepared to work with bin 'C:\ProgramData\checkmk\agent\modules\python-3\.venv\Scripts\python.exe'
2022-06-10 13:12:15.133 [app 1788] Agent Updater process [1228] started
Hat jemand von euch ne Idee was das sein könnte?
Gruß
Daniel