Seite 1 von 1

Failed to decrypt nach Umstellung auf MySQL-Backend

Verfasst: 06 Nov 2012, 12:24
von guffbrose
Hallo zusammen,

nach der Umstellung auf das MySQL-Backend durch Einspielen einer freigeschalteten modules-Datei erhalte ich beim Starten eines Clients eine Fehlermeldung - im opsiconfd-Log steht folgende Meldung:

Code: Alles auswählen

[3] [Nov 06 11:33:18] 'utf8' codec can't decode byte 0xfa in position 1: invalid start byte (__init__.py|556)
[3] [Nov 06 11:33:18] Execution error: Failed to decrypt (JsonRpc.py|136)
Nach den Kopieren der modules-Datei nach /etc/opsi habe ich laut Handbuch die /etc/opsi/backendManager/dispatch.conf entsprechend angepasst bzw. folgende Befehle ausgeführt:

Code: Alles auswählen

apt-get install mysql-server

opsi-setup --init-current-config
opsi-setup --set-rights
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart

opsi-convert file mysql
Ich verwende Version 4.0.2.5.8 vom 2012/10/15 auf SLES 11.

Vielen Dank für Eure Hilfe im Voraus!

Re: Failed to decrypt nach Umstellung auf MySQL-Backend

Verfasst: 09 Nov 2012, 13:36
von d.oertel
Hi,

nach der Installation des mysql-Servers die Datenbank mit
opsi-setup --configure-mysql
ausgeführt ?

gruß
d.oertel

Re: Failed to decrypt nach Umstellung auf MySQL-Backend

Verfasst: 12 Nov 2012, 06:45
von guffbrose
Hi,

habe das Passwort von pcpatch neu gesetzt, danach hat alles wieder funktioniert.

Re: Failed to decrypt nach Umstellung auf MySQL-Backend

Verfasst: 26 Mär 2013, 13:48
von d.meier
Hallo zusammen,
ich bekomme das leider nicht hin. Setzen eines neuen Passwortes von pcpatch nützt nichts. Ich habe meinen Server nach Handbuch vom File- zum MySQL-Backend umgestellt.

Code: Alles auswählen

[3] [Mar 26 13:38:44] [ opsiclientd                   ] Locale not found: [Errno 2] No translation file found for domain: 'opsiclientd'   (Localization.pyo|64)
[1] [Mar 26 13:38:44] [ opsiclientd                   ] Opsiclientd version: 4.0.76 (full)   (Opsiclientd.pyo|237)
[1] [Mar 26 13:38:44] [ opsiclientd                   ] Commandline: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd.exe   (Opsiclientd.pyo|242)
[1] [Mar 26 13:38:44] [ opsiclientd                   ] Working directory: C:\Windows\system32   (Opsiclientd.pyo|244)
[2] [Mar 26 13:39:07] [ opsiclientd                   ] Traceback:   (Logger.pyo|742)
[2] [Mar 26 13:39:07] [ opsiclientd                   ]      line 94 in 'processResult' in file 'OPSI\Backend\JSONRPC.pyo'   (Logger.pyo|742)
[2] [Mar 26 13:39:07] [ opsiclientd                   ]      ==>>> Failed to decrypt (error on server)   (JSONRPC.pyo|98)
[2] [Mar 26 13:39:07] [ event processing gui_startup{installation_pending}] Traceback:   (Logger.pyo|742)
[2] [Mar 26 13:39:07] [ event processing gui_startup{installation_pending}]      line 671 in 'processProductActionRequests' in file 'ocdlib\EventProcessing.pyo'   (Logger.pyo|742)
[2] [Mar 26 13:39:07] [ event processing gui_startup{installation_pending}]      line 763 in 'runActions' in file 'ocdlib\EventProcessing.pyo'   (Logger.pyo|742)
[2] [Mar 26 13:39:07] [ event processing gui_startup{installation_pending}]      line 521 in 'getDepotserverCredentials' in file 'ocdlib\Config.pyo'   (Logger.pyo|742)
[2] [Mar 26 13:39:07] [ event processing gui_startup{installation_pending}]      line 1 in 'user_getCredentials' in file '<string>'   (Logger.pyo|742)
[2] [Mar 26 13:39:07] [ event processing gui_startup{installation_pending}]      line 611 in '_jsonRPC' in file 'OPSI\Backend\JSONRPC.pyo'   (Logger.pyo|742)
[2] [Mar 26 13:39:07] [ event processing gui_startup{installation_pending}]      line 123 in 'execute' in file 'OPSI\Backend\JSONRPC.pyo'   (Logger.pyo|742)
[2] [Mar 26 13:39:07] [ event processing gui_startup{installation_pending}]      line 135 in 'waitForResult' in file 'OPSI\Backend\Backend.pyo'   (Logger.pyo|742)
[2] [Mar 26 13:39:07] [ event processing gui_startup{installation_pending}]      ==>>> Failed to decrypt (error on server)   (EventProcessing.pyo|688)
[3] [Mar 26 13:39:07] [ event processing gui_startup{installation_pending}] Failed to process product action requests: Failed to decrypt (error on server)   (EventProcessing.pyo|689)
Kann mir jemand helfen?

Danke und Gruß

Dominik

Re: Failed to decrypt nach Umstellung auf MySQL-Backend

Verfasst: 27 Mär 2013, 10:49
von d.oertel
Hi,

wie sieht die
/etc/opsi/backendManager/dispatch.conf
aus ?

gruß
d.oertel

Re: Failed to decrypt nach Umstellung auf MySQL-Backend

Verfasst: 28 Mär 2013, 10:00
von d.meier
Hallo,
das war wohl des Rätsels Lösung. Bisher sah die Datei so aus:

Code: Alles auswählen

backend_.*         : mysql, opsipxeconfd
host_.*            : mysql, opsipxeconfd
productOnClient_.* : mysql, opsipxeconfd
configState_.*     : mysql, opsipxeconfd
license.*          : mysql
softwareLicense.*  : mysql
audit.*            : mysql
.*                 : mysql
License, Softwarelicense und Audit waren scheinbar noch übrige Variablen vom File-Backend. Ich habe die Datei jetzt exakt so konfiguriert, wie es im Handbuch steht:

Code: Alles auswählen

backend_.*         : mysql, opsipxeconfd
host_.*            : mysql, opsipxeconfd
productOnClient_.* : mysql, opsipxeconfd
configState_.*     : mysql, opsipxeconfd
.*                 : mysql
Vielen Dank!