Hallo alle zusammen,
momentan sitze an der opsi- Server Installation. Als Hilfe dient mir das Benutzerhandbuch. Aktuell bereitet mir der Unterpunkt 3.6 "Einspielen der minimalen opsi-Produkte" grosse Schwierigkeiten.Wenn ich den Befehl: opsi-product-updater -i -vv eingebe, bekomme ich folgende Fehlermeldungen zurück:
Traceback:
line 208 in 'installPackage' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Depotserver.py'
line 119 in 'deleteProductClientDataDir' in file '/usr/lib/pymodules/python2.7/OPSI/Util/Product.py'
==>>> [Errno 2] No such file or directory: '/var/lib/opsi/depot'
Traceback:
line 1093 in '<module>' in file '/usr/bin/opsi-product-updater'
line 1087 in 'main' in file '/usr/bin/opsi-product-updater'
line 576 in 'processUpdates' in file '/usr/bin/opsi-product-updater'
line 1 in 'depot_installPackage' in file '<string>'
line 417 in '_executeMethod' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py'
line 1 in 'depot_installPackage' in file '<string>'
line 417 in '_executeMethod' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py'
line 1 in 'depot_installPackage' in file '<string>'
line 417 in '_executeMethod' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py'
line 108 in 'depot_installPackage' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Depotserver.py'
line 391 in 'installPackage' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Depotserver.py'
==>>> Backend error: Failed to install package '/var/lib/opsi/repository/opsi-adminutils_4.0.3-1.opsi' on depot 'opsidepote.obsi.local': [Errno 2] No such file or directory: '/var/lib/opsi/depot'
ERROR: Backend error: Failed to install package '/var/lib/opsi/repository/opsi-adminutils_4.0.3-1.opsi' on depot 'opsidepote.obsi.local': [Errno 2] No such file or directory: '/var/lib/opsi/depot'
Könnt ihr mir bei meinem Problem weiterhelfen?
Ich muss gestehen ein absoluter Leihe auf dem Gebiet mit Linux zu sein.
Danke im voraus!
Florian R.
Darauf hat mir NIko versucht zu Helfen mit folgenden Befehlen:
mkdir /var/lib/opsi/depot
opsi-setup --set-rights
opsi-setup --init-current-config
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart
Jedoch hat das bei mir nicht ganz funktioniert:
danke für deine schnelle Antwort. Wenn ich den Befehl: mkdir /var/lib/opsi/depot eingebe, kommt folgendes zurück:
mkdir: das Verzeichnis »/var/lib/opsi/depot“ kann nicht angelegt werden: Die Datei existiert bereits
Trozalledem bin ich mit dem Befehl: opsi-setup --set-rights fortgefahren. Als Rückgabe war folgendes zu lesen:
[5] [Mar 07 14:58:03] Setting rights (opsi-setup|534)
[4] [Mar 07 14:58:04] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] Datei oder Verzeichnis nicht gefunden: u'/etc/opsi/modules' (Backend.py|365)
[5] [Mar 07 14:58:04] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|435)
[5] [Mar 07 14:58:04] Getting current system config (opsi-setup|107)
[5] [Mar 07 14:58:04] System information: (opsi-setup|160)
[5] [Mar 07 14:58:04] distributor : Ubuntu (opsi-setup|161)
[5] [Mar 07 14:58:04] distribution : Ubuntu 12.04.4 LTS (opsi-setup|162)
[5] [Mar 07 14:58:04] ip address : 10.42.32.150 (opsi-setup|163)
[5] [Mar 07 14:58:04] netmask : 255.255.255.0 (opsi-setup|164)
[5] [Mar 07 14:58:04] subnet : 10.42.32.0 (opsi-setup|165)
[5] [Mar 07 14:58:04] broadcast : 10.42.32.255 (opsi-setup|166)
[5] [Mar 07 14:58:04] fqdn : opsidepote.obsi.local (opsi-setup|167)
[5] [Mar 07 14:58:04] hostname : opsidepote (opsi-setup|168)
[5] [Mar 07 14:58:04] domain : obsi.local (opsi-setup|169)
[5] [Mar 07 14:58:04] win domain : WORKGROUP (opsi-setup|170)
[5] [Mar 07 14:58:04] Setting rights on directory '/tftpboot/linux' (opsi-setup|621)
[5] [Mar 07 14:58:04] Setting rights on directory '/home/opsiproducts' (opsi-setup|621)
[5] [Mar 07 14:58:04] Setting rights on directory '/var/log/opsi' (opsi-setup|621)
[5] [Mar 07 14:58:04] Setting rights on directory '/etc/opsi' (opsi-setup|621)
[5] [Mar 07 14:58:04] Setting rights on directory '/var/lib/opsi' (opsi-setup|621)
Da ich keine Ahnung habe, habe ich den dritten Befehl abermals eingegeben: opsi-setup --init-current-config, die Antwort darauf:
[4] [Mar 07 14:58:31] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] Datei oder Verzeichnis nicht gefunden: u'/etc/opsi/modules' (Backend.py|365)
[5] [Mar 07 14:58:31] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|435)
[5] [Mar 07 14:58:31] Creating base path: '/var/lib/opsi/config' (File.py|236)
[5] [Mar 07 14:58:31] Creating opsi base (SQL.py|382)
[5] [Mar 07 14:58:31] Try to find a Configserver. (opsi-setup|2699)
[5] [Mar 07 14:58:31] Getting current system config (opsi-setup|107)
[5] [Mar 07 14:58:31] System information: (opsi-setup|160)
[5] [Mar 07 14:58:31] distributor : Ubuntu (opsi-setup|161)
[5] [Mar 07 14:58:31] distribution : Ubuntu 12.04.4 LTS (opsi-setup|162)
[5] [Mar 07 14:58:31] ip address : 10.42.32.150 (opsi-setup|163)
[5] [Mar 07 14:58:31] netmask : 255.255.255.0 (opsi-setup|164)
[5] [Mar 07 14:58:31] subnet : 10.42.32.0 (opsi-setup|165)
[5] [Mar 07 14:58:31] broadcast : 10.42.32.255 (opsi-setup|166)
[5] [Mar 07 14:58:31] fqdn : opsidepote.obsi.local (opsi-setup|167)
[5] [Mar 07 14:58:31] hostname : opsidepote (opsi-setup|168)
[5] [Mar 07 14:58:31] domain : obsi.local (opsi-setup|169)
[5] [Mar 07 14:58:31] win domain : WORKGROUP (opsi-setup|170)
[4] [Mar 07 14:58:31] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] Datei oder Verzeichnis nicht gefunden: u'/etc/opsi/modules' (Backend.py|365)
[5] [Mar 07 14:58:31] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|435)
[5] [Mar 07 14:58:31] Creating base path: '/var/lib/opsi/config' (File.py|236)
[5] [Mar 07 14:58:32] Creating opsi base (SQL.py|382)
[4] [Mar 07 14:58:32] Failed to create depot directory '/var/lib/opsi/depot': [Errno 17] Die Datei existiert bereits: '/var/lib/opsi/depot' (opsi-setup|2785)
[5] [Mar 07 14:58:32] Configuring client user pcpatch (opsi-setup|470)
[5] [Mar 07 14:58:32] Creating RSA private key for user pcpatch in '/var/lib/opsi/.ssh/id_rsa' (opsi-setup|484)
[5] [Mar 07 14:58:32] Setting rights (opsi-setup|534)
[4] [Mar 07 14:58:32] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] Datei oder Verzeichnis nicht gefunden: u'/etc/opsi/modules' (Backend.py|365)
[5] [Mar 07 14:58:32] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|435)
[5] [Mar 07 14:58:32] Setting rights on directory '/var/lib/opsi/.ssh' (opsi-setup|621)
[4] [Mar 07 14:58:32] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] Datei oder Verzeichnis nicht gefunden: u'/etc/opsi/modules' (Backend.py|365)
[5] [Mar 07 14:58:32] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|435)
Um das ganze zum Abschluss zu bringen, habe ich /etc/init.d/opsiconfd restart eingegeben, mit dem Ergebnis:
Stopping opsi config service... (not running).
Starting opsi config service...... (failed).
Entschuldigt bitte, das ich die einzelnen Schritte so amateurhaft bearbeite.
Ich hoffe ihr habt eine Antwort auf mein Problem.
Danke
Florian R.
Product Updater
Re: Product Updater
Hilft!?
Gruss
Bardo Wolf
Code: Alles auswählen
rm /var/lib/opsi/depot
mkdir -p /var/lib/opsi/depot
opsi-setup --set-rights
opsi-setup --init-current-config
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart
Bardo Wolf
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
-
- Beiträge: 25
- Registriert: 07 Mär 2014, 13:33
Re: Product Updater
Super, Ich habe es genauso eingetipp und wie es scheint hat das "Einspielen der minimalen opsi-Produkte" funktioniert. Jedenfalls kam keine derarte Fehlermeldung wie vorhin beschrieben.
Danke vielmals
Danke vielmals