Seite 1 von 1

ERROR: Bad fqdm: 'ubuntu'

Verfasst: 21 Mär 2012, 20:03
von aseloth
Hallo zusammen,

ich versuche opsi auf dem Ubuntu 11.10 genau wie in "opsi-getting-startet-stable" beschrieben zu installieren und bei der Installation von 'opsi-depotserver' kommt mehrmals die Fehlermeldung "bad fqdn: ubuntu".
Hier ist ein Ausschnitt aus dem Terminalfenster.

Code: Alles auswählen

...(bisher alles in grünem Bereich)
Setting up isc-dhcp-server (4.1.1-P1-17ubuntu10.1) ...
Generating /etc/default/isc-dhcp-server...
 * Starting ISC DHCP server dhcpd                                                * check syslog for diagnostics.
                                                                         [fail]
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
Setting up libdbi1 (0.8.4-5.1) ...
Setting up librrd4 (1.4.3-3.1ubuntu2) ...
Setting up python-pyasn1 (0.0.11a-1) ...
Setting up python-twisted-conch (1:11.0.0-1) ...
Setting up python-magic (5.04-5ubuntu3) ...
Setting up python-ldap (2.3.13-1) ...
Setting up python-newt (0.52.11-2ubuntu8) ...
Setting up python-mysqldb (1.2.3-0ubuntu1) ...
Setting up python-sqlalchemy (0.6.8-1) ...
Setting up python-twisted-mail (11.0.0-1) ...
Setting up python-pyparsing (1.5.2-2) ...
Setting up python-ldaptor (0.0.43+debian1-4ubuntu1) ...
Setting up python-m2crypto (0.20.1+dfsg1-1.1ubuntu1) ...
Setting up python-twisted-lore (11.0.0-1) ...
Setting up python-twisted-news (11.0.0-1) ...
Setting up python-twisted-runner (11.0.0-1) ...
Setting up python-twisted-words (11.0.0-1) ...
Setting up python-rrdtool (1.4.3-3.1ubuntu2) ...
Setting up python-avahi (0.6.30-4ubuntu1) ...
Setting up zsync (0.6.1-3ubuntu1) ...
Setting up opsi-linux-bootimage (20120119-1) ...
Setting up dhcp3-server (4.1.1-P1-17ubuntu10.1) ...
Setting up python-sqlalchemy-ext (0.6.8-1) ...
Setting up ttf-dejavu-extra (2.33-1ubuntu1) ...
Setting up ttf-dejavu (2.33-1ubuntu1) ...
Processing triggers for python-twisted-core ...
Setting up python-opsi (4.0.1.36-1) ...
Setting up python-twisted (11.0.0-2) ...
Setting up opsiconfd (4.0.1.9-4) ...
OK
Generating a 1024 bit RSA private key
............................................++++++
.++++++
writing new private key to '/etc/opsi/opsiconfd.pem'
-----
1024 semi-random bytes loaded
Generating DH parameters, 512 bit long safe prime, generator 2
This is going to take a long time
......+.................................................................................+..................................................+...........................+................................+......................+.........................................................+.............................................+...............+....+..........+.........................................................................+....+......................+.......................+............+..................................+.+..............+.......................+.......................+..+..............+..........................+........................................+......+.................++*++*++*++*++*++*
subject= /C=DE/ST=RP/L=Mainz/O=cdj maxau/CN=opsi.tu
notBefore=Mar 21 16:02:19 2012 GMT
notAfter=Dec 16 16:02:19 2014 GMT
SHA1 Fingerprint=B4:4F:9E:1C:52:5D:8D:FE:02:63:FC:FA:78:F0:43:25:97:72:3F:EC
Starting opsi config service..Traceback:
     line 753 in 'main' in file '/usr/lib/pymodules/python2.7/opsiconfd/opsiconfd.py'
     line 468 in '__init__' in file '/usr/lib/pymodules/python2.7/opsiconfd/opsiconfd.py'
     line 534 in 'setDefaultConfig' in file '/usr/lib/pymodules/python2.7/opsiconfd/opsiconfd.py'
     line 728 in 'getfqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Util/__init__.py'
     line 215 in 'forceFqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Types.py'
     ==>>> Bad fqdn: 'ubuntu'
ERROR: Bad fqdn: 'ubuntu'
..........   (failed).
invoke-rc.d: initscript opsiconfd, action "start" failed.
Setting up opsipxeconfd (4.0.1.5-1) ...
Starting opsi pxe configuration service..Traceback:
     line 886 in '<module>' in file '/usr/bin/opsipxeconfd'
     line 648 in '__init__' in file '/usr/bin/opsipxeconfd'
     line 704 in 'setDefaultConfig' in file '/usr/bin/opsipxeconfd'
     line 728 in 'getfqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Util/__init__.py'
     line 215 in 'forceFqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Types.py'
     ==>>> Bad fqdn: 'ubuntu'
ERROR: Bad fqdn: 'ubuntu'
..........   (failed).
invoke-rc.d: initscript opsipxeconfd, action "start" failed.
Setting up opsi-utils (4.0.1.16-1) ...
Setting up opsi-depotserver (4.0.1.11-1) ...
[5] [Mar 21 09:03:09] Configuring samba (opsi-setup|136)
[5] [Mar 21 09:03:10] Getting current system config (opsi-setup|70)
[2] [Mar 21 09:03:10] Traceback: (Logger.py|742)
[2] [Mar 21 09:03:10]      line 3122 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Mar 21 09:03:10]      line 3068 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Mar 21 09:03:10]      line 163 in 'configureSamba' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Mar 21 09:03:10]      line 76 in 'getSysConfig' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Mar 21 09:03:10]      line 728 in 'getfqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Util/__init__.py' (Logger.py|742)
[2] [Mar 21 09:03:10]      line 215 in 'forceFqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Types.py' (Logger.py|742)
[2] [Mar 21 09:03:10]      ==>>> Bad fqdn: 'ubuntu' (opsi-setup|3130)

ERROR: Bad fqdn: 'ubuntu'

[5] [Mar 21 09:03:12] Setting rights (opsi-setup|416)
[5] [Mar 21 09:03:12] Getting current system config (opsi-setup|70)
[2] [Mar 21 09:03:12] Traceback: (Logger.py|742)
[2] [Mar 21 09:03:12]      line 3122 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Mar 21 09:03:12]      line 3074 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Mar 21 09:03:12]      line 428 in 'setRights' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Mar 21 09:03:12]      line 76 in 'getSysConfig' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Mar 21 09:03:12]      line 728 in 'getfqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Util/__init__.py' (Logger.py|742)
[2] [Mar 21 09:03:12]      line 215 in 'forceFqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Types.py' (Logger.py|742)
[2] [Mar 21 09:03:12]      ==>>> Bad fqdn: 'ubuntu' (opsi-setup|3130)

ERROR: Bad fqdn: 'ubuntu'
Bei der Installation (ganz am Anfang) habe ich den richtigen FQDN-Namen eingegeben und einen anderen Ort, wo man mit den Domänennamen rumspielen kann und etwas Falsches eingeben kann kenne ich noch nicht. Kann mir jemand eine mögliche Fehlerursache nennen?

Re: ERROR: Bad fqdm: 'ubuntu'

Verfasst: 22 Mär 2012, 08:56
von d.oertel
Hi,

was ergibt

Code: Alles auswählen

getent hosts $(hostname -f)
gruss
d.oertel

Re: ERROR: Bad fqdm: 'ubuntu'

Verfasst: 22 Mär 2012, 09:17
von aseloth
getent hosts $(hostname -f) ergibt
127.0.1.1 ubuntu :o
anscheinend hat es nicht gereicht die Domäneadresse in die 'hosts' in dritte Zeile einzutragen. Danke für den Tip, jetzt weiss ich woran es wohl gelegen hat.
Nächste Frage, wie mache ich den Eintrag richtig? Bei mir sieht die Datei 'hosts' folgendermaßen aus:

Code: Alles auswählen

127.0.0.1      localhost
127.0.1.1      ubuntu
172.16.1.10    opsi.tu 

Re: ERROR: Bad fqdm: 'ubuntu'

Verfasst: 22 Mär 2012, 09:38
von aseloth
Meine Frage hat sich erübrigt. Man sollte "127.0.1.1 ubuntu" durch benötigte Adresse und Namen ersetzen.