Seite 1 von 1

Backend I/O Error (Lizenz.* MySQL)

Verfasst: 06 Mär 2011, 23:51
von Eric
Hi,

Ich hab ein Fehler, den ich leider nicht beheben kann.

Ich habe die Datei /etc/opsi/backendManager/dispatch.conf so abgeändert.

Code: Alles auswählen

       backend_.*         : file, opsipxeconfd, dhcpd
       host_.*            : file, opsipxeconfd, dhcpd
       productOnClient_.* : file, opsipxeconfd
       configState_.*     : file, opsipxeconfd
       license.*          : mysql
       softwareLicense.*  : mysql
       audit.*            : mysql
       .*                 : file
Bei dem Befehl opsi-setup --init-current-config taucht folgende Fehlermeldung auf.
(Entschuldigt bitte die komische Schrift, ich benutze putty um auf den Server zu zugreifen.)

Code: Alles auswählen

[2] [Mär 06 23:44:21] Traceback: (Logger.py|710)
[2] [Mär 06 23:44:21]      line 156 in '_createConnectionPool' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 76 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 142 in 'connect' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 304 in '__init__' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 161 in 'get' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 642 in 'do_get' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 122 in 'create_connection' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 198 in '__init__' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 261 in '__connect' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 74 in 'creator' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 81 in 'Connect' in file '/usr/lib/pymodules/python2.6/MySQLdb/__init__.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 170 in '__init__' in file '/usr/lib/pymodules/python2.6/MySQLdb/connections.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      ==>>> (1045, "Access denied for user 'opsi'@'localhost' (using password: YES)") (MySQL.py|159)
[2] [Mär 06 23:44:21] Traceback: (Logger.py|710)
[2] [Mär 06 23:44:21]      line 2772 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 2734 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 2342 in 'initializeBackends' in file '/usr/bin/opsi-setup' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 133 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/BackendManager.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 207 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/BackendManager.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 258 in '__loadBackends' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/BackendManager.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 373 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 137 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      line 160 in '_createConnectionPool' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|710)
[2] [Mär 06 23:44:21]      ==>>> Backend I/O error: Failed to connect to database 'opsi' address 'localhost': (1045, "Access denied for user 'opsi'@'localhost' (using password: YES)") (opsi-setup|2780)
Nach dem ich schon einiges probiert habe im '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' zu ändern wird mir der Fehler immer noch angezeigt.
Ich würde mich sehr über Ratschläge freuen.

vielen Dank vorne weg!!! ;)

Re: Backend I/O Error (Lizenz.* MySQL)

Verfasst: 07 Mär 2011, 18:24
von ueluekmen
Hi,

die Fehlermeldung ist doch ziemlich eindeutig
Eric hat geschrieben:

Code: Alles auswählen

==>>> Backend I/O error: Failed to connect to database 'opsi' address 'localhost': (1045, "Access denied for user 'opsi'@'localhost' (using password: YES)") (opsi-setup|2780)
schon die Datenbank initialisiert?

Code: Alles auswählen

opsi-setup --configure-mysql

Re: Backend I/O Error (Lizenz.* MySQL)

Verfasst: 08 Mär 2011, 18:32
von Eric
Hi, danke für die Antwort!!! ;)

Ich hab diesen Log schon richtig verstanden, nur konnte ich das nicht lösen, selbst nach der Anleitung aus dem Handbuch. Ich hab mich im Terminal ganz normal bei MySQL anmelden können aber nach dem ich über 1 1/2 Stunden versucht habe das Backend richtig zu konfigurieren hab ich aufgegeben. Access denied hängt mir aus dem Hals, ich kann das nicht mehr lesen!!! :D

Mittlerweile hab ich glaub ich schon mein System kaputt gespielt, ich werde es neu aufsetzen und mich ganz gezielt auf MySQL konzentrieren, damit ich da nicht wieder was falsch mache!!! :lol:

Re: Backend I/O Error (Lizenz.* MySQL)

Verfasst: 09 Mär 2011, 21:21
von d.oertel
Hi,

erstens muss die erste Zeile in der dispatch.conf alle verwendeten Backends enthalten:

Code: Alles auswählen

       backend_.*         : file, mysql, opsipxeconfd, dhcpd
       host_.*            : file, opsipxeconfd, dhcpd
       productOnClient_.* : file, opsipxeconfd
       configState_.*     : file, opsipxeconfd
       license.*          : mysql
       softwareLicense.*  : mysql
       audit.*            : mysql
       .*                 : file
weiterhin habe ich kurzfristig so eine Meldung schon gesehen und das war ein Bug der gefixed ist.
Also:
wenn das alleine nicht hilft, Pakete updaten (evtl. testing Pakete) und bitte nochmal Rückmeldung geben...

danke

d.oertel
paket

Re: Backend I/O Error (Lizenz.* MySQL)

Verfasst: 14 Mär 2011, 08:55
von Eric
Ich habe Opsi nochmals komplett neu aufgesetzt und bin dabei genau nach der Anleitung Getting started vor gegangen. (wie zu vor)
Das ein zigste was ich anders gemacht habe, ist das ich bei der Installation von mySQL "kein Passwort vergeben habe" sondern erst bei der Änderung der dispatch.conf!
Das hat ohne makellos funktioniert. Mein DHCP Problem hat sich auch mit der neu Installation aufgelöst.

Danke!!!