[Gelöst] Problem mit opsi-package-manager nach Update auf 4.3

Antworten
achim71
Beiträge: 36
Registriert: 04 Jul 2008, 13:27

[Gelöst] Problem mit opsi-package-manager nach Update auf 4.3

Beitrag von achim71 »

Hallo OPSI Forum,

Ich habe gerade meinen OPSI Server (Debian Bookworm mit OPSI 4.2 testing) auf Version 4.3 aktualisiert.
Als nächstes wollte ich dann das neue opsi-configed paket einspielen. Hier kommt nun folgende Fehlermeldung:

Code: Alles auswählen

opsi-package-manager -i opsi-configed_4.3.0.8-1.opsi

ERROR: Failed to process command 'install': Opsi rpc error: No client id attribute defined for table PRODUCT_ON_DEPOT using ace RPCACE(method_re=re.compile('.*'), type='self', id='opsi-1-ag.ag-web.local', allowed_attributes=set(), denied_attributes=set())
Wärend dem Update gab es haufenweise MySQL Fehlermeldungen:

Code: Alles auswählen

[3] [2023-11-10 12:45:39.514] [               ] Failed to replicate object <BoolConfig(id='opsi-script.global.debug_lib', description='opsi-script.global.debug_lib', defaultValues=[False])>: (MySQLdb.ProgrammingError) (1146, "Table 'opsi.CONFIG' doesn't exist")
[SQL: LOCK TABLES `CONFIG` WRITE, `CONFIG_VALUE` WRITE]
(Background on this error at: https://sqlalche.me/e/14/f405)   (Replicator.py:336)
[3] [2023-11-10 12:45:39.521] [               ] Failed to replicate object <BoolConfig(id='opsi-script.global.debug_prog', description='opsi-script.global.debug_prog', defaultValues=[False])>: (MySQLdb.ProgrammingError) (1146, "Table 'opsi.CONFIG' doesn't exist")
[SQL: LOCK TABLES `CONFIG` WRITE, `CONFIG_VALUE` WRITE]
(Background on this error at: https://sqlalche.me/e/14/f405)   (Replicator.py:336)
[3] [2023-11-10 12:45:39.555] [               ] Failed to replicate object <UnicodeConfig(id='opsi-script.global.default_loglevel', description='opsi-script.global.default_loglevel', possibleValues=['4', '5', '6', '7', '8'], defaultValues=['7'], editable=False, multiValue=False)>: (MySQLdb.ProgrammingError) (1146, "Table 'opsi.CONFIG_VALUE' doesn't exist")
[SQL: LOCK TABLES `CONFIG` WRITE, `CONFIG_VALUE` WRITE]
opsipxeconfd benötige ich eigentlich nicht, der Dienst lässt sich aber auch nicht starten und bringt folgende Fehler:

Code: Alles auswählen

Nov 10 13:44:59 opsi-1-ag opsipxeconfd[14737]: [4] [2023-11-10 13:44:59.959] [               ] Warning ''crypt' is deprecated and slated >
Nov 10 13:45:00 opsi-1-ag opsipxeconfd[14737]: [3] [2023-11-10 13:45:00.270] [               ] Opsi rpc error: No client id attribute def>
Nov 10 13:45:00 opsi-1-ag opsipxeconfd[14737]: Traceback (most recent call last):
Nov 10 13:45:00 opsi-1-ag opsipxeconfd[14737]:   File "opsipxeconfd/__main__.py", line 22, in main
Nov 10 13:45:00 opsi-1-ag opsipxeconfd[14737]:   File "opsipxeconfd/opsipxeconfdinit.py", line 362, in __init__
Nov 10 13:45:00 opsi-1-ag opsipxeconfd[14737]:   File "opsipxeconfd/setup.py", line 177, in setup
Nov 10 13:45:00 opsi-1-ag opsipxeconfd[14737]:   File "opsipxeconfd/setup.py", line 72, in patchMenuFile
Nov 10 13:45:00 opsi-1-ag opsipxeconfd[14737]:   File "opsipxeconfd/setup.py", line 45, in getConfigsFromService
Nov 10 13:45:00 opsi-1-ag opsipxeconfd[14737]:   File "opsicommon/client/opsiservice.py", line 1203, in jsonrpc
Nov 10 13:45:00 opsi-1-ag opsipxeconfd[14737]: opsicommon.exceptions.OpsiRpcError: Opsi rpc error: No client id attribute defined for tab>
Nov 10 13:45:00 opsi-1-ag opsipxeconfd[14737]: ERROR: Opsi rpc error: No client id attribute defined for table CONFIG using ace RPCACE(me>
Nov 10 13:45:00 opsi-1-ag systemd[1]: opsipxeconfd.service: Control process exited, code=exited, status=1/FAILURE
Wenn ein Client sich mit dem OPSI Server verbindet bricht er mit folgender Fehlermeldung ab:

Code: Alles auswählen

(1649)    [5] [2023-11-10 14:05:18.227] [event processing gui_startup{installation_pending}] Config read   (Config.py:556)
(1650)    [5] [2023-11-10 14:05:18.227] [event processing gui_startup{installation_pending}] Getting config from service   (EventProcessing.py:307)
(1651)    [5] [2023-11-10 14:05:18.227] [event processing gui_startup{installation_pending}] Getting config from service   (Config.py:842)
(1652)    [6] [2023-11-10 14:05:18.227] [event processing gui_startup{installation_pending}] Using configState_getValues   (Config.py:856)
(1653)    [6] [2023-11-10 14:05:18.227] [event processing gui_startup{installation_pending}] JSONRPC request to https://192.168.100.160:4447: id='649c137d-b838-48d3-a877-6e38ffbce111', method=configState_getValues, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=300.0   (opsiservice.py:1138)
(1654)    [6] [2023-11-10 14:05:18.258] [event processing gui_startup{installation_pending}] Got response status=200, Content-Type=application/msgpack, Content-Encoding=, duration=0.031s   (opsiservice.py:1160)
(1655)    [3] [2023-11-10 14:05:18.258] [event processing gui_startup{installation_pending}] Failed to get config from service: Opsi rpc error: No client id attribute defined for table CONFIG using ace RPCACE(method_re=re.compile('.*'), type='self', id='w10-ag-admin.ag-web.local', allowed_attributes=set(), denied_attributes=set())   (EventProcessing.py:324)
Über Ratschläge wie ich das in den Griff bekomme würde ich mich freuen.

Vor dem OPSI Update hatte ich alle Debian Pakete aktualisiert und auf den Clients den aktuelle opsi-client-agent+opsi-script installiert.
Der Healtcheck brachte danach nur ein paar Warnungen wegen veralteter Netboot Produkte.

Ein Backup via opsi-backup create habe ich erstellt. Würde es helfen den OPSI Server (4.3) nochmal neu aufzusetzen und dann das Backup (4.2) einzuspielen?

LG
Achim Gottinger
Zuletzt geändert von achim71 am 10 Nov 2023, 14:18, insgesamt 1-mal geändert.
achim71
Beiträge: 36
Registriert: 04 Jul 2008, 13:27

Re: Problem mit opsi-package-manager nach Update auf 4.3

Beitrag von achim71 »

Das Problem war im Bereich Freier Support wohl auch schon gemeldet worden. Auch bei mir steckte der Fehler in der /etc/opsi/backendManager/acl.conf
Antworten