Seite 2 von 2

Re: Fehler bei der Installation von Opsi-Packages

Verfasst: 06 Mai 2009, 09:50
von thomask3006
Hallo
d.oertel hat geschrieben: die Pakete opsi-utils und python-opsi sind nicht aktuell.
Bitte ausführen:

Code: Alles auswählen

apt-get update
apt-get install opsi-utils python-opsi
/etc/init.d/opsiconfd restart
Hilft das ?

gruss
detlef oertel
folgende Ausgabe nach apt-get install opsi-utils python-opsi

opsi-utils ist schon die neueste Version.
opsi-utils wurde als manuell installiert festgelegt.
python-opsi ist schon die neueste Version.
python-opsi wurde als manuell installiert festgelegt.
i opsi-atftpd 0.7.dfsg-1.4 advanced TFTP server - opsi version with pcr
ii opsi-configed 1.3.3-2 OPSI config editor
ii opsi-depotserver 3.3-10 server fuer das Softwareverteilungssystem OP
ii opsi-linux-bootimage 20090304-1 Linux-Bootimage fuer das Softwareverteilungs
ii opsi-utils 3.3.1.1-1 OPSI utils
ii opsiconfd 2.0.0.16-1 OPSI configuration service
ii opsipxeconfd 0.3.6-1 OPSI PXE configuration daemon
ii python-opsi 3.3.1.5-1 OPSI python library


d.oertel hat geschrieben:Hi,


der Name eines opsi-Paketes setzt sich folgendermaßen zusammen:

<productid>_<software version>-<package version>.opsi

Daraus folgt, das in <productid> besser kein '_' vorkommen sollte,
da dies der trenner zu <software version> ist.
auf den livesystem opsi 3.3 kann ich dieses Opsi-Packages installieren.Ich bekomme auf dem Opsi 3.3.1 die
Fehlermeldung egal welches Packages ich installiere.

@ j.schneider
j.schneider hat geschrieben:Warum soll JSONRPC als Backend verwendet werden?
Bitte einmal den Inhalt der Datei /etc/opsi/backendManager.d/30_vars.conf posten.
dezentraler Opsi
-Packages werden aber auf den dezentralen Server hochgeladen.hh-opsi:/opt/pcbin/install# ls
ntfs-write-image prelogin_aus preloginloader VNC, nur kommt dann die Fehlermeldung.

global SYSTEM_ADMIN_GROUP
SYSTEM_ADMIN_GROUP = 'opsiadmin'

self._pamService = 'passwd'
self._sshRSAPublicKeyFile = '/etc/ssh/ssh_host_rsa_key.pub'

self.defaultBackend = BACKEND_JSONRPC
self.clientManagingBackend = BACKEND_JSONRPC
self.pxebootconfBackend = BACKEND_OPSIPXECONFD
self.passwordBackend = BACKEND_JSONRPC
self.pckeyBackend = BACKEND_JSONRPC
self.swinventBackend = BACKEND_JSONRPC
self.hwinventBackend = BACKEND_JSONRPC
self.loggingBackend = BACKEND_JSONRPC

Danke

Gruss Thomas

Re: Fehler bei der Installation von Opsi-Packages

Verfasst: 06 Mai 2009, 11:32
von d.oertel
Hi,

ja die Pakete sind jetzt ok - ich hatte Dein update nach 3.3.1 übersehen.

die 30_vars.conf ist eine von einem externen depot-server und nicht die eines Master-Config-Servers.

Die sollte etwa so aussehen (zum Thema DHCP - Installationshandbuch lesen):

Code: Alles auswählen

global SYSTEM_ADMIN_GROUP
SYSTEM_ADMIN_GROUP = 'opsiadmin'

self._pamService = 'passwd'
self._sshRSAPublicKeyFile = '/etc/ssh/ssh_host_rsa_key.pub'

self.defaultBackend        = BACKEND_FILE31
self.clientManagingBackend = [BACKEND_DHCPD, BACKEND_FILE31]
self.pxebootconfBackend    = BACKEND_OPSIPXECONFD
self.passwordBackend       = BACKEND_FILE31
self.pckeyBackend          = BACKEND_FILE31
self.swinventBackend       = BACKEND_FILE31
self.hwinventBackend       = BACKEND_FILE31
self.loggingBackend        = BACKEND_FILE31

Nach der Änderung den opsicond neu starten.

gruss
detlef oertel

Re: Fehler bei der Installation von Opsi-Packages

Verfasst: 06 Mai 2009, 13:17
von thomask3006
Hallo
d.oertel hat geschrieben:
die 30_vars.conf ist eine von einem externen depot-server und nicht die eines Master-Config-Servers.

Die sollte etwa so aussehen (zum Thema DHCP - Installationshandbuch lesen):

Code: Alles auswählen

global SYSTEM_ADMIN_GROUP
SYSTEM_ADMIN_GROUP = 'opsiadmin'

self._pamService = 'passwd'
self._sshRSAPublicKeyFile = '/etc/ssh/ssh_host_rsa_key.pub'

self.defaultBackend = BACKEND_FILE31
self.clientManagingBackend = [BACKEND_DHCPD, BACKEND_FILE31]
self.pxebootconfBackend = BACKEND_OPSIPXECONFD
self.passwordBackend = BACKEND_FILE31
self.pckeyBackend = BACKEND_FILE31
self.swinventBackend = BACKEND_FILE31
self.hwinventBackend = BACKEND_FILE31
self.loggingBackend = BACKEND_FILE31

anbei die 30_vars.conf des Masters..

Code: Alles auswählen

global SYSTEM_ADMIN_GROUP
SYSTEM_ADMIN_GROUP = 'opsiadmin'

self._pamService = 'common-auth'
self._sshRSAPublicKeyFile = '/etc/ssh/ssh_host_rsa_key.pub'

self.defaultBackend        = BACKEND_FILE31
self.clientManagingBackend = BACKEND_FILE31
self.pxebootconfBackend    = BACKEND_OPSIPXECONFD
self.passwordBackend       = BACKEND_FILE31
self.pckeyBackend          = BACKEND_FILE31
self.swinventBackend       = BACKEND_MYSQL
self.hwinventBackend       = BACKEND_MYSQL
self.loggingBackend        = BACKEND_FILE31


das ist richtig, aber wenn ich am Master-Config-Server oder am externen Opsi ein Package installieren möchte
erhalte ich den selben Fehler.

Code: Alles auswählen


opsi-depotserver:~# opsi-package-manager -v -d hh-opsi.local -i preloginloader_3.3.1-1.opsi
Extracting partial archive content to: '/tmp/unpack.preloginloader.JXlHK'
Extracting archive '/root/preloginloader_3.3.1-1.opsi', format: cpio
Extracting archive '/tmp/unpack.preloginloader.JXlHK/OPSI.cpio.gz', format: cpio.gz
Trying to read control file '/tmp/unpack.preloginloader.JXlHK/control'
Processing upload of 'preloginloader_3.3.1-1.opsi' to depot 'hh-opsi.local'
Processing upload of 'preloginloader_3.3.1-1.opsi' to depot 'hh-opsi.local'
Installing package 'preloginloader_3.3.1-1.opsi' on depot 'hh-opsi.local'
Installing package 'preloginloader_3.3.1-1.opsi' on depot 'hh-opsi.local'
{'message': "Product 'preloginloader' does not exist", 'class': 'BackendMissingDataError'}
createProduct() takes at most 18 arguments (19 given)
Traceback:
     line 507 in 'start' in file '/usr/bin/opsi-package-manager'
     line 976 in 'installPackage' in file '/usr/bin/opsi-package-manager'
     line 1 in 'installPackage' in file '<string>'
     line 220 in '_jsonRPC' in file '/var/lib/python-support/python2.4/OPSI/Backend/JSONRPC.py'
     ==>>> createProduct() takes at most 18 arguments (19 given)
Task 'Install of package '/var/lib/opsi/products/preloginloader_3.3.1-1.opsi' on depot 'hh-opsi.local'' failed: createProduct() takes at most 18 arguments (19 given)
Errors occured:
Failure while processing: Install of package(s) /root/preloginloader_3.3.1-1.opsi on depot 'hh-opsi.local'
   Failure while processing: Install of package(s) /root/preloginloader_3.3.1-1.opsi on depot 'hh-opsi.local'
      createProduct() takes at most 18 arguments (19 given)
   createProduct() takes at most 18 arguments (19 given)

ich verwende einen externen DHCP in jedem Subnet,also benötig ich doch nicht Backend_DHCP oder?

Danke

Gruss Thomas

Re: Fehler bei der Installation von Opsi-Packages

Verfasst: 08 Mai 2009, 11:56
von thomask3006
Hallo

hat keiner mehr einen Tip. :cry:

Danke

Re: Fehler bei der Installation von Opsi-Packages

Verfasst: 08 Mai 2009, 13:29
von j.schneider
Supportvertrag?

Re: Fehler bei der Installation von Opsi-Packages

Verfasst: 08 Mai 2009, 16:48
von thomask3006
Hallo

die Antwort hatte ich schon fast erwartet. :?

Hat kein Opsi-user einen dezentralen Server mit Config Server am Start ???

Gruss Thomas