PXE-Boot: OpsiRpcError Is a directory: /etc/opsi/modules

Antworten
Degan
Beiträge: 25
Registriert: 19 Dez 2022, 09:37

PXE-Boot: OpsiRpcError Is a directory: /etc/opsi/modules

Beitrag von Degan »

Hallo zusammen,

ich bin seit den letzten Tagen dabei OPSI am laufen zu bringen anhand den bereitgestellten Anleitung.
Mein Host-System ist ein Debian 11 Kernelv. 5.10.149-2 (2022-10-21)

Der OPSI-Server läuft soweit bereits und ich kann mich per opsi-configed oder WebUI darauf verbinden.
Nun möchte ich ein Betriebssystem über das Netzwerk, genauer gesagt über PXE-Boot bereitstellen.

Für die PXE-"Verbindung" nutze ich noch die opsi-client-bootcd.iso.
Nachdem ich die Client-Informationen eingetragen habe und über den Admin-Zugang eingeloggt bin, habe ich die Möglichkeit ein Netboot Betriebssystem auszuwählen.
Danach erhalte ich die folgende Fehlermeldung:

Code: Alles auswählen

OpsiRpcError: Opsi rpc error: [Errno 21] Is a directory: '/etc/opsi/modules' (error on server)
Hier nochmal als Log (LOG_LEVEL7):

Code: Alles auswählen

[5] [2022-12-20 16:00:30.479] [               ] mokutil output: SecureBoot disabled
   (run-master:634)
[5] [2022-12-20 16:00:30.479] [               ] We are not running in Secureboot mode   (run-master:641)
[6] [2022-12-20 16:00:30.479] [               ] JSONRPC request to https://192.168.178.4:4447/rpc: ip_version=4, id=12, method=backend_getLicensingInfo, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=(10, 300)   (jsonrpc.py:449)
[7] [2022-12-20 16:00:30.485] [               ] https://192.168.178.4:4447 "POST /rpc HTTP/1.1" 200 125   (connectionpool.py:456)
[6] [2022-12-20 16:00:30.486] [               ] Got response status=200, Content-Type=application/msgpack, Content-Encoding=, duration=0.007s   (jsonrpc.py:474)
[7] [2022-12-20 16:00:30.486] [               ] JSONRPC-response contains error   (jsonrpc.py:517)
[4] [2022-12-20 16:00:31.489] [               ] Warning 'OPSI.Logger.logException is deprecated, instead use logger.log with exc_info=True.' in file 'OPSI/Logger.py', line 422   (logging.py:848)
[6] [2022-12-20 16:00:31.489] [               ]   File "run-master", line 1739, in <module>   (logging.py:851)
[6] [2022-12-20 16:00:31.489] [               ]    (logging.py:851)
[6] [2022-12-20 16:00:31.489] [               ]   File "OPSI/Logger.py", line 422, in logException   (logging.py:851)
[6] [2022-12-20 16:00:31.489] [               ]    (logging.py:851)
[6] [2022-12-20 16:00:31.489] [               ]   File "warnings.py", line 109, in _showwarnmsg   (logging.py:851)
[6] [2022-12-20 16:00:31.489] [               ]    (logging.py:851)
[6] [2022-12-20 16:00:31.489] [               ]   File "opsicommon/logging/logging.py", line 849, in _log_warning   (logging.py:851)
[6] [2022-12-20 16:00:31.489] [               ]    (logging.py:851)
[2] [2022-12-20 16:00:31.489] [               ] Opsi rpc error: [Errno 21] Is a directory: '/etc/opsi/modules' (error on server)   (Logger.py:423)
Traceback (most recent call last):
  File "run-master", line 1580, in <module>
  File "<string>", line 1, in backend_getLicensingInfo
  File "opsicommon/client/jsonrpc.py", line 389, in execute_rpc
  File "opsicommon/client/jsonrpc.py", line 526, in _execute_rpc
opsicommon.exceptions.OpsiRpcError: Opsi rpc error: [Errno 21] Is a directory: '/etc/opsi/modules' (error on server)
[7] [2022-12-20 16:00:31.489] [               ] Backend: <JSONRPCBackend()>   (run-master:1741)
[7] [2022-12-20 16:00:31.489] [               ] ProductId: alma8   (run-master:1742)
[7] [2022-12-20 16:00:31.489] [               ] ClientId: w01.lab.mydomain.de   (run-master:1743)
[7] [2022-12-20 16:00:31.489] [               ] ProductOnClient: <ProductOnClient(clientId='w01.lab.mydomain.de', productId='alma8', installationStatus='None', actionRequest='None')>   (run-master:1744)
[6] [2022-12-20 16:00:31.490] [               ] Updating productOnClient: {'targetConfiguration': None, 'installationStatus': None, 'actionRequest': 'none', 'lastAction': None, 'actionProgress': '', 'actionResult': 'failed', 'productVersion': '4.2.0.3', 'packageVersion': '5', 'modificationTime': None, 'actionSequence': -1, 'productId': 'alma8', 'productType': 'NetbootProduct', 'clientId': 'w01.lab.mydomain.de', 'type': 'ProductOnClient'}   (run-master:1756)
[6] [2022-12-20 16:00:31.490] [               ] JSONRPC request to https://192.168.178.4:4447/rpc: ip_version=4, id=13, method=productOnClient_updateObjects, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=(10, 300)   (jsonrpc.py:449)
[7] [2022-12-20 16:00:31.509] [               ] https://192.168.178.4:4447 "POST /rpc HTTP/1.1" 200 25   (connectionpool.py:456)
[6] [2022-12-20 16:00:31.510] [               ] Got response status=200, Content-Type=application/msgpack, Content-Encoding=, duration=0.020s   (jsonrpc.py:474)
[5] [2022-12-20 16:00:31.510] [               ] EXITING   (run-master:1762)
[5] [2022-12-20 16:00:31.510] [               ] Writing log to service   (run-master:1768)
Im Backend ist leerer Ordner unter /etc/opsi/modules vorhanden.
Kann mir jemand weiterhelfen?
Benutzeravatar
j.schneider
uib-Team
Beiträge: 1789
Registriert: 29 Mai 2008, 15:14

Re: PXE-Boot: OpsiRpcError Is a directory: /etc/opsi/modules

Beitrag von j.schneider »

Die /etc/opsi/modules ist eine optionale Lizenz-Datei.
Bitte das Verzeichnis mal löschen:

Code: Alles auswählen

rmdir /etc/opsi/modules
Und dann den opsiconfd neu starten.
Degan
Beiträge: 25
Registriert: 19 Dez 2022, 09:37

Re: PXE-Boot: OpsiRpcError Is a directory: /etc/opsi/modules

Beitrag von Degan »

Hat geklappt, vielen Dank!
Antworten