opsi-setup --configure-mysql ERROR message

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

opsi-setup --configure-mysql ERROR message

Beitrag 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!
r.witzel
Beiträge: 74
Registriert: 01 Aug 2011, 14:57
Wohnort: Melle

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

Beitrag 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)
Carpe Opsi :)
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

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

Beitrag von SisterOfMercy »

r.witzel hat geschrieben: 2) locales wouldn't fit
Whut? Could you elaborate on that some more please?
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
tihi
Beiträge: 6
Registriert: 08 Nov 2013, 13:30

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

Beitrag 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.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

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

Beitrag 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


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


Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

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

Beitrag 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.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

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

Beitrag von wolfbardo »

Thanks for the typo correction!

Code: Alles auswählen

opsi-setup --set-rights


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


Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

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

Beitrag von SisterOfMercy »

That's what went wrong the first time! opsi-setup is not expecting the extra 'rights' argument.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
tihi
Beiträge: 6
Registriert: 08 Nov 2013, 13:30

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

Beitrag von tihi »

Thanks guys, but this didn't solve the problem either.
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

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

Beitrag von SisterOfMercy »

Well, what is the output when you just run opsi-setup --set-rights ?
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten