Ubuntu Installation

Antworten
ruch
Beiträge: 9
Registriert: 21 Feb 2014, 01:09

Ubuntu Installation

Beitrag 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!
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Ubuntu Installation

Beitrag 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

Code: Alles auswählen

import OPSI
ruch
Beiträge: 9
Registriert: 21 Feb 2014, 01:09

Re: Ubuntu Installation

Beitrag 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"
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

Re: Ubuntu Installation

Beitrag 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


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


Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Ubuntu Installation

Beitrag 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

Code: Alles auswählen

import OPSI
ruch
Beiträge: 9
Registriert: 21 Feb 2014, 01:09

Re: Ubuntu Installation

Beitrag 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!
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Ubuntu Installation

Beitrag 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

Code: Alles auswählen

import OPSI
Antworten