[Gelöst] opsi-client-agent / service_setup.cmd fehlt

Antworten
Peter Nuding
Beiträge: 9
Registriert: 10 Dez 2012, 14:39

[Gelöst] opsi-client-agent / service_setup.cmd fehlt

Beitrag von Peter Nuding »

Hi,

Ich versuche gerade nach dem OPSI Handbuch für OPSI 4.0.2 einen OPSI Server in einer Linux VServer Maschine zu installieren.
Ich bin dabei nach Handbuch vorgegangen und habe auch eine Oberfläche per WEB. Soweit so gut. Jetzt bin ich beim Kapitel 4.1.1.1,
habe das opsi-depot share als Netzlaufwerk eingebunden und will jetzt opsi-client-agent/service_setup.cmd starten.

Aber: Es ist nicht da!?

Der Inhalt des Shares entspricht /opt/pcbin/install auf dem Depot-Server und sieht bei gerade so aus:

Code: Alles auswählen

root@opsi:/opt/pcbin/install# ls -la
total 112
drwxrws--- 28 opsiconfd pcpatch 4096 Dec  4 12:08 .
drwxr-xr-x  3 root      root    4096 Dec  4 10:55 ..
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 11:54 config-win-base
drwxrws---  4 opsiconfd pcpatch 4096 Dec  4 11:54 hwaudit
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 12:08 hwinvent
drwxrws---  4 opsiconfd pcpatch 4096 Dec  4 11:56 jedit
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 12:08 memtest86
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 12:08 ntfs-restore-image
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 12:08 ntfs-write-image
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 12:08 opsi-template
drwxrws---  3 opsiconfd pcpatch 4096 Dec  4 12:08 opsi-template-with-admin
drwxrws---  3 opsiconfd pcpatch 4096 Dec  4 12:08 opsi-winst
drwxrws---  5 opsiconfd pcpatch 4096 Dec  4 12:08 opsi-winst-test
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 12:08 shutdownwanted
drwxrws---  3 opsiconfd pcpatch 4096 Dec  4 12:08 swaudit
drwxrws---  6 opsiconfd pcpatch 4096 Dec  4 12:08 win2003
drwxrws---  6 opsiconfd pcpatch 4096 Dec  4 12:08 win2003-r2-x64
drwxrws---  7 opsiconfd pcpatch 4096 Dec  4 12:08 win2008
drwxrws---  7 opsiconfd pcpatch 4096 Dec  4 12:08 win2008-r2
drwxrws---  7 opsiconfd pcpatch 4096 Dec  4 12:08 win2008-x64
drwxrws---  6 opsiconfd pcpatch 4096 Dec  4 12:08 win2k
drwxrws---  7 opsiconfd pcpatch 4096 Dec  4 12:08 win7
drwxrws---  7 opsiconfd pcpatch 4096 Dec  4 12:08 win7-x64
drwxrws---  7 opsiconfd pcpatch 4096 Dec  4 12:08 winvista
drwxrws---  7 opsiconfd pcpatch 4096 Dec  4 12:08 winvista-x64
drwxrws---  6 opsiconfd pcpatch 4096 Dec  4 12:08 winxppro
drwxrws---  6 opsiconfd pcpatch 4096 Dec  4 12:08 winxppro-x64
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 12:08 wipedisk
Ein "opsi-product-updater -i -vv" sagt opsi-client-agent ist installiert (Sternchen im Log kommen von mir)

Code: Alles auswählen

root@opsi:/opt/pcbin/install# opsi-product-updater -i -vv
Zsync command found: /usr/bin/zsync
Reading config file '/etc/opsi/opsi-product-updater.conf'
Using Proxy: http://172.16.1.27:3128
Getting installed products
Getting info for local packages in '/var/lib/opsi/repository'
Getting package infos from repository 'http://download.uib.de'
Using Proxy: http://172.16.1.27:3128
config-win-base_4.0.1-1.opsi - installation not required: installed version '4.0.1-1' of product 'config-win-base' is up to date
hwaudit_4.0.5-1.opsi - installation not required: installed version '4.0.5-1' of product 'hwaudit' is up to date
javavm_1.6.0.33-2.opsi - installation not required: installed version '1.6.0.33-2' of product 'javavm' is up to date
jedit_4.5.2-2.opsi - installation not required: installed version '4.5.2-2' of product 'jedit' is up to date
opsi-adminutils_4.0.2.1-2.opsi - installation not required: installed version '4.0.2.1-2' of product 'opsi-adminutils' is up to date
*** opsi-client-agent_4.0.2.1-2.opsi - installation not required: installed version '4.0.2.1-2' of product 'opsi-client-agent' is up to date ***
opsi-template-with-admin_4.0.2-2.opsi - installation not required: installed version '4.0.2-2' of product 'opsi-template-with-admin' is up to date
opsi-template_4.0.2-2.opsi - installation not required: installed version '4.0.2-2' of product 'opsi-template' is up to date
opsi-winst-test_4.11.3-3.opsi - installation not required: installed version '4.11.3-3' of product 'opsi-winst-test' is up to date
opsi-winst_4.11.3.3-1.opsi - installation not required: installed version '4.11.3.3-1' of product 'opsi-winst' is up to date
shutdownwanted_1.0-4.opsi - installation not required: installed version '1.0-4' of product 'shutdownwanted' is up to date
swaudit_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'swaudit' is up to date
hwinvent_4.0-1.opsi - installation not required: installed version '4.0-1' of product 'hwinvent' is up to date
memtest86_3.5b-1.opsi - installation not required: installed version '3.5b-1' of product 'memtest86' is up to date
ntfs-restore-image_4.0-1.opsi - installation not required: installed version '4.0-1' of product 'ntfs-restore-image' is up to date
ntfs-write-image_4.0-1.opsi - installation not required: installed version '4.0-1' of product 'ntfs-write-image' is up to date
win2k_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'win2k' is up to date
win7-x64_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'win7-x64' is up to date
win7_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'win7' is up to date
win2003-r2-x64_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'win2003-r2-x64' is up to date
win2003_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'win2003' is up to date
win2008-r2_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'win2008-r2' is up to date
win2008-x64_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'win2008-x64' is up to date
win2008_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'win2008' is up to date
winvista-x64_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'winvista-x64' is up to date
winvista_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'winvista' is up to date
winxppro-x64_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'winxppro-x64' is up to date
winxppro_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'winxppro' is up to date
wipedisk_1.0-2.opsi - installation not required: installed version '1.0-2' of product 'wipedisk' is up to date
Ich habe mal ein paar Tage davor im Vorfeld auf einer VMWare-machine schon mal ein OPSI Depot-Server installiert gehabt und meine mich zu erinnern, dass da das Verzeichnis da war. Da meine Installation in einem VServer läuft könnte ich den notfalls auch nochmal einreißen und nochmal von vorne anfangen. Aber lieber wärs mir die Ursache zu finden (Debug before Re-Install :))

Kann ich OPSI Pakete re-installieren?
Ich bin im Handbuch auch bisher nicht weitergekommen als bis hier hin. Sprich: Ich habe noch kein wirklichen Plan von OPSI. Versuch aber gerade welchen zu bekommen :)

Sehe ich das richtig das in dem Share ein Verzeichnis "Opsi-Client_Agent" zu finden sein müsste?
So blind kann ich fast nicht sein, weil ich habs ja schon einmal aufgesetzt und da kann ich nicht erinnern den Hazzle gehabt zu haben.
Wie/Wo kriege ich das Verzeichnis her?
Zuletzt geändert von Peter Nuding am 11 Dez 2012, 14:49, insgesamt 1-mal geändert.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1411
Registriert: 01 Jul 2008, 12:10

Re: opsi-client-agent / service_setup.cmd fehlt

Beitrag von wolfbardo »

Wahrscheinlich finden sich die Pakete noch in

Code: Alles auswählen

/var/lib/opsi/repository
und z.B. der opsi-client-agent sollte sich mittels

Code: Alles auswählen

opsi-package-manager -i /var/lib/opsi/repository/opsi-client-agent*opsi
bereitstellen lassen.

Gruss
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


Peter Nuding
Beiträge: 9
Registriert: 10 Dez 2012, 14:39

Re: opsi-client-agent / service_setup.cmd fehlt

Beitrag von Peter Nuding »

Hallo und Danke erst mal für die Infos.
Eine Neuinstallation von dem Paket endet mit einem Fehler.
root@opsi:/var/lib/opsi/repository# opsi-package-manager -i /var/lib/opsi/repository/opsi-client-agent*opsi
Errors occured:
Failure while processing Install of package(s) /var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi on depot 'opsi.gfk.sozna.de':
Backend error: Failed to install package '/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi' on depot 'opsi.gfk.sozna.de': Failed to extract data from package '/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi': Failed to extract archive '/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi': Command '/bin/cat "/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi" | /bin/cpio --quiet -idumv "CLIENT_DATA*" "SERVER_DATA*"' failed with code 1: (error on server)
md5 Summe scheint aber zu stimmen:

root@opsi:/var/lib/opsi/repository# cat opsi-client-agent_4.0.2.1-2.opsi.md5
f278bd28c3d5e7f616cadd4c5e706074

root@opsi:/var/lib/opsi/repository# md5sum opsi-client-agent_4.0.2.1-2.opsi
f278bd28c3d5e7f616cadd4c5e706074 opsi-client-agent_4.0.2.1-2.opsi
SQL Problem? Rein Intuitive Vermutung :)
CPIO Problem?
Any hints?

Ich habe gestern abend noch zu Hause auf meinem Testrechner geschaut. Ebenfalls ein Linux VServer. Genau das gleiche Problem. Verzeichnis fehlt. Ob ich da die gleiche Fehlermeldung bekomme muss ich heute Abend mal testen. Kann es sein das es am VServer liegt?
Weil zwei mal der gleiche Fehler auf zwei unterschiedlichen Installationen? Oder irgendwelche Scripte tun evtl. nicht das was sie sollen.

Notfalls würde ich das nochmal durchgeigen einmal auf realer hardware und einmal auf einem VServer.
Evtl. ein Bug?

Stellt sich jetzt die Fage:
Was geht schief?
Wie krieg ich es installiert?

Ich bin halt noch zu wenig drin.

Ach ja: Aus dem Logfile:

[5] [Dec 11 11:25:13] ================================================================================================= (Depotserver.py|147)
[5] [Dec 11 11:25:13] Installing package file '/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi' on depot 'opsi.gfk.sozna.de' (Depotserver.py|148)
[5] [Dec 11 11:25:13] Getting meta data from package '/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi' (Product.py|196)
[5] [Dec 11 11:25:13] Creating product in backend (Depotserver.py|183)
[5] [Dec 11 11:25:13] Locking product 'opsi-client-agent' on depot 'opsi.gfk.sozna.de' (Depotserver.py|186)
[5] [Dec 11 11:25:13] Checking package dependencies (Depotserver.py|204)
[5] [Dec 11 11:25:13] Running preinst script (Depotserver.py|207)
[5] [Dec 11 11:25:13] Running package script 'preinst' (Product.py|393)
[5] [Dec 11 11:25:13] Unpacking package files (Depotserver.py|211)
[5] [Dec 11 11:25:13] Extracting data from package '/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi' (Product.py|242)
[3] [Dec 11 11:25:13] (__init__.py|129)
[2] [Dec 11 11:25:13] Traceback: (Logger.py|742)
[2] [Dec 11 11:25:13] line 130 in '_extract' in file '/usr/lib/pymodules/python2.6/OPSI/Util/File/Archive/__init__.py' (Logger.py|742)
[2] [Dec 11 11:25:13] ==>>> Command '/bin/cat "/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi" | /bin/cpio --quiet -idumv "CLIENT_DATA*" "SERVER_DATA*"' failed with code 1: (__init__.py|135)
[2] [Dec 11 11:25:13] Traceback: (Logger.py|742)
[2] [Dec 11 11:25:13] line 218 in 'installPackage' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Depotserver.py' (Logger.py|742)
[2] [Dec 11 11:25:13] line 306 in 'extractData' in file '/usr/lib/pymodules/python2.6/OPSI/Util/Product.py' (Logger.py|742)
[2] [Dec 11 11:25:13] ==>>> Failed to extract data from package '/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi': Failed to extract archive '/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi': Command '/bin/cat "/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi" | /bin/cpio --quiet -idumv "CLIENT_DATA*" "SERVER_DATA*"' failed with code 1: (Depotserver.py|398)
Peter Nuding
Beiträge: 9
Registriert: 10 Dez 2012, 14:39

Re: opsi-client-agent / service_setup.cmd fehlt

Beitrag von Peter Nuding »

In /usr/lib/pymodules/python2.6/OPSI/Backend/Depotserver.py steht in Zeile 218 lediglich:

Code: Alles auswählen

ppf.extractData()
Python Problem?

root@opsi:/var/log/opsi# python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1411
Registriert: 01 Jul 2008, 12:10

Re: opsi-client-agent / service_setup.cmd fehlt

Beitrag von wolfbardo »

Hallo,

was sagt

Code: Alles auswählen

df -h
und

Code: Alles auswählen

cat /etc/issue
Gruss
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


Peter Nuding
Beiträge: 9
Registriert: 10 Dez 2012, 14:39

Re: opsi-client-agent / service_setup.cmd fehlt

Beitrag von Peter Nuding »

root@opsi:/var/log/opsi# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdv1 50G 1.6G 46G 4% /
none 16M 92K 16M 1% /tmp

...auf die Idee kam ich aber auch schon :)

root@opsi:/var/log/opsi# cat /etc/issue
Debian GNU/Linux 6.0 \n \l

root@opsi:/var/log/opsi# uname -a
Linux opsi 2.6.32-5-vserver-amd64 #1 SMP Sun Sep 23 12:45:03 UTC 2012 x86_64 GNU/Linux

root@opsi:/var/log/opsi# cpio --version
cpio (GNU cpio) 2.11


Vielleicht Probleme mit Sonderzeichen?
Ich meinte beim Installieren von dem OPSI was in den Ausgaben gesehen zu haben.
Eine Datei mit Sonderzeichen die er nicht kopieren konnte. Ich weiß es nur nicht mehr genau was das war.
Huschte aber beim Installieren in roten Lettern kurz über den Schirm. Das war eine Datei deren Dateiname darauf schließen ließ das es wohl irgendwelche Dateien mit Sonderzeichen wären. Ich habs den betreffend Ausschnitt nur leider nimmer im Puffer und instlog ist leer.

Kann ich das was das Scipt macht auch "von Hand" machen?
Die .opsi Pakete sind gezippte Dateien? Weil wenn ich
/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi im Hexeditor aufmache bekomme ich in den Headern:

Code: Alles auswählen


00000000   30 37 30 37  30 32 30 30  30 38 45 30  31 42 30 30  30 30 38 31  41 34 30 30  30 30 30 30  30 30 30 30  30 30 30 30  30 30 30 30  30 30 30 30  0707020008E01B000081A40000000000000000000000
0000002C   30 31 35 30  33 42 34 33  35 31 30 32  42 32 33 46  30 46 30 30  30 30 30 30  46 45 30 30  30 30 30 30  32 30 30 30  30 30 30 30  30 30 30 30  01503B435102B23F0F000000FE000000200000000000
00000058   30 30 30 30  30 30 30 30  30 30 30 30  31 34 35 41  30 42 42 41  33 42 43 4C  49 45 4E 54  5F 44 41 54  41 2E 63 70  69 6F 2E 67  7A 00 00 00  000000000000145A0BBA3BCLIENT_DATA.cpio.gz...


Wobei ich mich jetzt mit cpio mal so gar nicht auskenne ...
Peter Nuding
Beiträge: 9
Registriert: 10 Dez 2012, 14:39

Re: opsi-client-agent / service_setup.cmd fehlt

Beitrag von Peter Nuding »

Ok meine Frage zu cpio habe ich mir glaube ich eben selber beantwortet:
Lt. Doku ( Ja ich lese sowas :) Ob ich es verstehe ist wieder was anderes) ist es so:
by default cpio creates binary format archives, ...
Könnte ja sein das noch andere mit Halbwissen hier rumlaufen die das evtl. interessiert :)
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1411
Registriert: 01 Jul 2008, 12:10

Re: opsi-client-agent / service_setup.cmd fehlt

Beitrag von wolfbardo »

Peter Nuding hat geschrieben:root@opsi:/var/log/opsi# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdv1 50G 1.6G 46G 4% /
none 16M 92K 16M 1% /tmp

...auf die Idee kam ich aber auch schon :)


[/code]
opsi-package-manager benutzt zum entpacken als temporaeres Verzeichnis Von daher mal versuchen z.B. mittels

Code: Alles auswählen

 opsi-package-manager  -t /home/opsiproducts -i /var/lib/opsi/repository/opsi-client-agent*.opsi
Gruss
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


Peter Nuding
Beiträge: 9
Registriert: 10 Dez 2012, 14:39

[Gelöst] Re: opsi-client-agent / service_setup.cmd fehlt

Beitrag von Peter Nuding »

Ahhhh....

Code: Alles auswählen


[5] [Dec 11 13:31:16] Installing package file '/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi' on depot 'opsi.gfk.sozna.de' (Depotserver.py|148)
[5] [Dec 11 13:31:16] Getting meta data from package '/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi' (Product.py|196)
[5] [Dec 11 13:31:16] Creating product in backend (Depotserver.py|183)
[5] [Dec 11 13:31:16] Locking product 'opsi-client-agent' on depot 'opsi.gfk.sozna.de' (Depotserver.py|186)
[5] [Dec 11 13:31:16] Checking package dependencies (Depotserver.py|204)
[5] [Dec 11 13:31:16] Running preinst script (Depotserver.py|207)
[5] [Dec 11 13:31:16] Running package script 'preinst' (Product.py|393)
[5] [Dec 11 13:31:16] Unpacking package files (Depotserver.py|211)
[5] [Dec 11 13:31:16] Extracting data from package '/var/lib/opsi/repository/opsi-client-agent_4.0.2.1-2.opsi' (Product.py|242)
[5] [Dec 11 13:31:19] Setting product property states in backend (Depotserver.py|293)
[5] [Dec 11 13:31:19] Running postinst script (Depotserver.py|311)
[5] [Dec 11 13:31:19] Running package script 'postinst' (Product.py|393)
[5] [Dec 11 13:31:19] Creating package content file (Product.py|364)
[5] [Dec 11 13:31:19] Setting access rights of client-data files (Product.py|317)
[5] [Dec 11 13:31:19] Unlocking product 'opsi-client-agent_4.0.2.1-2' on depot 'opsi.gfk.sozna.de' (Depotserver.py|320)

Code: Alles auswählen

root@opsi:/var/lib/opsi/depot# ls -la
total 116
drwxrws--- 29 opsiconfd pcpatch 4096 Dec 11 13:31 .
drwxr-xr-x  3 root      root    4096 Dec  4 10:55 ..
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 11:54 config-win-base
drwxrws---  4 opsiconfd pcpatch 4096 Dec  4 11:54 hwaudit
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 12:08 hwinvent
drwxrws---  4 opsiconfd pcpatch 4096 Dec  4 11:56 jedit
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 12:08 memtest86
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 12:08 ntfs-restore-image
drwxrws---  2 opsiconfd pcpatch 4096 Dec  4 12:08 ntfs-write-image
drwxrws---  5 opsiconfd pcpatch 4096 Dec 11 13:31 opsi-client-agent
...
Muchos Gracias Senior! :)

Ich nehme mal an den /tmp Eintrag macht der VServer. Den habe ich übersehen weil ich betriebsblind dachte das /tmp mit in / hängt.
Wieder was gelernt :)

Also bei VServer -> /tmp checken.

Teste ich gleich mal heute Abend in meiner Installation zu Hause.
Bestimmt das gleiche Problem.

Ich versuche natürlich jetzt /tmp zu vergrößern. Ich muss allerdinge rausfinden wie das genau funktioniert. Weil ich damit rechnen muss das mir das sonst auch noch an anderer Stelle dazwischenfunkt.

Aber nochmal Danke. Jetzt komme ich hoffentlich weiter :)
Antworten