Seite 1 von 1

opsi-cli uninstall tries uninstall multiple times for same depot

Verfasst: 12 Jun 2025, 00:37
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

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

Verfasst: 12 Jun 2025, 14:30
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