"opsi-setup --configure-mysql" failed

Antworten
fbt045
Beiträge: 6
Registriert: 21 Nov 2012, 07:39

"opsi-setup --configure-mysql" failed

Beitrag von fbt045 »

hello everybody, i installed opsi in centos6.3, and followed the install-manual "opsi Getting Started opsi-Version 4.0.3", but in 3.2.3 Backend Configuration chapter, when i executed 'opsi-setup --configure-mysql' in terminal, had the follow error in attachment. please help me to resolve it,thank you all

[root@opsi ~]# opsi-setup --configure-mysql
[2] [5月 03 02:34:43] Traceback: (Logger.py|742)
[2] [5月 03 02:34:43] line 3324 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [5月 03 02:34:43] line 3280 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [5月 03 02:34:43] line 2180 in 'configureMySQLBackend' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [5月 03 02:34:43] line 386 in '__init__' in file '/usr/lib/python2.6/site-packages/OPSI/Backend/MySQL.py' (Logger.py|742)
[2] [5月 03 02:34:43] line 371 in 'backend_info' in file '/usr/lib/python2.6/site-packages/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [5月 03 02:34:43] ==>>> 'ascii' codec can't decode byte 0xe6 in position 10: ordinal not in range(128) (opsi-setup|3332)

ERROR: 'ascii' codec can't decode byte 0xe6 in position 10: ordinal not in range(128)
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1940
Registriert: 28 Mai 2008, 10:53

Re: "opsi-setup --configure-mysql" failed

Beitrag von ueluekmen »

Hi,

can you please post the output from:

Code: Alles auswählen

locale
command?


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


fbt045
Beiträge: 6
Registriert: 21 Nov 2012, 07:39

Re: "opsi-setup --configure-mysql" failed

Beitrag von fbt045 »

ueluekmen hat geschrieben:Hi,

can you please post the output from:

Code: Alles auswählen

locale
command?
OK.the command 'locale' output is follows:
[root@opsi-server ~]# locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
fbt045
Beiträge: 6
Registriert: 21 Nov 2012, 07:39

Re: "opsi-setup --configure-mysql" failed

Beitrag von fbt045 »

anyone can help me?
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

Re: "opsi-setup --configure-mysql" failed

Beitrag von wolfbardo »

As a workaround try

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


fbt045
Beiträge: 6
Registriert: 21 Nov 2012, 07:39

Re: "opsi-setup --configure-mysql" failed

Beitrag von fbt045 »

thanks for the reply, I resolved the problem by changed hostname and DNS name
Antworten