ich habe gerade von 4.03 auf 4.05 aktualisiert.
In dem safe-upgrade Prozess wurde auch der MySQL-Server mit aktualisiert.
Während des Installationsprozesses kam es zu folgendem Fehler:
Code: Alles auswählen
Richte opsi-linux-bootimage ein (20140919-2) ...
[2] Traceback: (Logger.py|767)
[2] line 1641 in '<module>' in file '/usr/bin/opsi-admin' (Logger.py|767)
[2] line 242 in 'main' in file '/usr/bin/opsi-admin' (Logger.py|767)
[2] line 209 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/BackendManager.py' (Logger.py|767)
[2] line 314 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/BackendManager.py' (Logger.py|767)
[2] line 364 in '__loadBackends' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/BackendManager.py' (Logger.py|767)
[2] line 453 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|767)
[2] line 136 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|767)
[2] line 163 in '_createConnectionPool' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|767)
[2] ==>>> Backend I/O error: Failed to connect to database 'opsi' address 'localhost': (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)") (opsi-admin|1649)
Richte opsi-depotserver ein (4.0.5.11-1) ...
/usr/lib/python2.6/dist-packages/zope/__init__.py:3: UserWarning: Module _mysql was already imported from /usr/lib/pymodules/python2.6/_mysql.so, but /usr/lib/pymodules/python2.6 is being added to sys.path
import pkg_resources
[2] [Jan 08 12:15:07] Traceback: (Logger.py|767)
[2] [Jan 08 12:15:07] line 159 in '_createConnectionPool' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 73 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 142 in 'connect' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 304 in '__init__' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 161 in 'get' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 642 in 'do_get' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 122 in 'create_connection' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 198 in '__init__' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 261 in '__connect' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 71 in 'creator' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 81 in 'Connect' in file '/usr/lib/pymodules/python2.6/MySQLdb/__init__.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 170 in '__init__' in file '/usr/lib/pymodules/python2.6/MySQLdb/connections.py' (Logger.py|767)
[2] [Jan 08 12:15:07] ==>>> (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)") (MySQL.py|162)
[4] [Jan 08 12:15:07] Backend I/O error: Failed to connect to database 'opsi' address 'localhost': (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)") (opsi-setup|717)
[4] [Jan 08 12:15:07] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] Datei oder Verzeichnis nicht gefunden: u'/etc/opsi/modules' (Backend.py|386)
[5] [Jan 08 12:15:07] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|466)
[5] [Jan 08 12:15:07] Creating base path: '/var/lib/opsi/config' (File.py|233)
[3] [Jan 08 12:15:07] Unknown DB Error: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)") (MySQL.py|203)
[2] [Jan 08 12:15:07] Traceback: (Logger.py|767)
[2] [Jan 08 12:15:07] line 3054 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|767)
[2] [Jan 08 12:15:07] line 3041 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|767)
[2] [Jan 08 12:15:07] line 742 in 'update' in file '/usr/bin/opsi-setup' (Logger.py|767)
[2] [Jan 08 12:15:07] line 67 in 'initializeConfigs' in file '/usr/lib/pymodules/python2.6/OPSI/Util/Task/ConfigureBackend/ConfigurationData.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 1 in 'backend_createBase' in file '<string>' (Logger.py|767)
[2] [Jan 08 12:15:07] line 445 in '_executeMethod' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Backend.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 1 in 'backend_createBase' in file '<string>' (Logger.py|767)
[2] [Jan 08 12:15:07] line 445 in '_executeMethod' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Backend.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 1 in 'backend_createBase' in file '<string>' (Logger.py|767)
[2] [Jan 08 12:15:07] line 445 in '_executeMethod' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Backend.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 1 in 'backend_createBase' in file '<string>' (Logger.py|767)
[2] [Jan 08 12:15:07] line 411 in '_dispatchMethod' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/BackendManager.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 397 in 'backend_createBase' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/SQL.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 431 in 'getTables' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 217 in 'getSet' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 183 in 'connect' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 142 in 'connect' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 304 in '__init__' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 161 in 'get' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 642 in 'do_get' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 122 in 'create_connection' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 198 in '__init__' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 261 in '__connect' in file '/usr/lib/pymodules/python2.6/sqlalchemy/pool.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 71 in 'creator' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/MySQL.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 81 in 'Connect' in file '/usr/lib/pymodules/python2.6/MySQLdb/__init__.py' (Logger.py|767)
[2] [Jan 08 12:15:07] line 170 in '__init__' in file '/usr/lib/pymodules/python2.6/MySQLdb/connections.py' (Logger.py|767)
[2] [Jan 08 12:15:07] ==>>> (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)") (opsi-setup|3058)
ERROR: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
/usr/lib/python2.6/dist-packages/zope/__init__.py:3: UserWarning: Module _mysql was already imported from /usr/lib/pymodules/python2.6/_mysql.so, but /usr/lib/pymodules/python2.6 is being added to sys.path
import pkg_resources
[5] [Jan 08 12:15:07] Setting rights (opsi-setup|548)
[5] [Jan 08 12:15:07] Setting rights on directory '/etc/opsi' (opsi-setup|635)
/usr/lib/python2.6/dist-packages/zope/__init__.py:3: UserWarning: Module _mysql was already imported from /usr/lib/pymodules/python2.6/_mysql.so, but /usr/lib/pymodules/python2.6 is being added to sys.path
import pkg_resources
[5] [Jan 08 12:15:08] Setting rights (opsi-setup|548)
[5] [Jan 08 12:15:08] Setting rights on directory '/tftpboot/linux' (opsi-setup|635)
Ich kann nur vermuten, dass es daran liegt, dass der MySQL-Server nicht lief.
Ist die Meldung beunruhigend oder muss ich irgendetwas nachziehen?
Vielen Dank für die Hilfe!