Seite 1 von 1

[Gelöst] OPSI-Client-Agent Paket funktioniert nicht mehr

Verfasst: 26 Jan 2022, 16:10
von magicalUnicorn
Moin Zusammen,

ich habe grade unseren Zweiten OPSI-Server auf 4.2 aktualisiert und nach einigen Kopfschmerzen mit MySQL und dem Restore der Backups (die allerdings mangelnder Doku unsererseits geschuldet waren), habe ich alles wieder soweit, dass alle Clients angezeigt werden und auch wieder Pakete installieren können.

Als nächsten Schritt hab ich dann mit "opsi-package-manager -v update" die OPSI-Pakete aktualisiert. Die Aktualisierung verlief soweit auch erfolgreich.
"opsi-package-manager --list | grep opsi" liefert folgendes:

Code: Alles auswählen

   opsi-adminutils                         4.0.3-1                   some administration tools (not only) for opsi                                                                                               
   opsi-client-agent                       4.2.0.17-2                opsi.org client agent                                                                                                                       
   opsi-client-kiosk                       4.1.1.11-10               Opsi Client Kiosk                                                                                                                           
   opsi-configed                           4.1.9.11.1-1              opsi configed                                                                                                                               
   opsi-logviewer                          3.1-9                     opsi logfile viewer                                                                                                                         
   opsi-script                             4.12.4.33-3               script                                                                                                                                      
   opsi-set-win-uac                        1.0-2                     opsi set Windows UAC                                                                                                                        
   opsi-setup-detector                     4.2.0.8-2                 opsi-setup-detector                                                                                                                         
   opsi-uefi-netboot                       4.2.0.0-1                 opsi-uefi-netboot                                                                                                                           
   opsi-winpe                              4.1.0-1                   WinPE patching tool                                                                                                                         
   opsi-winst                              4.12.4.33-3               winst    
Im Configed wird auch die richtige Version angezeigt. Allerdings sind alle Produkt-Properties rot und beim hovern wird eingeblendet "Server kennt die Eigenschaft nicht". Das hat mich bereits sehr stutzig gemacht, aber ich hab trotzdem mal auf meinem Test-Client probiert den Client-Agent zu aktualisieren.Das schlägt dann mit folgender Meldung fehl:

Code: Alles auswählen

 Warning: file not found :o:\opsi-client-agent\setup.opsiscript -retrying
Mir ist da aufgefallen, dass das setup.opsiscript gar nicht direkt im opsi-client-agent Ordner liegt, sondern weiter darunter unter "opsi-client-agent\files\opsi." Kann natürlich gut sein, dass das nichts miteinander zu tun hat, aber ich wollte es trotzdem mal erwähnt haben.

Hatte das jemand schonmal so? MIt der Suche bin ich leider nicht fündig geworden.

VIele Grüße

Re: OPSI-Client-Agent Paket funktioniert nicht mehr

Verfasst: 26 Jan 2022, 16:25
von andré
Klingt so, als wären beim Wiederherstellen des Backups die Daten im Depot nicht richtig hingelegt worden.

Kannst ja mal probieren, die Pakete neu zu installieren.

Code: Alles auswählen

opsi-package-manager -i /var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi

Re: OPSI-Client-Agent Paket funktioniert nicht mehr

Verfasst: 26 Jan 2022, 16:42
von magicalUnicorn
Das gab als Resultat

Code: Alles auswählen

"Product 'opsi-client-agent' currently locked on depot 'denkdirnix.ika.rwth-aachen.de'" 
Unter /var/lib/opsi/depot gab es dann auch "opsi-client-agent.tmp". Das zu löschen hat jedoch auch nichts verändert. Ich habs dann noch mit

"opsi-admin -d method unlock Product opsi-client-agent" probiert, da dauert die Installation jetzt aber einfach endlos lange (mittlerweile 10 min) und es tut sich nichts.

Ich hab den Client-Agent nicht nach dem wiederherstellen des Backups geprüft, also weiß ich nicht ob die alte 4.1 Version schon den selben Fehler hatte, oder das Fehler erst mit dem Update des Pakets kam

Re: OPSI-Client-Agent Paket funktioniert nicht mehr

Verfasst: 27 Jan 2022, 08:38
von ThomasT
Hallo, kannst du dem opsi-package-manager ein -vvv mitgeben, dann sagt er etwas mehr....

Re: OPSI-Client-Agent Paket funktioniert nicht mehr

Verfasst: 27 Jan 2022, 08:59
von magicalUnicorn
Das Paket war erst wieder locked, ich hab es mal entsprechend wieder entsperrt. Mit -vvv wird folgendes ausgegeben:

Code: Alles auswählen

[6] [2022-01-27 08:56:25.804] [               ] * BackendManager is creating BackendDispatcher   (_Manager.py:168)
[6] [2022-01-27 08:56:25.804] [               ] Backend context was set to <BackendManager()>   (Backend.py:178)
[6] [2022-01-27 08:56:25.805] [               ] Loading dispatch config file '/etc/opsi/backendManager/dispatch.conf'   (Dispatcher.py:58)
[6] [2022-01-27 08:56:25.806] [               ] Loading backend config '/etc/opsi/backends/opsipxeconfd.conf'   (Dispatcher.py:120)
[6] [2022-01-27 08:56:25.808] [               ] Backend context was set to <BackendManager()>   (Backend.py:178)
[6] [2022-01-27 08:56:25.809] [               ] Loading backend config '/etc/opsi/backends/mysql.conf'   (Dispatcher.py:120)
[6] [2022-01-27 08:56:26.022] [               ] Backend context was set to <BackendManager()>   (Backend.py:178)
[6] [2022-01-27 08:56:26.038] [               ] Connecting to mysql://opsi:***secret***@127.0.0.1/opsi?charset=utf8mb4   (MySQL.py:149)
[6] [2022-01-27 08:56:26.072] [               ] Connected to server version: 10.5.9-MariaDB   (MySQL.py:172)
[6] [2022-01-27 08:56:26.076] [               ] Verifying modules file signature   (MySQL.py:257)
[6] [2022-01-27 08:56:26.077] [               ] Dispatcher backends: ['opsipxeconfd', 'mysql']   (Dispatcher.py:141)
[6] [2022-01-27 08:56:26.130] [               ] Getting hosts, filter: {'id': '*fqdn*'}   (SQL.py:1180)
[6] [2022-01-27 08:56:26.133] [               ] * BackendManager is creating ExtendedConfigDataBackend   (_Manager.py:176)
[6] [2022-01-27 08:56:26.133] [               ] Setting context to backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile='/etc/opsi/backendManager/dispatch.conf', context='<BackendManager()>')>)>   (Extended.py:89)
[6] [2022-01-27 08:56:26.171] [               ] * BackendManager is creating HostControlBackend   (_Manager.py:186)
[6] [2022-01-27 08:56:26.171] [               ] Setting context to backend <HostControlBackend()>   (Extended.py:89)
[6] [2022-01-27 08:56:26.221] [               ] * BackendManager is creating HostControlSafeBackend   (_Manager.py:198)
[6] [2022-01-27 08:56:26.222] [               ] Setting context to backend <HostControlSafeBackend()>   (Extended.py:89)
[6] [2022-01-27 08:56:26.304] [               ] * BackendManager is creating BackendExtender   (_Manager.py:214)
[6] [2022-01-27 08:56:26.304] [               ] Setting context to backend <BackendExtender()>   (Extended.py:89)
[6] [2022-01-27 08:56:26.358] [               ] Reading config file '/etc/opsi/backendManager/extend.d/10_opsi.conf'   (Extender.py:77)
[6] [2022-01-27 08:56:26.360] [               ] Reading config file '/etc/opsi/backendManager/extend.d/10_wim.conf'   (Extender.py:77)
[6] [2022-01-27 08:56:26.362] [               ] Reading config file '/etc/opsi/backendManager/extend.d/20_easy.conf'   (Extender.py:77)
[6] [2022-01-27 08:56:26.364] [               ] Reading config file '/etc/opsi/backendManager/extend.d/20_legacy.conf'   (Extender.py:77)
[6] [2022-01-27 08:56:26.392] [               ] Reading config file '/etc/opsi/backendManager/extend.d/30_kiosk.conf'   (Extender.py:77)
[6] [2022-01-27 08:56:26.399] [               ] Reading config file '/etc/opsi/backendManager/extend.d/30_sshcommands.conf'   (Extender.py:77)
[6] [2022-01-27 08:56:26.408] [               ] Reading config file '/etc/opsi/backendManager/extend.d/40_admin_tasks.conf'   (Extender.py:77)
[6] [2022-01-27 08:56:26.417] [               ] Reading config file '/etc/opsi/backendManager/extend.d/40_groupActions.conf'   (Extender.py:77)
[6] [2022-01-27 08:56:26.426] [               ] Reading config file '/etc/opsi/backendManager/extend.d/45_deprecated.conf'   (Extender.py:77)
[6] [2022-01-27 08:56:26.435] [               ] Reading config file '/etc/opsi/backendManager/extend.d/70_dynamic_depot.conf'   (Extender.py:77)
[6] [2022-01-27 08:56:26.443] [               ] Reading config file '/etc/opsi/backendManager/extend.d/70_wan.conf'   (Extender.py:77)
[6] [2022-01-27 08:56:26.540] [               ] Getting hosts, filter: {'type': 'OpsiDepotserver'}   (SQL.py:1180)
[6] [2022-01-27 08:56:26.544] [               ] OpsiPackageManager initiated   (opsipackagemanager.py:681)
[6] [2022-01-27 08:56:26.545] [               ] Getting meta data from package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi'   (Product.py:191)
[6] [2022-01-27 08:56:26.560] [               ] Executing: /usr/bin/cat "/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi" | /usr/bin/cpio --quiet --extract --list   (Posix.py:913)
[6] [2022-01-27 08:56:26.564] [               ] Using encoding 'UTF-8'   (Posix.py:946)
[6] [2022-01-27 08:56:27.497] [               ] Executing: /usr/bin/cat "/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi" | /usr/bin/cpio --quiet --extract --make-directories --unconditional --preserve-modification-time --verbose --no-preserve-owner "OPSI*"   (__init__.py:79)
[6] [2022-01-27 08:56:28.457] [               ] Exit code: 0   (__init__.py:118)
[6] [2022-01-27 08:56:28.467] [               ] Executing: pigz --version   (Posix.py:913)
[6] [2022-01-27 08:56:28.471] [               ] Using encoding 'UTF-8'   (Posix.py:946)
[6] [2022-01-27 08:56:28.477] [               ] Executing: /usr/bin/pigz --stdout --decompress "/tmp/.opsi.unpack.m8Vam/OPSI/OPSI.cpio.gz" | /usr/bin/cpio --quiet --extract --list   (Posix.py:913)
[6] [2022-01-27 08:56:28.480] [               ] Using encoding 'UTF-8'   (Posix.py:946)
[6] [2022-01-27 08:56:28.486] [               ] Executing: /usr/bin/pigz --stdout --decompress "/tmp/.opsi.unpack.m8Vam/OPSI/OPSI.cpio.gz" | /usr/bin/cpio --quiet --extract --make-directories --unconditional --preserve-modification-time --verbose --no-preserve-owner    (__init__.py:79)
[6] [2022-01-27 08:56:28.494] [               ] Exit code: 0   (__init__.py:118)
[6] [2022-01-27 08:56:28.497] [               ] Checking product locks   (opsipackagemanager.py:1180)
[6] [2022-01-27 08:56:28.503] [               ] Starting task queue 'Install of package(s) /var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi on depot '*fqdn*''   (opsipackagemanager.py:1307)
[6] [2022-01-27 08:56:28.505] [               ] Getting hosts, filter: {'type': 'OpsiDepotserver', 'id': '*fqdn*'}   (SQL.py:1180)
[6] [2022-01-27 08:56:28.509] [               ] Path to package file on depot '*fqdn*' is '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi'   (opsipackagemanager.py:1328)
[5] [2022-01-27 08:56:28.510] [               ] Installing package 'opsi-client-agent_4.2.0.17-2.opsi' on depot '*fqdn*'   (opsipackagemanager.py:1340)
[6] [2022-01-27 08:56:28.510] [               ] Getting productPropertyStates, filter: {'productId': 'opsi-client-agent', 'objectId': '*fqdn*'}   (SQL.py:1796)
[6] [2022-01-27 08:56:28.515] [               ] Getting hosts, filter: {'type': 'OpsiDepotserver', 'id': '*fqdn*'}   (SQL.py:1180)
[6] [2022-01-27 08:56:28.519] [               ] Using proxy settings: http_proxy='None', https_proxy='None', no_proxy='ip6-localhost,127.0.0.1,::1,localhost'   (jsonrpc.py:184)
[6] [2022-01-27 08:56:28.520] [               ] Connecting to service https://*fqdn*:4447/rpc   (jsonrpc.py:514)
[6] [2022-01-27 08:56:28.520] [               ] JSONRPC request to https://*fqdn*:4447/rpc: ip_version=auto, id=1, method=backend_getInterface, Content-Type=application/json, Content-Encoding=, timeout=300   (jsonrpc.py:402)
[6] [2022-01-27 08:56:28.598] [               ] Got response status=200, Content-Type=application/json, Content-Encoding=lz4, duration=0.078s   (jsonrpc.py:415)
[6] [2022-01-27 08:56:28.707] [               ] JSONRPC request to https://*fqdn*:4447/rpc: ip_version=auto, id=2, method=depot_installPackage, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=3600   (jsonrpc.py:402)
[6] [2022-01-27 08:56:30.881] [               ] Got response status=200, Content-Type=application/msgpack, Content-Encoding=, duration=2.173s   (jsonrpc.py:415)
[3] [2022-01-27 08:56:30.882] [               ] Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi' on depot '*fqdn*': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi': Command '/tmp/.opsi.unpack.d7bIY/OPSI/preinst' failed (1):
Temporary directory /var/lib/opsi/depot/opsi-client-agent/../opsi-client-agent.tmp already exist, aborting!
 (error on server)   (opsipackagemanager.py:1417)
[3] [2022-01-27 08:56:30.882] [               ] Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi' on depot '*fqdn*': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi': Command '/tmp/.opsi.unpack.d7bIY/OPSI/preinst' failed (1):
Temporary directory /var/lib/opsi/depot/opsi-client-agent/../opsi-client-agent.tmp already exist, aborting!
 (error on server)   (opsipackagemanager.py:96)
Traceback (most recent call last):
  File "opsiutils/opsipackagemanager.py", line 94, in start
  File "opsiutils/opsipackagemanager.py", line 1376, in installPackage
  File "<string>", line 1, in depot_installPackage
  File "opsicommon/client/jsonrpc.py", line 454, in execute_rpc
opsicommon.exceptions.OpsiRpcError: Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi' on depot '*fqdn*': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi': Command '/tmp/.opsi.unpack.d7bIY/OPSI/preinst' failed (1):
Temporary directory /var/lib/opsi/depot/opsi-client-agent/../opsi-client-agent.tmp already exist, aborting!
 (error on server)
[3] [2022-01-27 08:56:30.883] [               ] Task 'Install of package 'opsi-client-agent_4.2.0.17-2.opsi' on depot '*fqdn*'' failed: Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi' on depot '*fqdn*': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi': Command '/tmp/.opsi.unpack.d7bIY/OPSI/preinst' failed (1):
Temporary directory /var/lib/opsi/depot/opsi-client-agent/../opsi-client-agent.tmp already exist, aborting!
 (error on server)   (opsipackagemanager.py:633)
[6] [2022-01-27 08:56:32.512] [               ] Cleaning up   (opsipackagemanager.py:694)
[6] [2022-01-27 08:56:32.512] [               ] Cleaning up   (Product.py:60)
Ein Fehler ist aufgetreten:
[3] [2022-01-27 08:56:32.513] [               ] Failure while processing Install of package(s) /var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi on depot '*fqdn*':   (opsipackagemanager.py:1678)
   Fehler beim Bearbeiten von Install of package(s) /var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi on depot '*fqdn*':
[3] [2022-01-27 08:56:32.514] [               ]       Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi' on depot '*fqdn*': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi': Command '/tmp/.opsi.unpack.d7bIY/OPSI/preinst' failed (1):
Temporary directory /var/lib/opsi/depot/opsi-client-agent/../opsi-client-agent.tmp already exist, aborting!
 (error on server)   (opsipackagemanager.py:1681)
      Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi' on depot '*fqdn*': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi': Command '/tmp/.opsi.unpack.d7bIY/OPSI/preinst' failed (1):
Temporary directory /var/lib/opsi/depot/opsi-client-agent/../opsi-client-agent.tmp already exist, aborting!
 (error on server)
[3] [2022-01-27 08:56:32.514] [               ] 1 errors during the processing of tasks.   (opsipackagemanager.py:1643)
Traceback (most recent call last):
  File "opsiutils/opsipackagemanager.py", line 1641, in __init__
  File "opsiutils/opsipackagemanager.py", line 1684, in processCommand
opsiutils.opsipackagemanager.TaskError: 1 errors during the processing of tasks.
[3] [2022-01-27 08:56:32.514] [               ] Failed to process command 'install': 1 errors during the processing of tasks.   (opsipackagemanager.py:2109)
Traceback (most recent call last):
  File "opsiutils/opsipackagemanager.py", line 1641, in __init__
  File "opsiutils/opsipackagemanager.py", line 1684, in processCommand
opsiutils.opsipackagemanager.TaskError: 1 errors during the processing of tasks.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "opsiutils/opsipackagemanager.py", line 2105, in main
  File "opsiutils/opsipackagemanager.py", line 1644, in __init__
RuntimeError: Failed to process command 'install': 1 errors during the processing of tasks.

ERROR: Failed to process command 'install': 1 errors during the processing of tasks.
(Edit) Wenn ich den entsprechenden .tmp Ordner lösche hängt das ganze für einige Minuten und es wird insgesammt folgendes Ausgegeben:

Code: Alles auswählen

[6] [2022-01-27 09:00:25.068] [               ] * BackendManager is creating BackendDispatcher   (_Manager.py:168)
[6] [2022-01-27 09:00:25.068] [               ] Backend context was set to <BackendManager()>   (Backend.py:178)
[6] [2022-01-27 09:00:25.068] [               ] Loading dispatch config file '/etc/opsi/backendManager/dispatch.conf'   (Dispatcher.py:58)
[6] [2022-01-27 09:00:25.070] [               ] Loading backend config '/etc/opsi/backends/mysql.conf'   (Dispatcher.py:120)
[6] [2022-01-27 09:00:25.281] [               ] Backend context was set to <BackendManager()>   (Backend.py:178)
[6] [2022-01-27 09:00:25.297] [               ] Connecting to mysql://opsi:***secret***@127.0.0.1/opsi?charset=utf8mb4   (MySQL.py:149)
[6] [2022-01-27 09:00:25.332] [               ] Connected to server version: 10.5.9-MariaDB   (MySQL.py:172)
[6] [2022-01-27 09:00:25.336] [               ] Verifying modules file signature   (MySQL.py:257)
[6] [2022-01-27 09:00:25.337] [               ] Loading backend config '/etc/opsi/backends/opsipxeconfd.conf'   (Dispatcher.py:120)
[6] [2022-01-27 09:00:25.339] [               ] Backend context was set to <BackendManager()>   (Backend.py:178)
[6] [2022-01-27 09:00:25.340] [               ] Dispatcher backends: ['mysql', 'opsipxeconfd']   (Dispatcher.py:141)
[6] [2022-01-27 09:00:25.393] [               ] Getting hosts, filter: {'id': 'denkdirnix.ika.rwth-aachen.de'}   (SQL.py:1180)
[6] [2022-01-27 09:00:25.397] [               ] * BackendManager is creating ExtendedConfigDataBackend   (_Manager.py:176)
[6] [2022-01-27 09:00:25.398] [               ] Setting context to backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile='/etc/opsi/backendManager/dispatch.conf', context='<BackendManager()>')>)>   (Extended.py:89)
[6] [2022-01-27 09:00:25.435] [               ] * BackendManager is creating HostControlBackend   (_Manager.py:186)
[6] [2022-01-27 09:00:25.435] [               ] Setting context to backend <HostControlBackend()>   (Extended.py:89)
[6] [2022-01-27 09:00:25.518] [               ] * BackendManager is creating HostControlSafeBackend   (_Manager.py:198)
[6] [2022-01-27 09:00:25.518] [               ] Setting context to backend <HostControlSafeBackend()>   (Extended.py:89)
[6] [2022-01-27 09:00:25.568] [               ] * BackendManager is creating BackendExtender   (_Manager.py:214)
[6] [2022-01-27 09:00:25.568] [               ] Setting context to backend <BackendExtender()>   (Extended.py:89)
[6] [2022-01-27 09:00:25.623] [               ] Reading config file '/etc/opsi/backendManager/extend.d/10_opsi.conf'   (Extender.py:77)
[6] [2022-01-27 09:00:25.625] [               ] Reading config file '/etc/opsi/backendManager/extend.d/10_wim.conf'   (Extender.py:77)
[6] [2022-01-27 09:00:25.627] [               ] Reading config file '/etc/opsi/backendManager/extend.d/20_easy.conf'   (Extender.py:77)
[6] [2022-01-27 09:00:25.628] [               ] Reading config file '/etc/opsi/backendManager/extend.d/20_legacy.conf'   (Extender.py:77)
[6] [2022-01-27 09:00:25.656] [               ] Reading config file '/etc/opsi/backendManager/extend.d/30_kiosk.conf'   (Extender.py:77)
[6] [2022-01-27 09:00:25.663] [               ] Reading config file '/etc/opsi/backendManager/extend.d/30_sshcommands.conf'   (Extender.py:77)
[6] [2022-01-27 09:00:25.673] [               ] Reading config file '/etc/opsi/backendManager/extend.d/40_admin_tasks.conf'   (Extender.py:77)
[6] [2022-01-27 09:00:25.682] [               ] Reading config file '/etc/opsi/backendManager/extend.d/40_groupActions.conf'   (Extender.py:77)
[6] [2022-01-27 09:00:25.691] [               ] Reading config file '/etc/opsi/backendManager/extend.d/45_deprecated.conf'   (Extender.py:77)
[6] [2022-01-27 09:00:25.700] [               ] Reading config file '/etc/opsi/backendManager/extend.d/70_dynamic_depot.conf'   (Extender.py:77)
[6] [2022-01-27 09:00:25.708] [               ] Reading config file '/etc/opsi/backendManager/extend.d/70_wan.conf'   (Extender.py:77)
[6] [2022-01-27 09:00:25.804] [               ] Getting hosts, filter: {'type': 'OpsiDepotserver'}   (SQL.py:1180)
[6] [2022-01-27 09:00:25.809] [               ] OpsiPackageManager initiated   (opsipackagemanager.py:681)
[6] [2022-01-27 09:00:25.809] [               ] Getting meta data from package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi'   (Product.py:191)
[6] [2022-01-27 09:00:25.824] [               ] Executing: /usr/bin/cat "/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi" | /usr/bin/cpio --quiet --extract --list   (Posix.py:913)
[6] [2022-01-27 09:00:25.827] [               ] Using encoding 'UTF-8'   (Posix.py:946)
[6] [2022-01-27 09:00:26.770] [               ] Executing: /usr/bin/cat "/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi" | /usr/bin/cpio --quiet --extract --make-directories --unconditional --preserve-modification-time --verbose --no-preserve-owner "OPSI*"   (__init__.py:79)
[6] [2022-01-27 09:00:27.728] [               ] Exit code: 0   (__init__.py:118)
[6] [2022-01-27 09:00:27.737] [               ] Executing: pigz --version   (Posix.py:913)
[6] [2022-01-27 09:00:27.741] [               ] Using encoding 'UTF-8'   (Posix.py:946)
[6] [2022-01-27 09:00:27.746] [               ] Executing: /usr/bin/pigz --stdout --decompress "/tmp/.opsi.unpack.wjg1M/OPSI/OPSI.cpio.gz" | /usr/bin/cpio --quiet --extract --list   (Posix.py:913)
[6] [2022-01-27 09:00:27.750] [               ] Using encoding 'UTF-8'   (Posix.py:946)
[6] [2022-01-27 09:00:27.757] [               ] Executing: /usr/bin/pigz --stdout --decompress "/tmp/.opsi.unpack.wjg1M/OPSI/OPSI.cpio.gz" | /usr/bin/cpio --quiet --extract --make-directories --unconditional --preserve-modification-time --verbose --no-preserve-owner    (__init__.py:79)
[6] [2022-01-27 09:00:27.765] [               ] Exit code: 0   (__init__.py:118)
[6] [2022-01-27 09:00:27.769] [               ] Checking product locks   (opsipackagemanager.py:1180)
[6] [2022-01-27 09:00:27.775] [               ] Starting task queue 'Install of package(s) /var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi on depot 'denkdirnix.ika.rwth-aachen.de''   (opsipackagemanager.py:1307)
[6] [2022-01-27 09:00:27.777] [               ] Getting hosts, filter: {'type': 'OpsiDepotserver', 'id': 'denkdirnix.ika.rwth-aachen.de'}   (SQL.py:1180)
[6] [2022-01-27 09:00:27.781] [               ] Path to package file on depot 'denkdirnix.ika.rwth-aachen.de' is '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi'   (opsipackagemanager.py:1328)
[5] [2022-01-27 09:00:27.781] [               ] Installing package 'opsi-client-agent_4.2.0.17-2.opsi' on depot 'denkdirnix.ika.rwth-aachen.de'   (opsipackagemanager.py:1340)
[6] [2022-01-27 09:00:27.781] [               ] Getting productPropertyStates, filter: {'productId': 'opsi-client-agent', 'objectId': 'denkdirnix.ika.rwth-aachen.de'}   (SQL.py:1796)
[6] [2022-01-27 09:00:27.788] [               ] Getting hosts, filter: {'type': 'OpsiDepotserver', 'id': 'denkdirnix.ika.rwth-aachen.de'}   (SQL.py:1180)
[6] [2022-01-27 09:00:27.793] [               ] Using proxy settings: http_proxy='None', https_proxy='None', no_proxy='::1,localhost,127.0.0.1,ip6-localhost'   (jsonrpc.py:184)
[6] [2022-01-27 09:00:27.793] [               ] Connecting to service https://denkdirnix.ika.rwth-aachen.de:4447/rpc   (jsonrpc.py:514)
[6] [2022-01-27 09:00:27.793] [               ] JSONRPC request to https://denkdirnix.ika.rwth-aachen.de:4447/rpc: ip_version=auto, id=1, method=backend_getInterface, Content-Type=application/json, Content-Encoding=, timeout=300   (jsonrpc.py:402)
[6] [2022-01-27 09:00:27.869] [               ] Got response status=200, Content-Type=application/json, Content-Encoding=lz4, duration=0.075s   (jsonrpc.py:415)
[6] [2022-01-27 09:00:27.981] [               ] JSONRPC request to https://denkdirnix.ika.rwth-aachen.de:4447/rpc: ip_version=auto, id=2, method=depot_installPackage, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=3600   (jsonrpc.py:402)
[6] [2022-01-27 09:10:29.929] [               ] Got response status=200, Content-Type=application/msgpack, Content-Encoding=, duration=601.948s   (jsonrpc.py:415)
[3] [2022-01-27 09:10:29.930] [               ] Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi' on depot 'denkdirnix.ika.rwth-aachen.de': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi': Command '/tmp/.opsi.unpack.R01Uz/OPSI/preinst' timed out atfer 600.0003042221069 seconds (error on server)   (opsipackagemanager.py:1417)
[3] [2022-01-27 09:10:29.930] [               ] Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi' on depot 'denkdirnix.ika.rwth-aachen.de': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi': Command '/tmp/.opsi.unpack.R01Uz/OPSI/preinst' timed out atfer 600.0003042221069 seconds (error on server)   (opsipackagemanager.py:96)
Traceback (most recent call last):
  File "opsiutils/opsipackagemanager.py", line 94, in start
  File "opsiutils/opsipackagemanager.py", line 1376, in installPackage
  File "<string>", line 1, in depot_installPackage
  File "opsicommon/client/jsonrpc.py", line 454, in execute_rpc
opsicommon.exceptions.OpsiRpcError: Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi' on depot 'denkdirnix.ika.rwth-aachen.de': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi': Command '/tmp/.opsi.unpack.R01Uz/OPSI/preinst' timed out atfer 600.0003042221069 seconds (error on server)
[3] [2022-01-27 09:10:29.932] [               ] Task 'Install of package 'opsi-client-agent_4.2.0.17-2.opsi' on depot 'denkdirnix.ika.rwth-aachen.de'' failed: Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi' on depot 'denkdirnix.ika.rwth-aachen.de': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi': Command '/tmp/.opsi.unpack.R01Uz/OPSI/preinst' timed out atfer 600.0003042221069 seconds (error on server)   (opsipackagemanager.py:633)
[6] [2022-01-27 09:10:31.365] [               ] Cleaning up   (opsipackagemanager.py:694)
[6] [2022-01-27 09:10:31.366] [               ] Cleaning up   (Product.py:60)
Ein Fehler ist aufgetreten:
[3] [2022-01-27 09:10:31.368] [               ] Failure while processing Install of package(s) /var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi on depot 'denkdirnix.ika.rwth-aachen.de':   (opsipackagemanager.py:1678)
   Fehler beim Bearbeiten von Install of package(s) /var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi on depot 'denkdirnix.ika.rwth-aachen.de':
[3] [2022-01-27 09:10:31.368] [               ]       Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi' on depot 'denkdirnix.ika.rwth-aachen.de': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi': Command '/tmp/.opsi.unpack.R01Uz/OPSI/preinst' timed out atfer 600.0003042221069 seconds (error on server)   (opsipackagemanager.py:1681)
      Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi' on depot 'denkdirnix.ika.rwth-aachen.de': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.17-2.opsi': Command '/tmp/.opsi.unpack.R01Uz/OPSI/preinst' timed out atfer 600.0003042221069 seconds (error on server)
[3] [2022-01-27 09:10:31.369] [               ] 1 errors during the processing of tasks.   (opsipackagemanager.py:1643)
Traceback (most recent call last):
  File "opsiutils/opsipackagemanager.py", line 1641, in __init__
  File "opsiutils/opsipackagemanager.py", line 1684, in processCommand
opsiutils.opsipackagemanager.TaskError: 1 errors during the processing of tasks.
[3] [2022-01-27 09:10:31.369] [               ] Failed to process command 'install': 1 errors during the processing of tasks.   (opsipackagemanager.py:2109)
Traceback (most recent call last):
  File "opsiutils/opsipackagemanager.py", line 1641, in __init__
  File "opsiutils/opsipackagemanager.py", line 1684, in processCommand
opsiutils.opsipackagemanager.TaskError: 1 errors during the processing of tasks.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "opsiutils/opsipackagemanager.py", line 2105, in main
  File "opsiutils/opsipackagemanager.py", line 1644, in __init__
RuntimeError: Failed to process command 'install': 1 errors during the processing of tasks.

ERROR: Failed to process command 'install': 1 errors during the processing of tasks.


Re: OPSI-Client-Agent Paket funktioniert nicht mehr

Verfasst: 27 Jan 2022, 14:32
von magicalUnicorn
Hab das Proble jetzt gelöst. Mir war aufgefallen, dass unter /var/lib/opsi/depot/opsi-client-agent noch teilweise alte Dateien vom opsi-client-agent in Version 4.1 lagen. Ich hab das Paket dann mal über den opsi-package-manager komplett deinstalliert und die danach verbliebenen Dateien händisch gelöscht.
Danach das Paket wieder manuell installiert und jetzt klappt es wieder problemlos. Manchmal kann es so einfach sein :)