erstmal zu den Basics:
- OPSI läuft auf Alma Linux
- opsiconfd: 4.2.0.261
- opsiclientd: 4.1.1.49-1 (auch noch bei 4.2.0.17-2)
- WAN Modul aktiv
Problem:
Der Rechner wurde neu aufgesetzt. Anschließend wurden ein paar Pakete verteilt und erfolgreich installiert. Anschließend wurde der Rechner umbenannt (möglicherweise schon während der Installationen). Nun hat der Client im Config Cache noch den alten Namen und kann die Einstellungen natürlich nicht an den Config Server weitergeben da von den ACL geblockt. Zudem sind die Einstellungen auf dem Configserver schon im Client mit neuem Namen eingetragen, aber die Client kann dies von seiner Seite nicht übertragen. Warum ist der Cache dann überhaupt noch da?
Was eigentlich passieren sollte:
Wenn der Client umbenannt wird, wird der Cache auch angepasst.
Bisherige Aktionen die vorgenommen wurden:
Client neu installiert. Paket Cache gelöscht.
Cache besteht noch.
Log:
Code: Alles auswählen
[5] [2022-01-31 15:21:22.464] [config cache service ] Config cache service started (CacheService.py:423)
[6] [2022-01-31 15:21:26.512] [event processing timer ] Trigger config sync to server (CacheService.py:108)
[5] [2022-01-31 15:21:27.529] [config cache service ] Cache backend was modified, starting sync to server (CacheService.py:460)
[6] [2022-01-31 15:21:27.547] [config cache service ] Starting ServiceConnectionThread, timeout is 15 seconds (OpsiService.py:180)
[5] [2022-01-31 15:21:27.555] [service connection ] Connecting to config server 'https://deployment.domain.de:4447/rpc' #1 (OpsiService.py:335)
[6] [2022-01-31 15:21:27.560] [service connection ] Connecting to service https://deployment.domain.de:4447/rpc (jsonrpc.py:508)
[6] [2022-01-31 15:21:27.565] [service connection ] JSONRPC request to https://deployment.domain.de:4447/rpc: ip_version=auto, id=1, method=backend_getInterface, Content-Type=application/json, Content-Encoding=, timeout=60 (jsonrpc.py:399)
[6] [2022-01-31 15:21:27.647] [service connection ] Got response status=200, Content-Type=application/json, Content-Encoding=lz4, duration=0.078s (jsonrpc.py:411)
[6] [2022-01-31 15:21:27.754] [service connection ] JSONRPC request to https://deployment.domain.de:4447/rpc: ip_version=auto, id=2, method=accessControl_authenticated, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=60 (jsonrpc.py:399)
[6] [2022-01-31 15:21:27.778] [service connection ] Got response status=200, Content-Type=application/msgpack, Content-Encoding=, duration=0.018s (jsonrpc.py:411)
[5] [2022-01-31 15:21:27.785] [service connection ] Connected to config server 'https://deployment.domain.de:4447/rpc' (name=opsiconfd 4.2.0.225 (uvicorn), version=[4, 2, 0, 225]) (OpsiService.py:366)
[6] [2022-01-31 15:21:28.554] [config cache service ] JSONRPC request to https://deployment.domain.de:4447/rpc: ip_version=auto, id=3, method=getDepotId, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=60 (jsonrpc.py:399)
[6] [2022-01-31 15:21:28.602] [config cache service ] Got response status=200, Content-Type=application/msgpack, Content-Encoding=, duration=0.038s (jsonrpc.py:411)
[6] [2022-01-31 15:21:28.608] [config cache service ] Setting config depot_server.master_depot_id to 'deployment.domain.de' (Config.py:444)
[6] [2022-01-31 15:21:28.612] [config cache service ] Updating config file: 'C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf' (Config.py:505)
[6] [2022-01-31 15:21:28.621] [config cache service ] No need to write config file 'C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf', config file is up to date (Config.py:571)
[6] [2022-01-31 15:21:28.626] [config cache service ] JSONRPC request to https://deployment.domain.de:4447/rpc: ip_version=auto, id=4, method=backend_getLicensingInfo, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=60 (jsonrpc.py:399)
[6] [2022-01-31 15:21:28.649] [config cache service ] Got response status=200, Content-Type=application/msgpack, Content-Encoding=, duration=0.019s (jsonrpc.py:411)
[6] [2022-01-31 15:21:28.655] [config cache service ] JSONRPC request to https://deployment.domain.de:4447/rpc: ip_version=auto, id=5, method=getDepotId, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=60 (jsonrpc.py:399)
[6] [2022-01-31 15:21:28.692] [config cache service ] Got response status=200, Content-Type=application/msgpack, Content-Encoding=, duration=0.032s (jsonrpc.py:411)
[6] [2022-01-31 15:21:28.698] [config cache service ] Setting config depot_server.master_depot_id to 'deployment.domain.de' (Config.py:444)
[6] [2022-01-31 15:21:28.703] [config cache service ] Updating config file: 'C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf' (Config.py:505)
[6] [2022-01-31 15:21:28.711] [config cache service ] No need to write config file 'C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf', config file is up to date (Config.py:571)
[5] [2022-01-31 15:21:28.715] [config cache service ] Updating master from work backend (5 modifications) (CacheBackend.py:190)
[6] [2022-01-31 15:21:28.720] [config cache service ] Getting hosts, filter: {'id': '<altername>.domain.local'} (SQL.py:1196)
[6] [2022-01-31 15:21:28.726] [config cache service ] Getting productOnClients, filter: {'productId': 'opsi-client-agent', 'productType': 'LocalbootProduct', 'clientId': '<altername>.domain.local'} (SQL.py:1770)
[6] [2022-01-31 15:21:28.733] [config cache service ] Getting productOnClients, filter: {'productId': 'opsi-winst', 'productType': 'LocalbootProduct', 'clientId': '<altername>.domain.local'} (SQL.py:1770)
[6] [2022-01-31 15:21:28.739] [config cache service ] Getting productOnClients, filter: {'productId': 'globalvpn_410', 'productType': 'LocalbootProduct', 'clientId': '<altername>.domain.local'} (SQL.py:1770)
[6] [2022-01-31 15:21:28.747] [config cache service ] Getting productOnClients, filter: {'productId': 'ocsagent', 'productType': 'LocalbootProduct', 'clientId': '<altername>.domain.local'} (SQL.py:1770)
[6] [2022-01-31 15:21:28.754] [config cache service ] JSONRPC request to https://deployment.domain.de:4447/rpc: ip_version=auto, id=6, method=productOnClient_getObjects, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=60 (jsonrpc.py:399)
[6] [2022-01-31 15:21:28.783] [config cache service ] Got response status=200, Content-Type=application/msgpack, Content-Encoding=, duration=0.025s (jsonrpc.py:411)
[6] [2022-01-31 15:21:28.789] [config cache service ] Object <ProductOnClient(clientId='<altername>.domain.local', productId='opsi-client-agent', installationStatus='installed', actionRequest='none')> marked for update (CacheBackend.py:169)
[6] [2022-01-31 15:21:28.795] [config cache service ] Object <ProductOnClient(clientId='<altername>.domain.local', productId='opsi-winst', installationStatus='installed', actionRequest='none')> marked for update (CacheBackend.py:169)
[6] [2022-01-31 15:21:28.799] [config cache service ] Object <ProductOnClient(clientId='<altername>.domain.local', productId='globalvpn_410', installationStatus='installed', actionRequest='none')> marked for update (CacheBackend.py:169)
[6] [2022-01-31 15:21:28.803] [config cache service ] Object <ProductOnClient(clientId='<altername>.domain.local', productId='ocsagent', installationStatus='not_installed', actionRequest='none')> marked for update (CacheBackend.py:169)
[6] [2022-01-31 15:21:28.808] [config cache service ] JSONRPC request to https://deployment.domain.de:4447/rpc: ip_version=auto, id=7, method=productOnClient_updateObjects, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=60 (jsonrpc.py:399)
[6] [2022-01-31 15:21:28.833] [config cache service ] Got response status=200, Content-Type=application/msgpack, Content-Encoding=, duration=0.020s (jsonrpc.py:411)
[3] [2022-01-31 15:21:28.840] [config cache service ] Failed to update objects [<ProductOnClient(clientId='<altername>.domain.local', productId='opsi-client-agent', installationStatus='installed', actionRequest='none')>, <ProductOnClient(clientId='<altername>.domain.local', productId='opsi-winst', installationStatus='installed', actionRequest='none')>, <ProductOnClient(clientId='<altername>.domain.local', productId='globalvpn_410', installationStatus='installed', actionRequest='none')>, <ProductOnClient(clientId='<altername>.domain.local', productId='ocsagent', installationStatus='not_installed', actionRequest='none')>]: Opsi rpc error: Backend permission denied error: Access to method 'productOnClient_updateObjects' denied for user '<neuername>.domain.local': Backend permission denied error: Access denied (error on server) (CacheBackend.py:185)
[3] [2022-01-31 15:21:28.845] [config cache service ] Opsi rpc error: Backend permission denied error: Access to method 'productOnClient_updateObjects' denied for user '<neuername>.domain.local': Backend permission denied error: Access denied (error on server) (CacheService.py:499)
Traceback (most recent call last):
File "opsiclientd\nonfree\CacheService.py", line 470, in _syncConfigToServer
File "opsiclientd\nonfree\CacheBackend.py", line 273, in _updateMasterFromWorkBackend
File "opsiclientd\nonfree\CacheBackend.py", line 183, in _syncModifiedObjectsWithMaster
File "<string>", line 1, in productOnClient_updateObjects
File "opsicommon\client\jsonrpc.py", line 448, in execute_rpc
opsicommon.exceptions.OpsiRpcError: Opsi rpc error: Backend permission denied error: Access to method 'productOnClient_updateObjects' denied for user '<neuername>.domain.local': Backend permission denied error: Access denied (error on server)
[3] [2022-01-31 15:21:28.857] [config cache service ] Errors occurred while syncing config to server: Opsi rpc error: Backend permission denied error: Access to method 'productOnClient_updateObjects' denied for user '<neuername>.domain.local': Backend permission denied error: Access denied (error on server) (CacheService.py:509)
[6] [2022-01-31 15:21:28.869] [config cache service ] JSONRPC request to https://deployment.domain.de:4447/rpc: ip_version=auto, id=8, method=backend_exit, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=60 (jsonrpc.py:399)
[6] [2022-01-31 15:21:28.902] [config cache service ] Got response status=200, Content-Type=application/msgpack, Content-Encoding=, duration=0.029s (jsonrpc.py:411)