Update opsi-client-agent auf 4.2.0.25-1 schlägt fehl (inkl. Lösung)

Antworten
kinzi
Beiträge: 166
Registriert: 27 Okt 2010, 11:38

Update opsi-client-agent auf 4.2.0.25-1 schlägt fehl (inkl. Lösung)

Beitrag von kinzi »

Hello,

ich hatte bei drei Depots das Problem, dass sich das Paket opsi-client-agent_4.2.0.25-1 nicht installieren ließ, der Fehler war:

Code: Alles auswählen

opsi-package-manager -d depo01.depot.local  -i opsi-client-agent_4.2.0.25-1.opsi
Ein Fehler ist aufgetreten:
   Fehler beim Bearbeiten von Install of package(s) /var/lib/opsi/workbench/opsi-client-agent_4.2.0.25-1.opsi on depot 'depot01.depot.local':
      Opsi rpc error: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.25-1.opsi' on depot 'depot01.depot.local': Failed to execute package script 'preinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.2.0.25-1.opsi': Command '/tmp/.opsi.unpack.HaL8E/OPSI/preinst' failed (1):
starting preinst (python)
Traceback (most recent call last):
  File "opsiutils/opsipython.py", line 65, in main
  File "opsiutils/opsipython.py", line 44, in run_script
  File "<string>", line 42, in <module>
AttributeError: 'BackendManager' object has no attribute 'getClientsOnDepot'
 (error on server)

ERROR: Failed to process command 'install': 1 errors during the processing of tasks.
Die Installation anderer Produkte klappte aber. Neu-registrieren des Depots und "--init-current-config" führten nicht zum Ziel. Suchen nach dem Fehler warf keine brauchbaren Ergebnisse aus.

Schließlich stelle sich heraus, dass beim Update des Depots auf OPSI 4.2 offenbar die *.conf-Files im Verzeichnis

Code: Alles auswählen

/etc/opsi/backendManager/extend.d/
nicht ersetzt wurden. Vermutlich habe ich die Standard-Option "behalten" ausgewählt. WIMRE gibt es da einen Hinweis in der Migrationsanleitung, dass man das nicht machen soll ... :roll:

Ich habe also die neuen Dateien, die als *.dpkg-dist (oder so ähnlich) ins Verzeichnis kopiert wurden umbenannt, und jetzt klappt das Update.

Vielleicht stolpert da ja mal jemand drüber ...

Gruß
kinzi
Antworten