windows10-upgrade Opsi Paket Update Problem

Antworten
SimonHSG
Beiträge: 25
Registriert: 17 Jul 2018, 11:37

windows10-upgrade Opsi Paket Update Problem

Beitrag von SimonHSG »

Hallo Zusammen,

mir ist ein kleines Problem bei dem Paket(windows10-upgrade) aufgefallen.
ich habe heute die Version 20.09-1 auf meinem Opsi Server aktualisiert. Davor war die Version 20.04.-1 drauf.

Nun hat die Aktualisierung leider nicht funktioniert. Es liegt daran, da ich den "installfiles" Ordner als Symlink (ln -s ../../win10-x64/installfiles installfiles) hinterlegt habe. Dieser zeigt auf den installfiles Ordner im Opsi Paket von "win10-x64". Dies hat auch immer einwandfrei funktioniert, aber seit der Umstellung mit dem installfiles Ordner in localsetup habe ich das Problem(seit 20.04-1 denke ich) mit dem Update von dem Paket.

Die Installation auf den Clients an sich funktioniert einwandfrei, nur wenn das Paket ein Update bekommt, kommt es zu dem Fehler. Erst wenn ich händisch den Symlink lösche und nach dem Update wieder hinzufüge funktioniert alles wieder.

Bin mir nicht sicher, ob das so machbar/gewünscht ist. Ich habe gesehen, dass es mit dem opsi-client-agent genauso gemacht wird.

Hier mal das Log von dem Update dazu:

Code: Alles auswählen

Installing package file '/var/lib/opsi/repository/windows10-upgrade_20.09-1.opsi' on depot 'opsi-server'
Locking product 'windows10-upgrade' on depot 'opsi-server'
Running package script 'preinst'
Running package script 'postinst'
Traceback:
  File "/usr/lib/python2.7/dist-packages/OPSI/Util/Product.py", line 445, in _runPackageScript
    return execute(script, timeout=PACKAGE_SCRIPT_TIMEOUT)

  File "/usr/lib/python2.7/dist-packages/OPSI/System/Posix.py", line 1017, in execute
    raise RuntimeError(u"Command '%s' failed (%s):\n%s" % (cmd, exitCode, u'\n'.join(result)))

     ==>>> Command '/tmp/.opsi.unpack.Dbaiu/OPSI/postinst' failed (1):
Restoring previous directories
Moving /var/lib/opsi/depot/windows10-upgrade/../windows10-upgrade.tmp/installfiles to /var/lib/opsi/depot/windows10-upgrade
mv: das Überschreiben des Verzeichnisses '/var/lib/opsi/depot/windows10-upgrade/localsetup/installfiles' mit einem Nicht‐Verzeichn                                 is ist
nicht möglich.
Installation error. Not unlocking product 'windows10-upgrade' on depot 'opsi-server'.
Traceback:
  File "/usr/lib/python2.7/dist-packages/OPSI/Backend/Depotserver.py", line 494, in installPackage
    raise installingPackageError

     ==>>> Failed to execute package script 'postinst' of package '/var/lib/opsi/repository/windows10-upgrade_20.09-1.opsi': Comma                                 nd '/tmp/.opsi.unpack.Dbaiu/OPSI/postinst' failed (1):
Restoring previous directories
Moving /var/lib/opsi/depot/windows10-upgrade/../windows10-upgrade.tmp/installfiles to /var/lib/opsi/depot/windows10-upgrade
mv: das Überschreiben des Verzeichnisses '/var/lib/opsi/depot/windows10-upgrade/localsetup/installfiles' mit einem Nicht‐Verzeichn                                 is ist
nicht möglich.
Traceback:
  File "/usr/bin/opsi-package-updater", line 341, in <module>
    exitCode = main()

  File "/usr/bin/opsi-package-updater", line 312, in main
    opu.processUpdates()

  File "/usr/lib/python2.7/dist-packages/OPSI/Util/Task/UpdatePackages/Updater.py", line 348, in processUpdates
    backend.depot_installPackage(filename=packageFile, propertyDefaultValues=propertyDefaultValues, tempDir=self.config.get('tempd                                 ir', '/tmp'))

  File "<string>", line 1, in depot_installPackage

  File "/usr/lib/python2.7/dist-packages/OPSI/Backend/Backend.py", line 524, in _executeMethod
    return meth(**kwargs)

  File "<string>", line 1, in depot_installPackage

  File "/usr/lib/python2.7/dist-packages/OPSI/Backend/Backend.py", line 524, in _executeMethod
    return meth(**kwargs)

  File "<string>", line 1, in depot_installPackage

  File "/usr/lib/python2.7/dist-packages/OPSI/Backend/Backend.py", line 524, in _executeMethod
    return meth(**kwargs)

  File "/usr/lib/python2.7/dist-packages/OPSI/Backend/Depotserver.py", line 125, in depot_installPackage
    suppressPackageContentFileGeneration=suppressPackageContentFileGeneration

  File "/usr/lib/python2.7/dist-packages/OPSI/Backend/Depotserver.py", line 497, in installPackage
    raise BackendError(u"Failed to install package '%s' on depot '%s': %s" % (filename, depotId, installationError))

     ==>>> Backend error: Failed to install package '/var/lib/opsi/repository/windows10-upgrade_20.09-1.opsi' on depot 'opsi-server': Failed to execute package script 'postinst' of package '/var/lib/opsi/repository/windows10-upgrade_20.09-1.opsi': Comm                                 and '/tmp/.opsi.unpack.Dbaiu/OPSI/postinst' failed (1):
Restoring previous directories
Moving /var/lib/opsi/depot/windows10-upgrade/../windows10-upgrade.tmp/installfiles to /var/lib/opsi/depot/windows10-upgrade
mv: das Überschreiben des Verzeichnisses '/var/lib/opsi/depot/windows10-upgrade/localsetup/installfiles' mit einem Nicht‐Verzeichn                                 is ist
nicht möglich.
Traceback (most recent call last):
  File "/usr/bin/opsi-package-updater", line 346, in <module>
    print(u"ERROR: {0}".format(forceUnicode(exc).encode('utf-8')), file=sys.stderr)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 468: ordinal not in range(128)
Ich verwende deshalb den Symlink um Speicherplatz zu sparen und ich muss die Dateien nicht doppelt kopieren.

Vielleicht gibt es dazu eine Lösung, ist jetzt nicht so schlimm wäre aber schön.

Viele Grüße,
SimonHSG
Antworten