Seite 1 von 1

Ubuntu Installation

Verfasst: 21 Feb 2014, 01:23
von ruch
I am trying to install opsi on Ubuntu 13.04 I am getting following error when I run $opsi-setup --edit-config-defaults

Traceback: (Logger.py|742)
line 3299 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
line 3278 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
line 2841 in 'editConfigDefaults' in file '/usr/bin/opsi-setup' (Logger.py|742)
line 200 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
line 304 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
line 355 in '__loadBackends' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
line 61 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/File.py' (Logger.py|742)
line 473 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py' (Logger.py|742)
line 733 in 'getfqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Util/__init__.py' (Logger.py|742)
line 215 in 'forceFqdn' in file '/usr/lib/pymodules/python2.7/OPSI/Types.py' (Logger.py|742)
==>>> Bad fqdn: 'comp-work-01.local' (opsi-setup|3307)

ERROR: Bad fqdn: 'comp-work-01.local'

Thanks!

Re: Ubuntu Installation

Verfasst: 21 Feb 2014, 10:29
von n.wenselowski
Hello ruch,

the problem is that the hostname is not a FQDN. A FQDN must include a top-level domain, a root zone and then the hostname.
You probably want something like comp-work-01..company.local.

Please have a look at the Getting Started.


With kind regards

Niko

Re: Ubuntu Installation

Verfasst: 21 Feb 2014, 17:45
von ruch
Thanks, I am not getting that error anymore. I had read the manual but I was not sure to change 127.0.0.1 to my IP since its in the domain. To fix it I had to change my hosts file as following:-
I had "127.0.0.1 localhost,comp-work-01 localhost.localdomain"
I changed it to "127.0.0.1 comp-work-01.compdomain comp-work-01"

Re: Ubuntu Installation

Verfasst: 21 Feb 2014, 18:28
von wolfbardo
As Nico mentioned

Code: Alles auswählen

getent hosts $(hostname -f)

The result should look like the following example:
192.168.1.1 server.domain.tld server
Running opsi on a opsi-server with a FQDN like

Code: Alles auswählen

 comp-work-01.compdomain
may lead to problems,

regards,
Bardo Wolf

Re: Ubuntu Installation

Verfasst: 24 Feb 2014, 10:12
von n.wenselowski
Hello ruch,
ruch hat geschrieben:Thanks, I am not getting that error anymore. I had read the manual but I was not sure to change 127.0.0.1 to my IP since its in the domain. To fix it I had to change my hosts file as following:-
I had "127.0.0.1 localhost,comp-work-01 localhost.localdomain"
I changed it to "127.0.0.1 comp-work-01.compdomain comp-work-01"
I do hardly advise against removing localhost from your hosts file as this may lead to trouble.


Kind regards

Niko

Re: Ubuntu Installation

Verfasst: 24 Feb 2014, 22:05
von ruch
Hi All,
Output of the command "getent hosts $(hostname -f)" looks like following
127.0.0.1 my-workcomp-01.compname.lan my-workcomp-01

Is this okay now?

Thanks for the help!

Re: Ubuntu Installation

Verfasst: 25 Feb 2014, 10:20
von n.wenselowski
Hello ruch,
ruch hat geschrieben:Hi All,
Output of the command "getent hosts $(hostname -f)" looks like following
127.0.0.1 my-workcomp-01.compname.lan my-workcomp-01

Is this okay now?

Thanks for the help!
The FQDN looks better but the IP is wrong (127.0.0.1 is for localhost)

Try this in your /etc/hosts (assuming 192.168.23.42 as your IP):

Code: Alles auswählen

127.0.0.1 localhost.localdomain.local localhost
192.168.23.42 my-workcomp-01.compname.lan my-workcomp-01
Please adapt the IP to the one your server uses.


Kind regards

Niko