Installation Problem: ERROR: Bad fqdn: '<PC-Name>' [gelöst]]

Antworten
fairsein
Beiträge: 11
Registriert: 30 Mai 2013, 09:23

Installation Problem: ERROR: Bad fqdn: '<PC-Name>' [gelöst]]

Beitrag von fairsein »

Hallo an alle,

Ich habe folgendes Problem. Ich versuche schon seit zwei Tagen OPSI auf einem Ubuntu 13.04 zum Laufen zu bekommen. Das Problem liegt meiner Meinung nach daran, dass die /etc/hosts nicht richtig angepasst ist. Zur Zeit sieht es so aus, dass sie folgendes enthält:

Code: Alles auswählen

# 127.0.0.1 localhost
# 127.0.0.1 <PC-Name>

10.1.4.135 test.uib.local
# 10.1.4.135 <PC-Name>
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Daraufhin gibt getent hosts $(hostname -f) folgendes zurück:

Code: Alles auswählen

hostname: System error
10.1.3.137      test.uib.local
127.0.0.1       ip6-localhost ip6-loopback
Bei der Installation von opsi-depotserver meldet dann das Paket opsi-linux-bootimage diese:

Code: Alles auswählen

[2] Traceback: (Logger.py|742)
[2]      line 1571 in '<module>' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2]      line 219 in 'main' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2]      line 200 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2]      line 304 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2]      line 355 in '__loadBackends' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2]      line 61 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/File.py' (Logger.py|742)
[2]      line 473 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py' (Logger.py|742)
[2]      line 733 in 'getfqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Util/__init__.py' (Logger.py|742)
[2]      line 215 in 'forceFqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Types.py' (Logger.py|742)
[2]      ==>>> Bad fqdn: '<PC-Name>' (opsi-admin|1581)
opsi-depotserver (4.0.3.2-1) wird eingerichtet ...
[4] [May 30 09:20:13] Bad fqdn: '<PC-Name>' (opsi-setup|584)
[2] [May 30 09:20:13] Traceback: (Logger.py|742)
[2] [May 30 09:20:13]      line 3299 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [May 30 09:20:13]      line 3287 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [May 30 09:20:13]      line 596 in 'update' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [May 30 09:20:13]      line 2704 in 'initializeConfigs' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [May 30 09:20:13]      line 200 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] [May 30 09:20:13]      line 304 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] [May 30 09:20:13]      line 355 in '__loadBackends' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] [May 30 09:20:13]      line 61 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/File.py' (Logger.py|742)
[2] [May 30 09:20:13]      line 473 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [May 30 09:20:13]      line 733 in 'getfqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Util/__init__.py' (Logger.py|742)
[2] [May 30 09:20:13]      line 215 in 'forceFqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Types.py' (Logger.py|742)
[2] [May 30 09:20:13]      ==>>> Bad fqdn: '<PC-Name>' (opsi-setup|3307)

ERROR: Bad fqdn: '<PC-Name>'

[5] [May 30 09:20:14] Setting rights (opsi-setup|425)
[5] [May 30 09:20:14] Getting current system config (opsi-setup|79)
[2] [May 30 09:20:14] Traceback: (Logger.py|742)
[2] [May 30 09:20:14]      line 3299 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [May 30 09:20:14]      line 3248 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [May 30 09:20:14]      line 438 in 'setRights' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [May 30 09:20:14]      line 85 in 'getSysConfig' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [May 30 09:20:14]      line 733 in 'getfqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Util/__init__.py' (Logger.py|742)
[2] [May 30 09:20:14]      line 215 in 'forceFqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Types.py' (Logger.py|742)
[2] [May 30 09:20:14]      ==>>> Bad fqdn: '<PC-Name>' (opsi-setup|3307)

ERROR: Bad fqdn: '<PC-Name>'

[5] [May 30 09:20:15] Setting rights (opsi-setup|425)
[5] [May 30 09:20:15] Getting current system config (opsi-setup|79)
[2] [May 30 09:20:15] Traceback: (Logger.py|742)
[2] [May 30 09:20:15]      line 3299 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [May 30 09:20:15]      line 3248 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [May 30 09:20:15]      line 438 in 'setRights' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [May 30 09:20:15]      line 85 in 'getSysConfig' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [May 30 09:20:15]      line 733 in 'getfqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Util/__init__.py' (Logger.py|742)
[2] [May 30 09:20:15]      line 215 in 'forceFqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Types.py' (Logger.py|742)
[2] [May 30 09:20:15]      ==>>> Bad fqdn: '<PC-Name>' (opsi-setup|3307)

ERROR: Bad fqdn: '<PC-Name>'
PS: Ich habe auch schon versucht, OPSI mit dem VMwarePlayer zu starten. Dort habe ich jedoch keine Netzwerkverbindung...

Ich hoffe, dass ich alle relevanten Daten geliefert habe und würde mich über eure Hilfe freuen

Danke im Voraus
Gruß fairsein
Zuletzt geändert von fairsein am 31 Mai 2013, 17:46, insgesamt 1-mal geändert.
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Installation Problem: ERROR: Bad fqdn: '<PC-Name>'

Beitrag von n.wenselowski »

Hallo fairsein,

Es wäre nun interessant zu wissen, ob <PC Name> wirklich auch ein FQDN (https://de.wikipedia.org/wiki/FQDN) ist, was aber ohne ihn zu kennen schwer zu beurteilen ist. ;)

Als kleines Beispiel die /etc/hosts von einem meiner Test-Server:

Code: Alles auswählen

127.0.0.1       localhost
192.168.20.150  xubuntu-oat.uib.local   xubuntu-oat

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
In deiner hosts-Datei würde ich die erste Zeile wieder einkommentieren, damit localhost korrekt aufgelöst wird.
Angenommen der Tatsache dass test.uib.local der FQDN deines Rechners sowie 10.1.4.135 die zugehörige IP ist, sollte folgende Zeile in deiner hosts-Datei zu finden sein:

Code: Alles auswählen

10.1.4.135 test.uib.local test

Mit freundlichen Grüßen

N. Wenselowski

Code: Alles auswählen

import OPSI
fairsein
Beiträge: 11
Registriert: 30 Mai 2013, 09:23

Re: Installation Problem: ERROR: Bad fqdn: '<PC-Name>'

Beitrag von fairsein »

Danke für die Hilfe.

Der PC-Name ist note-9012. Das ist glaube ich kein FQDN. Mein etc/hosts sieht jetzt so aus:

Code: Alles auswählen

 127.0.0.1 localhost
# 127.0.0.1 note-9012

10.1.4.135 note-9012 test
# 10.1.4.135 note-9012
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Bei der Installation kommt immer noch ERROR: Bad fqdn: 'note-9012'. Auch bei folgender etc/hosts kommt der gleiche Fehler:

Code: Alles auswählen

 127.0.0.1 localhost
# 127.0.0.1 note-9012

10.1.3.137 ubuntu-oat.uib.local   ubuntu-oat
# 10.1.3.137 note-9012
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Gruß fairsein
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1940
Registriert: 28 Mai 2008, 10:53

Re: Installation Problem: ERROR: Bad fqdn: '<PC-Name>'

Beitrag von ueluekmen »

Hi,

hier liegt ein Missverständnis vor. Der host-Eintrag muss so sein, wie der Server sich selber kennt:

probier mal statt:
fairsein hat geschrieben:10.1.4.135 note-9012 test

Code: Alles auswählen

10.1.4.135 note-9012.domain.local note-9012 test
Der Eintrag von meinem Kollegen war nur als Beispiel gedacht und nicht zum übernehmen. :D


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


fairsein
Beiträge: 11
Registriert: 30 Mai 2013, 09:23

Re: Installation Problem: ERROR: Bad fqdn: '<PC-Name>'

Beitrag von fairsein »

Danke für den Tipp. Das hat geklappt.
Antworten