Seite 1 von 1

Fehler beim Setup

Verfasst: 10 Okt 2013, 07:39
von mkugler
Hallo, wenn wir folgenden Befehl eingeben: opsi-setup --init-current-config

bekommen wir die folgenden Meldungen:
[2] [Okt 10 07:28:02] Traceback: (Logger.py|742)
[2] [Okt 10 07:28:02] line 3299 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Okt 10 07:28:02] line 3251 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Okt 10 07:28:02] line 2607 in 'initializeBackends' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Okt 10 07:28:02] line 200 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] [Okt 10 07:28:02] line 304 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] [Okt 10 07:28:02] line 355 in '__loadBackends' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] [Okt 10 07:28:02] line 326 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|742)
[2] [Okt 10 07:28:02] line 395 in 'connect' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|742)
[2] [Okt 10 07:28:02] line 611 in '_jsonRPC' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|742)
[2] [Okt 10 07:28:02] line 123 in 'execute' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|742)
[2] [Okt 10 07:28:02] line 135 in 'waitForResult' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [Okt 10 07:28:02] ==>>> gaierror(-3, 'Tempor\xc3\xa4rer Fehler bei der Namensaufl\xc3\xb6sung') (opsi-setup|3307)
Traceback (most recent call last):
File "/usr/bin/opsi-setup", line 3308, in <module>
print >> sys.stderr, u"\nERROR: %s\n" % exception
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 17: ordinal not in range(128)

Hat jemand eine Idee, was wir ändern müssen?

Re: Fehler beim Setup

Verfasst: 10 Okt 2013, 09:16
von ueluekmen
Hi,

was sagt den:

Code: Alles auswählen

getent hosts $(hostname -f)
Vielleicht solltest du etwas mehr schreiben, was du versuchst. Das sieht aus, als wenn du eine Multidepot-Umgebung hast? Wenn ja, kann der Server den Configserver DNS-Seitig auflösen?

Re: Fehler beim Setup

Verfasst: 16 Dez 2013, 15:45
von d.folger
Hallo ueluekmen,

habe geraden die OPSI VM heruntergeladen, gestartet und bin die Einrichtung laut Handbuch durchgegangen aber bekomme denselben Fehler wie mkugler.

Code: Alles auswählen

[2] [Dez 16 15:34:22] Traceback: (Logger.py|742)
[2] [Dez 16 15:34:22]      line 3299 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Dez 16 15:34:22]      line 3251 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Dez 16 15:34:22]      line 2607 in 'initializeBackends' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Dez 16 15:34:22]      line 200 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] [Dez 16 15:34:22]      line 304 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] [Dez 16 15:34:22]      line 355 in '__loadBackends' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] [Dez 16 15:34:22]      line 326 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|742)
[2] [Dez 16 15:34:22]      line 395 in 'connect' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|742)
[2] [Dez 16 15:34:22]      line 611 in '_jsonRPC' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|742)
[2] [Dez 16 15:34:22]      line 123 in 'execute' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|742)
[2] [Dez 16 15:34:22]      line 135 in 'waitForResult' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [Dez 16 15:34:22]      ==>>> gaierror(-3, 'Tempor\xc3\xa4rer Fehler bei der Namensaufl\xc3\xb6sung') (opsi-setup|3307)
Traceback (most recent call last):
  File "/usr/bin/opsi-setup", line 3308, in <module>
    print >> sys.stderr, u"\nERROR: %s\n" % exception
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 17: ordinal not in range(128)
Habe auch deinen Tipp befolgt, bekomme aber meinen Servernamen zurück und die IP-Adresse stimmt auch.

Code: Alles auswählen

getent hosts $(hostname -f)
<IP-Number> <full qualified hostname> <hostname>
Hier noch meine dispatch.conf

Code: Alles auswählen

# -*- coding: utf-8 -*-
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
# =      backend dispatch configuration                                                                         =
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
#
# This file configures which methods are dispatched to which backends.
# Entries has to follow the form:
# <regular expression to match method name(s)> : <comma separated list of backend name(s)>
#
# Backend names have to match a backend configuraton file basename <backend name>.conf beneath /etc/opsi/backends.
# For every method executed on backend dispatcher the first matching regular expression will be decisive.
#
# Typical configurations:
#    file, opsipxeconfd and dhcpd backend:
#       backend_.*         : file, opsipxeconfd, dhcpd
#       host_.*            : file, opsipxeconfd, dhcpd
#       productOnClient_.* : file, opsipxeconfd
#       configState_.*     : file, opsipxeconfd
#       .*                 : file
#
#    jsonrpc, opsipxeconfd and dhcpd backend:
#       backend_.*         : jsonrpc, opsipxeconfd, dhcpd
#       .*                 : jsonrpc
#
#    ldap as main backend, mysql as hw/sw invent and license management backend, opsipxeconfd and dhcpd backend:
#       backend_.*         : ldap, mysql, opsipxeconfd, dhcpd
#       host_.*            : ldap, opsipxeconfd, dhcpd
#       productOnClient_.* : ldap, opsipxeconfd
#       configState_.*     : ldap, opsipxeconfd
#       license.*          : mysql
#       softwareLicense.*  : mysql
#       audit.*            : mysql
#       .*                 : ldap
#

backend_.* : jsonrpc, opsipxeconfd
.*         : jsonrpc
Vielen Dank für deine Hilfe.

Re: Fehler beim Setup

Verfasst: 16 Dez 2013, 16:17
von ueluekmen
Hallo folger,

schau mal was in deiner Datei:

/etc/opsi/backends/jsonrpc.conf

Der Server bei address muss auflösbar sein. Ich vermute, dass dort dein Problem liegt.

Re: Fehler beim Setup

Verfasst: 17 Dez 2013, 07:53
von d.folger
Guten Morgen ueluekman,

in meiner jsonrpc.conf sind keine Einträge gesetzt worden.
Wie kann ich diese setzen lassen? Denn als Passwort kann ich nicht einfach irgendetwas reinschreiben.

Code: Alles auswählen

# -*- coding: utf-8 -*-

module = 'JSONRPC'
config = {
    "address":  u"",
    "username": u"",
    "password": u"",
    "deflate":  True
}


Re: Fehler beim Setup

Verfasst: 19 Dez 2013, 07:16
von d.folger
Da bei mir ein Depotserver installiert wurde, konnte ich das Problem beheben, indem ich die Ports 139 und 445 zum Configserver freigegeben habe.
In der jsonrpc.conf wurde alles eingetragen. Vielen Dank für deine Bemühungen ueluekmen.

Re: Fehler beim Setup

Verfasst: 19 Dez 2013, 13:35
von ueluekmen
Hi,

für den Fall das das noch mal auftreten sollte kannst du einfach das Depot neu registrieren:

Code: Alles auswählen

opsi-setup --register-depot
Das kann man auch mehrmals machen, dass ist unschädlich. Bei diesem Schritt wird die jsonrpc.conf automatisch gefüllt.