[GELÖST] Installation von opsi-client-agent schälgt fehl
Verfasst: 08 Aug 2013, 14:53
Hallo,
ich habe ein neuen opsi-Server nach der opsi-getting-started-stable-de.pdf aufgesetzt (Debian Wheezy amd64). Beim einspielen der *.opsi Produkte bekomme ich folgende Fehlermeldung:
Ich habe versucht mit opsi-setup --set-rights die Rechte neu zu setzen, das paket kopiert und die Installation manuell ausgeführt opsi-package-manager -i /home/opsiproducts/opsi-client-agent_4.0.3.1-2.opsi und das ganze auch als opsiuser. Bekomme aber immer den gleichen Fehler. Opsiuser ist Mitglied der Gruppen:
Als opsiuser kann ich
problemlos ausführen.
Wenn ich allerdings nur (ohne python vorneweg)
nehme, bekomme ich die Fehlermeldung.
Ich weiß im Moment nicht wem wo welche Berechtigungen fehlen
ich habe ein neuen opsi-Server nach der opsi-getting-started-stable-de.pdf aufgesetzt (Debian Wheezy amd64). Beim einspielen der *.opsi Produkte bekomme ich folgende Fehlermeldung:
Code: Alles auswählen
root@srv01:~# opsi-product-updater -i -vv
.
.
.
Getting meta data from package '/var/lib/opsi/repository/opsi-client-agent_4.0.3.1-2.opsi'
Using product property defaults: {}
Installing package '/var/lib/opsi/repository/opsi-client-agent_4.0.3.1-2.opsi'
=================================================================================================
Installing package file '/var/lib/opsi/repository/opsi-client-agent_4.0.3.1-2.opsi' on depot 'srv01.xxx.de'
Getting meta data from package '/var/lib/opsi/repository/opsi-client-agent_4.0.3.1-2.opsi'
Creating product in backend
Locking product 'opsi-client-agent' on depot 'srv01.xxx.de'
Checking package dependencies
Running preinst script
Running package script 'preinst'
Unpacking package files
Extracting data from package '/var/lib/opsi/repository/opsi-client-agent_4.0.3.1-2.opsi'
Setting product property states in backend
Running postinst script
Running package script 'postinst'
Traceback:
line 416 in '_runPackageScript' in file '/usr/lib/pymodules/python2.7/OPSI/Util/Product.py'
line 756 in 'execute' in file '/usr/lib/pymodules/python2.7/OPSI/System/Posix.py'
==>>> Command '/tmp/.opsi.unpack.aw1Se/OPSI/postinst' failed (1):
Patching server information ...
/tmp/.opsi.unpack.aw1Se/OPSI/postinst: Zeile 19: /var/lib/opsi/depot/opsi-client-agent/utils/patch_config_file.py: Keine Berechtigung
Traceback:
line 312 in 'installPackage' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Depotserver.py'
line 426 in 'runPostinst' in file '/usr/lib/pymodules/python2.7/OPSI/Util/Product.py'
line 420 in '_runPackageScript' in file '/usr/lib/pymodules/python2.7/OPSI/Util/Product.py'
==>>> Failed to execute package script 'postinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.0.3.1-2.opsi': Command '/tmp/.opsi.unpack.aw1Se/OPSI/postinst' failed (1):
Patching server information ...
/tmp/.opsi.unpack.aw1Se/OPSI/postinst: Zeile 19: /var/lib/opsi/depot/opsi-client-agent/utils/patch_config_file.py: Keine Berechtigung
Traceback:
line 1073 in '<module>' in file '/usr/bin/opsi-product-updater'
line 1067 in 'main' in file '/usr/bin/opsi-product-updater'
line 569 in 'processUpdates' in file '/usr/bin/opsi-product-updater'
line 1 in 'depot_installPackage' in file '<string>'
line 423 in '_executeMethod' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py'
line 1 in 'depot_installPackage' in file '<string>'
line 423 in '_executeMethod' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py'
line 1 in 'depot_installPackage' in file '<string>'
line 423 in '_executeMethod' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py'
line 114 in 'depot_installPackage' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Depotserver.py'
line 399 in 'installPackage' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Depotserver.py'
==>>> Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.0.3.1-2.opsi' on depot 'srv01.xxx.de': Failed to execute package script 'postinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.0.3.1-2.opsi': Command '/tmp/.opsi.unpack.aw1Se/OPSI/postinst' failed (1):
Patching server information ...
/tmp/.opsi.unpack.aw1Se/OPSI/postinst: Zeile 19: /var/lib/opsi/depot/opsi-client-agent/utils/patch_config_file.py: Keine Berechtigung
ERROR: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.0.3.1-2.opsi' on depot 'srv01.xxx.de': Failed to execute package script 'postinst' of package '/var/lib/opsi/repository/opsi-client-agent_4.0.3.1-2.opsi': Command '/tmp/.opsi.unpack.aw1Se/OPSI/postinst' failed (1):
Patching server information ...
/tmp/.opsi.unpack.aw1Se/OPSI/postinst: Zeile 19: /var/lib/opsi/depot/opsi-client-agent/utils/patch_config_file.py: Keine Berechtigung
Code: Alles auswählen
opsiuser@srv01:~$ groups
opsiuser pcpatch opsiadmin
Code: Alles auswählen
opsiuser@srv01:~$ python /var/lib/opsi/depot/opsi-client-agent/utils/patch_config_file.py /var/lib/opsi/depot/opsi-client-agent/files/opsi/cfg/config.ini
Configserver id : srv01.xxx.de
Configserver ip : 192.168.2.1
Depotserver hostname : srv01
DNS domain : xxx.de
Client servicetype : None
Patching config file '/var/lib/opsi/depot/opsi-client-agent/files/opsi/cfg/config.ini'
Config file '/var/lib/opsi/depot/opsi-client-agent/files/opsi/cfg/config.ini' patched
opsiuser@srv01:~$
Wenn ich allerdings nur (ohne python vorneweg)
Code: Alles auswählen
opsiuser@srv01:~$ /var/lib/opsi/depot/opsi-client-agent/utils/patch_config_file.py /var/lib/opsi/depot/opsi-client-agent/files/opsi/cfg/config.ini
-bash: /var/lib/opsi/depot/opsi-client-agent/utils/patch_config_file.py: Keine Berechtigung
opsiuser@srv01:~$
Ich weiß im Moment nicht wem wo welche Berechtigungen fehlen
