Seite 1 von 2

opsi-setup --configure-mysql ERROR message

Verfasst: 08 Nov 2013, 13:37
von tihi
Hi!

I've having troubles with configuring the mysql for OPSI. Whenever I run the command "opsi-setup --configure-mysql" and set my preferences, I get this error. I can't seem to get past it. I tried googling but nothing I could use came up.

Code: Alles auswählen

[2] [nov 08 13:09:43] Traceback: (Logger.py|742)
[2] [nov 08 13:09:43]      line 3299 in '<module>' in file '/usr/bin/opsi-setup'                             (Logger.py|742)
[2] [nov 08 13:09:43]      line 3255 in 'main' in file '/usr/bin/opsi-setup' (Lo                            gger.py|742)
[2] [nov 08 13:09:43]      line 2180 in 'configureMySQLBackend' in file '/usr/bi                            n/opsi-setup' (Logger.py|742)
[2] [nov 08 13:09:43]      line 386 in '__init__' in file '/usr/lib/pymodules/py                            thon2.6/OPSI/Backend/MySQL.py' (Logger.py|742)
[2] [nov 08 13:09:43]      line 371 in 'backend_info' in file '/usr/lib/pymodule                            s/python2.6/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [nov 08 13:09:43]      ==>>> 'ascii' codec can't decode byte 0xc3 in positio                            n 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)
Other than this problem, my OPSI server works but I want this to work as well.

So I really would appriciate if you could help me with this one!

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

Verfasst: 08 Nov 2013, 15:16
von r.witzel
I had this problem in 3 scenarios:

1) permissions weren't correct (opsi-setup --set-rights /etc/opsi)
2) locales wouldn't fit
3) broken packages (reinstall packages)

Most time it was 1)

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

Verfasst: 12 Nov 2013, 02:24
von SisterOfMercy
r.witzel hat geschrieben: 2) locales wouldn't fit
Whut? Could you elaborate on that some more please?

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

Verfasst: 18 Nov 2013, 15:36
von tihi
r.witzel hat geschrieben:I had this problem in 3 scenarios:

1) permissions weren't correct (opsi-setup --set-rights /etc/opsi)
2) locales wouldn't fit
3) broken packages (reinstall packages)

Most time it was 1)
1) I tried that (opsi-setup --set rights /etc/opsi/) and got this:
[2] [nov 18 15:33:44] Traceback: (Logger.py|742)
[2] [nov 18 15:33:44] line 3299 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [nov 18 15:33:44] line 3239 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [nov 18 15:33:44] ==>>> Too many arguments (opsi-setup|3307)

ERROR: Too many arguments
2) Would you care to elaborate on that, please?
3) It is a fresh install, installed the packages just before starting to configure opsi.

Thanks.

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

Verfasst: 19 Nov 2013, 10:33
von wolfbardo
tihi hat geschrieben: 1) I tried that (opsi-setup --set rights /etc/opsi/) and got this:
[2] [nov 18 15:33:44] Traceback: (Logger.py|742)
[2] [nov 18 15:33:44] line 3299 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [nov 18 15:33:44] line 3239 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [nov 18 15:33:44] ==>>> Too many arguments (opsi-setup|3307)

ERROR: Too many arguments
2) Would you care to elaborate on that, please?
3) It is a fresh install, installed the packages just before starting to configure opsi.

Thanks.

Code: Alles auswählen

opsi-setup --set rights
should work

regards,
Bardo Wolf

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

Verfasst: 19 Nov 2013, 13:03
von SisterOfMercy
Don't you mean

Code: Alles auswählen

opsi-setup --set-rights
instead of

Code: Alles auswählen

opsi-setup --set rights
Notice the incorrect space in the second command.

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

Verfasst: 19 Nov 2013, 13:12
von wolfbardo
Thanks for the typo correction!

Code: Alles auswählen

opsi-setup --set-rights

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

Verfasst: 19 Nov 2013, 15:10
von SisterOfMercy
That's what went wrong the first time! opsi-setup is not expecting the extra 'rights' argument.

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

Verfasst: 21 Nov 2013, 13:18
von tihi
Thanks guys, but this didn't solve the problem either.

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

Verfasst: 21 Nov 2013, 13:28
von SisterOfMercy
Well, what is the output when you just run opsi-setup --set-rights ?