Ubuntu Installation
Ubuntu Installation
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!
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!
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Ubuntu Installation
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
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
Re: Ubuntu Installation
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 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
As Nico mentioned
Running opsi on a opsi-server with a FQDN like may lead to problems,
regards,
Bardo Wolf
Code: Alles auswählen
getent hosts $(hostname -f)
The result should look like the following example:
192.168.1.1 server.domain.tld server
Code: Alles auswählen
comp-work-01.compdomain
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
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Ubuntu Installation
Hello ruch,
Kind regards
Niko
I do hardly advise against removing localhost from your hosts file as this may lead to trouble.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"
Kind regards
Niko
Code: Alles auswählen
import OPSI
Re: Ubuntu Installation
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!
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!
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Ubuntu Installation
Hello ruch,
Try this in your /etc/hosts (assuming 192.168.23.42 as your IP):
Please adapt the IP to the one your server uses.
Kind regards
Niko
The FQDN looks better but the IP is wrong (127.0.0.1 is for localhost)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!
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
Kind regards
Niko
Code: Alles auswählen
import OPSI