Seite 1 von 1

BackendUnaccomplishableError - Product Dependency

Verfasst: 12 Jun 2013, 13:52
von bobzbobz
Hi

I get an BackendUnaccomplishableError when i create a certain Product dependency on a certain product.
I have a package called msoffice2010pro and msoffice2013pro.

Both of them have a product dependency on the other package as "not_installed" - it works fine with msoffice2010pro, but when i create the package msoffice2013pro it results in a BackendUnaccomplishableError.

control-file for msoffice2010pro:

Code: Alles auswählen

[Package]
version: 1
depends: 
incremental: False

[Product]
type: localboot
id: msoffice2010pro
name: Microsoft Office 2010 Proffesional Plus
description: Microsoft Office er en kontorpakke lavet af Microsoft.
advice: 
version: 2010
priority: 0
licenseRequired: False
productClasses: 
setupScript: setup32.ins
uninstallScript: uninstall32.ins
updateScript: 
alwaysScript: 
onceScript: 
customScript: 
userLoginScript: 

[ProductDependency]
action: setup
requiredProduct: msoffice2013pro
requiredStatus: not_installed
requirementType: before

[ProductDependency]
action: uninstall
requiredProduct: pronestor2010
requiredAction: uninstall
requirementType: before

[ProductDependency]
action: setup
requiredProduct: office_2010_hotfix
requiredStatus: installed
requirementType: after
msoffice2013pro:

Code: Alles auswählen

[Package]
version: 1
depends: 
incremental: False

[Product]
type: localboot
id: msoffice2013pro
name: Microsoft Office 2013 Professional Plus
description: Kontorpakke fra Microsoft
advice: 
version: 2013
priority: 0
licenseRequired: False
productClasses: 
setupScript: setup32.ins
uninstallScript: uninstall32.ins
updateScript: 
alwaysScript: 
onceScript: 
customScript: 
userLoginScript: 

[ProductDependency]
action: setup
requiredProduct: msoffice2010pro
requiredStatus: not_installed
requirementType: before

Re: BackendUnaccomplishableError - Product Dependency

Verfasst: 14 Jun 2013, 08:57
von bobzbobz
Please tell me if I need to elaborate :)

Re: BackendUnaccomplishableError - Product Dependency

Verfasst: 14 Jun 2013, 10:00
von bobzbobz
This Product Dependency cause the same error:

msoffice2010pro control-file:

Code: Alles auswählen

[ProductDependency]
action: setup
requiredProduct: msoffice2013pro
requiredAction: uninstall
requirementType: before
msoffice2013pro control-file:

Code: Alles auswählen

[ProductDependency]
action: setup
requiredProduct: msoffice2010pro
requiredAction: uninstall
requirementType: before
If I create a msoffice2013pro package it causes a "BackendUnaccomplishableError" and no products are loaded into the "Product Configuration"-menu.
When i remove the ProductDependency inside the msoffice2013pro and upload the package, then it works with no problems.. but without the needed product dependency..

Re: BackendUnaccomplishableError - Product Dependency

Verfasst: 14 Jun 2013, 13:52
von r.roeder
Hi,

you require:

if you (un)install office 2010 then uninstall first office 2013
if you (un)install office 2013 then uninstall first office 2010

This clearly produces an infinite loop and fails therefore.

Besides, uninstall requirements are not really supported since they have a different logic from install requirements.

In order to accomplish that only one of a set of products is installed you should rely on opsi service calls.

I hope this helps

Rupert

Re: BackendUnaccomplishableError - Product Dependency

Verfasst: 17 Jun 2013, 10:25
von bobzbobz
Hi,

What i want to do is:

1. when Office 2010 is set for installation - then check if Office 2013 is installed, and if it is - then uninstall it before 2010 is installed.
2. when Office 2013 is set for installation - then check if Office 2010 is installed, and if it is - then uninstall it before 2013 is installed.

I thought that when a ProductDependency is set for action "setup" then the Product Dependency would only run/check its requirements when the status in OPSI-configed is set for "setup".

I thought that
if you (un)install office 2010 then uninstall first office 2013
if you (un)install office 2013 then uninstall first office 2010
would look like:

Code: Alles auswählen

[ProductDependency]
action: uninstall
requiredProduct: msoffice2013pro
requiredAction: uninstall
requirementType: before

Re: BackendUnaccomplishableError - Product Dependency

Verfasst: 20 Jun 2013, 15:57
von r.roeder
Hi,

you write
bobzbobz hat geschrieben: 1. when Office 2010 is set for installation - then check if Office 2013 is installed, and if it is - then uninstall it before 2010 is installed.
2. when Office 2013 is set for installation - then check if Office 2010 is installed, and if it is - then uninstall it before 2013 is installed.
I understand this intention, but opsi does not work this way. opsi produces a singular product sequence based on
the assumption that we have only setup requirements!

The technical reason is that the opsiclientd gets a sequence of products and looks for each product which action
shall be executed. There is no sequence of product actions which could resolve their dependencies based on the kind of
action. The data structure only pretends to grant a greater flexibility.

The disadvantage of this construction is clear from your problem. The advantage is that at least for setup actions
the administrator gets a clear picture of the product sequence (and can influence it e.g. by setting product priorities).
Otherwise it could as well happen that the same product appears in a sequence of setup actions and in a sequence of
uninstall actions.

The aim you have for your construction must be reached with other means:

- You can build one product msoffice with a product property which indicates which version should be installed resp. uninstallend

- If you prefer to have two products you may handle the opsi service settings by winst opsiservicecall sections

Best greetings

Rupert Röder

Re: BackendUnaccomplishableError - Product Dependency

Verfasst: 16 Okt 2013, 15:09
von m.pfeiffer
bobzbobz hat geschrieben:This Product Dependency cause the same error:

msoffice2010pro control-file:

Code: Alles auswählen

[ProductDependency]
action: setup
requiredProduct: msoffice2013pro
requiredAction: uninstall
requirementType: before
msoffice2013pro control-file:

Code: Alles auswählen

[ProductDependency]
action: setup
requiredProduct: msoffice2010pro
requiredAction: uninstall
requirementType: before
If I create a msoffice2013pro package it causes a "BackendUnaccomplishableError" and no products are loaded into the "Product Configuration"-menu.
When i remove the ProductDependency inside the msoffice2013pro and upload the package, then it works with no problems.. but without the needed product dependency..
Hi bobzbobz,

i got the same error, then testing this scenario with Adobe Reader X and XI.
My solution is to use diffenrent requirement types in both control-files: before AND after.

So try:
msoffice2013pro control-file:

Code: Alles auswählen

[ProductDependency]
...
requirementType: after

greetings
m.pfeiffer