Seite 1 von 1

"opsi-setup --configure-mysql" failed

Verfasst: 02 Mai 2013, 17:15
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)

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

Verfasst: 03 Mai 2013, 11:28
von ueluekmen
Hi,

can you please post the output from:

Code: Alles auswählen

locale
command?

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

Verfasst: 06 Mai 2013, 02:49
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=

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

Verfasst: 09 Mai 2013, 10:46
von fbt045
anyone can help me?

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

Verfasst: 13 Mai 2013, 08:48
von wolfbardo
As a workaround try

Code: Alles auswählen

LC_ALL=C opsi-setup --configure-mysql
regards,
Bardo Wolf

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

Verfasst: 15 Mai 2013, 02:56
von fbt045
thanks for the reply, I resolved the problem by changed hostname and DNS name