opsi-cli uninstall tries uninstall multiple times for same depot

Antworten
malte.gerth
Beiträge: 4
Registriert: 29 Mai 2025, 22:15

opsi-cli uninstall tries uninstall multiple times for same depot

Beitrag von malte.gerth »

If I run the `opsi-cli package uninstall` command, the multiple depots, the same/first depots is used multiple times, causing the uninstall to fail.

Running the command only for a single depot is completed.

Code: Alles auswählen

root@opsi:~# opsi-cli package uninstall --depots opsi-depot-nz.moll-nz.lan,opsi-depot-strasbourg.moll-strassbourg.lan photoshopcc
Uninstalling 'photoshopcc' from depot 'opsi-depot-nz.moll-nz.lan'... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Uninstalling 'photoshopcc' from depot 'opsi-depot-nz.moll-nz.lan'... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━   0% -:--:--
╭─ Error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Opsi rpc error: Backend error: Failed to uninstall product 'photoshopcc' on depot 'opsi-depot-nz.moll-nz.lan': Backend bad value error: Product 'photoshopcc' is not installed on depot 'opsi-depot-nz.moll-nz.lan'                                    │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Code: Alles auswählen

root@opsi:~# opsi-cli package uninstall --depots opsi-depot-strasbourg.moll-strassbourg.lan photoshopcc
Uninstalling 'photoshopcc' from depot 'opsi-depot-strasbourg.moll-strassbourg.lan'... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00

Code: Alles auswählen

root@opsi:~# opsi-cli --version
opsi-cli version 4.3.23.3
Benutzeravatar
j.schneider
uib-Team
Beiträge: 2042
Registriert: 29 Mai 2008, 15:14

Re: opsi-cli uninstall tries uninstall multiple times for same depot

Beitrag von j.schneider »

Thanks for reporting!
This is fixed in opsi-cli 4.3.24.0-1 which will be released in the experimental-branch today.

Best regards,
Jan Schneider


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Antworten