opsiconfd unter upsi3.4 / VMWare / Demoversion läuft nicht.

Antworten
roch
Beiträge: 5
Registriert: 18 Nov 2009, 11:32

opsiconfd unter upsi3.4 / VMWare / Demoversion läuft nicht.

Beitrag von roch »

Guten Tag,
habe das fertige Image von opsi 3.4 unter VMWare installiert.
Habe den Konfigurationsschritt 1 gemacht.
Habe die Packages runtergeladen.
Habe die modules-Datei importiert.
Beim Befehl opsi-package-manager -i *.opsi scheitere ich, da der opsiconfd nicht läuft.
Kann ihn mit /etc/init.d/opsiconfd start auch nicht starten.
In der Logdatei steht:
==================================================================
OPSI configuration-service starting
==================================================================
(opsiconfd|1418)
[3] [Nov 19 17:04:43] getPublicKeyObject is deprecated since Twisted Conch 0.9. Use Key.fromString(). (MySQL.py|233)
[3] [Nov 19 17:04:43] getPublicKeyObject is deprecated since Twisted Conch 0.9. Use Key.fromString(). (MySQL.py|233)
[4] [Nov 19 17:04:43] Added static content '/' which points to directory '/usr/share/opsiconfd/static' (opsiconfd|1216)
[4] [Nov 19 17:04:43] Added webdav content 'opsi-depot' which points to directory '/opt/pcbin/install' (opsiconfd|1243)
[4] [Nov 19 17:04:43] Added static content 'configed' which points to directory '/usr/lib/configed' (opsiconfd|1238)
[4] [Nov 19 17:04:43] Added static content 'products' which points to directory '/var/lib/opsi/products' (opsiconfd|1262)
[1] [Nov 19 17:04:43] Traceback: (Logger.py|648)
[1] [Nov 19 17:04:43] line 1500 in '<module>' in file '/usr/sbin/opsiconfd' (Logger.py|648)
[1] [Nov 19 17:04:43] line 1466 in 'main' in file '/usr/sbin/opsiconfd' (Logger.py|648)
[1] [Nov 19 17:04:43] line 353 in 'listenSSL' in file '/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py' (Logger.py|648)
[1] [Nov 19 17:04:43] line 736 in 'startListening' in file '/usr/lib/python2.5/site-packages/twisted/internet/tcp.py' (Logger.py|648)
[1] [Nov 19 17:04:43] line 168 in 'createInternetSocket' in file '/usr/lib/python2.5/site-packages/twisted/internet/ssl.py' (Logger.py|648)
[1] [Nov 19 17:04:43] line 1011 in 'getContext' in file '/usr/sbin/opsiconfd' (Logger.py|648)
[1] [Nov 19 17:04:43] ==>>> [('PEM routines', 'PEM_read_bio', 'no start line'), ('SSL routines', 'SSL_CTX_use_certificate_file', 'PEM lib')] (opsiconfd|1516)
[2] [Nov 19 17:04:43] ERROR: (opsiconfd|1517)
[2] [Nov 19 17:04:43] (opsiconfd|1517)
[2] [Nov 19 17:04:43] [('PEM routines', 'PEM_read_bio', 'no start line'), ('SSL routines', 'SSL_CTX_use_certificate_file', 'PEM lib')] (opsiconfd|1517)
[2] [Nov 19 17:04:43]
(opsiconfd|1517)

Kann mir jemand bitte helfen?
Danke
Thomas
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: opsiconfd unter upsi3.4 / VMWare / Demoversion läuft nicht.

Beitrag von d.oertel »

Hi,

klingt für mich so, als wäre beim Aufruf des 1stboot.py das SSL-Zertifikat nicht richtig erzeugt worden.

Es müsste unter /var/lib/1sboot eine Logdatei geben (1sboot.log) diese bitte mal posten.

Ansonsten 1stboot nochmal aufrufen - vielleicht klappt es ja beim 2.ten Durchlauf.

gruss
d.oertel


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


roch
Beiträge: 5
Registriert: 18 Nov 2009, 11:32

Re: opsiconfd unter upsi3.4 / VMWare / Demoversion läuft nicht.

Beitrag von roch »

Danke, hatte beim 1stboot.py die Bundeslandangabe nicht gemacht. Nun läuft es. Danke!
Gruß
Thomas
HardySim
Beiträge: 73
Registriert: 01 Feb 2010, 16:04

Re: opsiconfd unter upsi3.4 / VMWare / Demoversion läuft nicht.

Beitrag von HardySim »

.. habe mal wegen dem ssl zertifikat in die 1stboot.log geschaut, finde aber keinen fehler der auf ssl hinweisen würde
Feb 02 08:23:47 [debug] Executing: bash -x /tmp/1stboot_execonchange.sh 2>&1 || true (1stboot.py|268)
Feb 02 08:23:47 [debug] ->>> ++ hostname -f (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> + echo hostname:pc073.wpe.local (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> ++ grep address /etc/network/interfaces (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> ++ cut -f 2 (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> ++ cut '-d ' -f2 (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> + echo ip: (Posix.py|161)
Feb 02 08:23:47 [debug] Exit code: 0 (Posix.py|204)
Feb 02 08:23:47 [debug] FILE: /var/lib/1stboot/configed/tmp/opsiconfd.cert (1stboot.py|390)
Feb 02 08:23:47 [debug] BEFORE: @cert_country@
(1stboot.py|391)
Feb 02 08:23:47 [debug] MATCH: @cert_country@ (1stboot.py|392)
Feb 02 08:23:47 [debug] AFTER: DE
(1stboot.py|396)
Feb 02 08:23:47 [debug] FILE: /var/lib/1stboot/configed/tmp/opsiconfd.cert (1stboot.py|390)
Feb 02 08:23:47 [debug] BEFORE: @cert_state@
(1stboot.py|391)
Feb 02 08:23:47 [debug] MATCH: @cert_state@ (1stboot.py|392)
Feb 02 08:23:47 [debug] AFTER: Hessen
(1stboot.py|396)
Feb 02 08:23:47 [debug] FILE: /var/lib/1stboot/configed/tmp/opsiconfd.cert (1stboot.py|390)
Feb 02 08:23:47 [debug] BEFORE: @cert_locality@
(1stboot.py|391)
Feb 02 08:23:47 [debug] Executing: bash -x /tmp/1stboot_execonchange.sh 2>&1 || true (1stboot.py|268)
Feb 02 08:23:47 [debug] ->>> ++ hostname -f (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> + echo hostname:pc073.xxx.local (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> ++ grep address /etc/network/interfaces (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> ++ cut -f 2 (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> ++ cut '-d ' -f2 (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> + echo ip: (Posix.py|161)
Feb 02 08:23:47 [debug] Exit code: 0 (Posix.py|204)
Feb 02 08:23:47 [debug] FILE: /var/lib/1stboot/configed/tmp/opsiconfd.cert (1stboot.py|390)
Feb 02 08:23:47 [debug] BEFORE: @cert_country@
(1stboot.py|391)
Feb 02 08:23:47 [debug] MATCH: @cert_country@ (1stboot.py|392)
Feb 02 08:23:47 [debug] AFTER: DE
(1stboot.py|396)
Feb 02 08:23:47 [debug] FILE: /var/lib/1stboot/configed/tmp/opsiconfd.cert (1stboot.py|390)
Feb 02 08:23:47 [debug] BEFORE: @cert_state@
(1stboot.py|391)
Feb 02 08:23:47 [debug] MATCH: @cert_state@ (1stboot.py|392)
Feb 02 08:23:47 [debug] AFTER: Hessen
(1stboot.py|396)
Feb 02 08:23:47 [debug] FILE: /var/lib/1stboot/configed/tmp/opsiconfd.cert (1stboot.py|390)
Feb 02 08:23:47 [debug] BEFORE: @cert_locality@
(1stboot.py|391)
Feb 02 08:23:47 [debug] MATCH: @cert_locality@ (1stboot.py|392)
Feb 02 08:23:47 [debug] AFTER: Gexxxx
(1stboot.py|396)
Feb 02 08:23:47 [debug] FILE: /var/lib/1stboot/configed/tmp/opsiconfd.cert (1stboot.py|390)
Feb 02 08:23:47 [debug] BEFORE: @cert_organization@
(1stboot.py|391)
Feb 02 08:23:47 [debug] MATCH: @cert_organization@ (1stboot.py|392)
Feb 02 08:23:47 [debug] AFTER: Waxxx
(1stboot.py|396)
Feb 02 08:23:47 [debug] FILE: /var/lib/1stboot/configed/tmp/opsiconfd.cert (1stboot.py|390)
Feb 02 08:23:47 [debug] BEFORE: @cert_unit@
(1stboot.py|391)
Feb 02 08:23:47 [debug] MATCH: @cert_unit@ (1stboot.py|392)
Feb 02 08:23:47 [debug] AFTER: (1stboot.py|396)
Feb 02 08:23:47 [debug] FILE: /var/lib/1stboot/configed/tmp/opsiconfd.cert (1stboot.py|390)
Feb 02 08:23:47 [debug] BEFORE: @hostname@.@domain@
(1stboot.py|391)
Feb 02 08:23:47 [debug] MATCH: @hostname@ (1stboot.py|392)
Feb 02 08:23:47 [debug] AFTER: pc073.@domain@
(1stboot.py|396)
Feb 02 08:23:47 [debug] FILE: /var/lib/1stboot/configed/tmp/opsiconfd.cert (1stboot.py|390)
Feb 02 08:23:47 [debug] BEFORE: pc073.@domain@
(1stboot.py|391)
Feb 02 08:23:47 [debug] MATCH: @domain@ (1stboot.py|392)
Feb 02 08:23:47 [debug] AFTER: pc073.xxx.local
(1stboot.py|396)
Feb 02 08:23:47 [debug] FILE: /var/lib/1stboot/configed/tmp/opsiconfd.cert (1stboot.py|390)
Feb 02 08:23:47 [debug] BEFORE: @cert_email@
(1stboot.py|391)
Feb 02 08:23:47 [debug] MATCH: @cert_email@ (1stboot.py|392)
Feb 02 08:23:47 [debug] AFTER: (1stboot.py|396)
Feb 02 08:23:47 [debug] Executing: md5sum /tmp/opsiconfd.cert (1stboot.py|187)
Feb 02 08:23:47 [debug] ->>> 07ee9fdbb8e62de31d42202b1b462c02 /tmp/opsiconfd.cert (Posix.py|161)
Feb 02 08:23:47 [debug] Exit code: 0 (Posix.py|204)
Feb 02 08:23:47 [info] Saving backup of file '/tmp/opsiconfd.cert' to '/var/lib/1stboot/backup/tmp/opsiconfd.cert'. (1stboot.py|176)
Feb 02 08:23:47 [info] Copying from /tmp/opsiconfd.cert to /var/lib/1stboot/backup/tmp/opsiconfd.cert (Posix.py|347)
Feb 02 08:23:47 [info] Copy done! (Posix.py|381)
Feb 02 08:23:47 [info] Installing file '/var/lib/1stboot/configed/tmp/opsiconfd.cert' => '/tmp/opsiconfd.cert'. (1stboot.py|163)
Feb 02 08:23:47 [info] Copying from /var/lib/1stboot/configed/tmp/opsiconfd.cert to /tmp/opsiconfd.cert (Posix.py|347)
Feb 02 08:23:47 [info] Copy done! (Posix.py|381)
Feb 02 08:23:47 [debug] Executing: bash -xc '/etc/init.d/opsiconfd stop
rm /etc/opsi/opsiconfd.pem
cat /tmp/opsiconfd.cert | openssl req -new -x509 -keyout /etc/opsi/opsiconfd.pem -out /etc/opsi/opsiconfd.pem -days 365 -nodes 1>/dev/null 2>/dev/null
chown opsiconfd:opsiadmin /etc/opsi/opsiconfd.pem || true
chmod 640 /etc/opsi/opsiconfd.pem
/etc/init.d/opsiconfd start' 2>&1 || true (1stboot.py|410)
Feb 02 08:23:47 [debug] ->>> + /etc/init.d/opsiconfd stop (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> Stopping opsi config service... (not running). (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> + rm /etc/opsi/opsiconfd.pem (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> + cat /tmp/opsiconfd.cert (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> + openssl req -new -x509 -keyout /etc/opsi/opsiconfd.pem -out /etc/opsi/opsiconfd.pem -days 365 -nodes (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> + chown opsiconfd:opsiadmin /etc/opsi/opsiconfd.pem (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> + chmod 640 /etc/opsi/opsiconfd.pem (Posix.py|161)
Feb 02 08:23:47 [debug] ->>> + /etc/init.d/opsiconfd start (Posix.py|161)
Feb 02 08:23:58 [debug] ->>> Starting opsi config service............ (failed). (Posix.py|161)
Feb 02 08:23:58 [debug] Exit code: 0 (Posix.py|204)
Feb 02 08:23:58 [debug] FILE: /var/lib/1stboot/configed/etc/hostname (1stboot.py|390)
Antworten