Seite 1 von 1

Hi....I have a problem....help please!!!!

Verfasst: 17 Nov 2015, 14:04
von ensantos
Hi....i have a problem....help please

[root@server ~]# opsi-setup --configure-mysql
[2] [Nov 17 10:50:26] Traceback: (Logger.py|758)
[2] [Nov 17 10:50:26] line 2304 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|758)
[2] [Nov 17 10:50:26] line 2256 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|758)
[2] [Nov 17 10:50:26] line 1516 in 'configureMySQLBackend' in file '/usr/bin/opsi-setup' (Logger.py|758)
[2] [Nov 17 10:50:26] line 124 in 'getSysConfig' in file '/usr/bin/opsi-setup' (Logger.py|758)
[2] [Nov 17 10:50:26] ==>>> [Errno -2] Name or service not known (opsi-setup|2308)

ERROR: [Errno -2] Name or service not known

Enviroment
Server: CentOS 7 - Hyper-V

Re: Hi....I have a problem....help please!!!!

Verfasst: 17 Nov 2015, 14:21
von edvbuo
Hello,

try to change the hostname to "server.uib.local" an restart the server.

Code: Alles auswählen

hostnamectl set-hostname server.uib.local

Re: Hi....I have a problem....help please!!!!

Verfasst: 17 Nov 2015, 15:25
von ensantos
I changed the hostname, however not decided, what can it be?

[root@blabla]# opsi-setup --configure-mysql
[2] [Nov 17 12:18:21] Traceback: (Logger.py|758)
[2] [Nov 17 12:18:21] line 2304 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|758)
[2] [Nov 17 12:18:21] line 2256 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|758)
[2] [Nov 17 12:18:21] line 1516 in 'configureMySQLBackend' in file '/usr/bin/opsi-setup' (Logger.py|758)
[2] [Nov 17 12:18:21] line 124 in 'getSysConfig' in file '/usr/bin/opsi-setup' (Logger.py|758)
[2] [Nov 17 12:18:21] ==>>> [Errno -2] Name or service not known (opsi-setup|2308)

ERROR: [Errno -2] Name or service not known

[root@blabla]# hostname
blabla.mydomain.com.br
[root@blabla]#

Re: Hi....I have a problem....help please!!!!

Verfasst: 17 Nov 2015, 16:36
von wolfbardo
Please post / check the output of

Code: Alles auswählen

getent hosts $(hostname -f)
(see http://download.uib.de/opsi_stable/doc/ ... arted.html)

regards,
bardo wolf

Re: Hi....I have a problem....help please!!!!

Verfasst: 18 Nov 2015, 15:41
von ensantos
[opsi@blabla ~]$ getent hosts $(hostname -f)
hostname: Name or service not known
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
127.0.0.1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[opsi@blabla ~]$

Re: Hi....I have a problem....help please!!!!

Verfasst: 19 Nov 2015, 16:07
von ensantos
Thanks.....is online!!! :D :D :D :D