opsi-setup --configure-mysql ERROR message

tihi
Beiträge: 6
Registriert: 08 Nov 2013, 13:30

Re: opsi-setup --configure-mysql ERROR message

Beitrag von tihi »

This is the output, everything is green.

Code: Alles auswählen

opsi:~#opsi-setup --set-rights
[5] [nov 21 16:44:57] Setting rights (opsi-setup|425)
[5] [nov 21 16:44:57] Getting current system config (opsi-setup|79)
[5] [nov 21 16:44:57] System information: (opsi-setup|129)
[5] [nov 21 16:44:57]    distributor  : Debian (opsi-setup|130)
[5] [nov 21 16:44:57]    distribution : Debian GNU/Linux 6.0.8 (squeeze) (opsi-setup|131)
[5] [nov 21 16:44:57]    ip address   : 192.168.11.68 (opsi-setup|132)
[5] [nov 21 16:44:57]    netmask      : 255.255.255.0 (opsi-setup|133)
[5] [nov 21 16:44:57]    subnet       : 192.168.11.0 (opsi-setup|134)
[5] [nov 21 16:44:57]    broadcast    : 192.168.11.255 (opsi-setup|135)
[5] [nov 21 16:44:57]    fqdn         : opsi.opsi.local (opsi-setup|136)
[5] [nov 21 16:44:57]    hostname     : opsi (opsi-setup|137)
[5] [nov 21 16:44:57]    domain       : opsi.local (opsi-setup|138)
[5] [nov 21 16:44:57]    win domain   : OPSI.LOCAL (opsi-setup|139)
[5] [nov 21 16:44:57] Setting rights on directory '/tftpboot/linux' (opsi-setup|507)
[5] [nov 21 16:44:57] Setting rights on directory '/home/opsiproducts' (opsi-setup|507)
[5] [nov 21 16:44:57] Setting rights on directory '/var/log/opsi' (opsi-setup|507)
[5] [nov 21 16:44:57] Setting rights on directory '/etc/opsi' (opsi-setup|507)
[5] [nov 21 16:44:57] Setting rights on directory '/var/lib/opsi' (opsi-setup|507)
[5] [nov 21 16:44:57] Setting rights on directory '/var/lib/opsi/depot' (opsi-setup|507)

And then I try to configure the mysql and I get this:

Code: Alles auswählen

opsi:~#opsi-setup --configure-mysql
[2] [nov 21 16:46:44] Traceback: (Logger.py|742)
[2] [nov 21 16:46:44]      line 3299 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [nov 21 16:46:44]      line 3255 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [nov 21 16:46:44]      line 2180 in 'configureMySQLBackend' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [nov 21 16:46:44]      line 386 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|742)
[2] [nov 21 16:46:44]      line 371 in 'backend_info' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [nov 21 16:46:44]      ==>>> 'ascii' codec can't decode byte 0xc3 in position 23: ordinal not in range(128) (opsi-setup|3307)

ERROR: 'ascii' codec can't decode byte 0xc3 in position 23: ordinal not in range(128)
Thanks.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

Re: opsi-setup --configure-mysql ERROR message

Beitrag von wolfbardo »

Please post the output of

Code: Alles auswählen

locale
and

Code: Alles auswählen

getent hosts $(hostname -f)
try as workaround

Code: Alles auswählen

LC_ALL=C opsi-setup --configure-mysql
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


tihi
Beiträge: 6
Registriert: 08 Nov 2013, 13:30

Re: opsi-setup --configure-mysql ERROR message

Beitrag von tihi »

Output of locale:

Code: Alles auswählen

opsi:~#locale
LANG=hu_HU.UTF-8
LANGUAGE=
LC_CTYPE="hu_HU.UTF-8"
LC_NUMERIC="hu_HU.UTF-8"
LC_TIME="hu_HU.UTF-8"
LC_COLLATE="hu_HU.UTF-8"
LC_MONETARY="hu_HU.UTF-8"
LC_MESSAGES="hu_HU.UTF-8"
LC_PAPER="hu_HU.UTF-8"
LC_NAME="hu_HU.UTF-8"
LC_ADDRESS="hu_HU.UTF-8"
LC_TELEPHONE="hu_HU.UTF-8"
LC_MEASUREMENT="hu_HU.UTF-8"
LC_IDENTIFICATION="hu_HU.UTF-8"
LC_ALL=
getent hosts $(hostname -f)

Code: Alles auswählen

opsi:~#getent hosts $(hostname -f)
192.168.11.68   opsi.opsi.local opsi

And thank you because with this command:

Code: Alles auswählen

LC_ALL=C opsi-setup --configure-mysql
it works like charm!

But then what was the problem?

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

Re: opsi-setup --configure-mysql ERROR message

Beitrag von n.wenselowski »

Hello tihi,

what version of OPSI are you running on your server?


Kind regards

N. Wenselowski

Code: Alles auswählen

import OPSI
tihi
Beiträge: 6
Registriert: 08 Nov 2013, 13:30

Re: opsi-setup --configure-mysql ERROR message

Beitrag von tihi »

The version is 4.0.3.1. I think it's the latest one since I installed opsi two weeks ago.
Antworten