Opsi 4.2 Paket löschen geht nicht

Antworten
Markus1982
Beiträge: 23
Registriert: 25 Mär 2019, 11:40

Opsi 4.2 Paket löschen geht nicht

Beitrag von Markus1982 »

Hallo Zusammen,

seit dem upgrade von Opsi 4.1 auf 4.2 kann ich keine Pakete mehr aus der Oberfläche löschen
normal mache ich das über den Befehl:

Code: Alles auswählen

opsi-package-manager -r -f win10-x64-enterprise -d i08opsi.xxx.de
jetzt kommt folgender Fehler

Code: Alles auswählen

[Paket-Deinstallation ...(1/1)]          [5] [2021-08-09 11:27:24.307] [               ] Uninstalling package 'win10-x64-enterprise' on depot 'i08opsi.xxx.de'   (opsipackagemanager.py:1464)
[Paket-Deinstallation ...(1/1)]          [3] [2021-08-09 11:27:24.346] [               ] Repository error: Failed to list dir '/': 404 - {"detail":"Not Found"}   (opsipackagemanager.py:1492)
[Paket-Deinstallation ...(1/1)]          [3] [2021-08-09 11:27:24.346] [               ] Repository error: Failed to list dir '/': 404 - {"detail":"Not Found"}   (opsipackagemanager.py:96)
[Paket-Deinstallation ...(1/1)]          Traceback (most recent call last):
[Paket-Deinstallation ...(1/1)]            File "opsiutils/opsipackagemanager.py", line 94, in start
[Paket-Deinstallation ...(1/1)]            File "opsiutils/opsipackagemanager.py", line 1470, in uninstallPackage
[Paket-Deinstallation ...(1/1)]            File "OPSI/Util/Repository.py", line 521, in listdir
[Paket-Deinstallation ...(1/1)]            File "OPSI/Util/Repository.py", line 1124, in content
[Paket-Deinstallation ...(1/1)]          OPSI.Exceptions.RepositoryError: Repository error: Failed to list dir '/': 404 - {"detail":"Not Found"}
[Paket-Deinstallation ...(1/1)]          [3] [2021-08-09 11:27:24.346] [               ] Task 'Uninstall of package 'win10-x64-enterprise' on depot 'i08opsi.xxxx.de'' failed: Repository error: Failed to list dir '/': 404 - {"detail":"Not Found"}   (opsipackagemanager.py:640)
[Paket-Deinstallation ...(1/1)]          Ein Fehler ist aufgetreten:
[Paket-Deinstallation ...(1/1)]          [3] [2021-08-09 11:27:26.311] [               ] Failure while processing Uninstall of package(s) win10-x64-enterprise on depot 'i08.xxxx.de':   (opsipackagemanager.py:1682)
[Paket-Deinstallation ...(1/1)]             Fehler beim Bearbeiten von Uninstall of package(s) win10-x64-enterprise on depot 'i08opsi.xxx.de':
[Paket-Deinstallation ...(1/1)]          [3] [2021-08-09 11:27:26.311] [               ]       Repository error: Failed to list dir '/': 404 - {"detail":"Not Found"}   (opsipackagemanager.py:1685)
[Paket-Deinstallation ...(1/1)]                Repository error: Failed to list dir '/': 404 - {"detail":"Not Found"}
[Paket-Deinstallation ...(1/1)]          [3] [2021-08-09 11:27:26.311] [               ] 1 errors during the processing of tasks.   (opsipackagemanager.py:1647)
[Paket-Deinstallation ...(1/1)]          Traceback (most recent call last):
[Paket-Deinstallation ...(1/1)]            File "opsiutils/opsipackagemanager.py", line 1645, in __init__
[Paket-Deinstallation ...(1/1)]            File "opsiutils/opsipackagemanager.py", line 1688, in processCommand
[Paket-Deinstallation ...(1/1)]          opsiutils.opsipackagemanager.TaskError: 1 errors during the processing of tasks.
[Paket-Deinstallation ...(1/1)]          [3] [2021-08-09 11:27:26.311] [               ] Failed to process command 'remove': 1 errors during the processing of tasks.   (opsipackagemanager.py:2122)
[Paket-Deinstallation ...(1/1)]          Traceback (most recent call last):
[Paket-Deinstallation ...(1/1)]            File "opsiutils/opsipackagemanager.py", line 1645, in __init__
[Paket-Deinstallation ...(1/1)]            File "opsiutils/opsipackagemanager.py", line 1688, in processCommand
[Paket-Deinstallation ...(1/1)]          opsiutils.opsipackagemanager.TaskError: 1 errors during the processing of tasks.
[Paket-Deinstallation ...(1/1)]          
[Paket-Deinstallation ...(1/1)]          The above exception was the direct cause of the following exception:
[Paket-Deinstallation ...(1/1)]          
[Paket-Deinstallation ...(1/1)]          Traceback (most recent call last):
[Paket-Deinstallation ...(1/1)]            File "opsiutils/opsipackagemanager.py", line 2118, in main
[Paket-Deinstallation ...(1/1)]            File "opsiutils/opsipackagemanager.py", line 1648, in __init__
[Paket-Deinstallation ...(1/1)]          RuntimeError: Failed to process command 'remove': 1 errors during the processing of tasks.
[Paket-Deinstallation ...(1/1)]          
[Paket-Deinstallation ...(1/1)]          ERROR: Failed to process command 'remove': 1 errors during the processing of tasks.
Es scheint auch kein Verzeichnis mehr zu geben

Code: Alles auswählen

/var/lib/opsi/repository
Hat jemand eine Idee

Gruß

Markus
Markus1982
Beiträge: 23
Registriert: 25 Mär 2019, 11:40

Re: Opsi 4.2 Paket löschen geht nicht

Beitrag von Markus1982 »

Ich habe es erst mal gelöst

ich habe das fehlende Verzeichnis erstellt und Berechtigungen gesetzt

Code: Alles auswählen

mkdir /var/lib/opsi/repository
opsi-set-rights /var/lib/opsi/repository
danach den opsi Server neu gestartet.
Jetzt geht die deinstallation der Pakete wieder
Antworten