Problème d'installation d'OPSI

Ce forum est destiné au support entre utilisateurs de logiciel OPSI
Antworten
disaster
Beiträge: 1
Registriert: 13 Jan 2012, 20:17

Problème d'installation d'OPSI

Beitrag von disaster »

Bonjour,

j'essaye d'installer OPSI depuis une distribution Debian squeeze en suivant la procédure "opsi-getting-started-v401-en.pdf" mais je rencontre l'erreur suivante :

Code: Alles auswählen

root@admin:/etc/opsi# opsi-setup --init-current-config
[4] [Jan 13 20:22:54] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
[5] [Jan 13 20:22:54] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|391)
[5] [Jan 13 20:22:54] Creating opsi base (SQL.py|390)
[5] [Jan 13 20:23:18] Try to find a Configserver. (opsi-setup|2456)
[5] [Jan 13 20:23:18] Getting current system config (opsi-setup|70)
[5] [Jan 13 20:23:18] System information: (opsi-setup|120)
[5] [Jan 13 20:23:18]    distributor  : Debian (opsi-setup|121)
[5] [Jan 13 20:23:18]    distribution : Debian GNU/Linux 6.0.3 (squeeze) (opsi-setup|122)
[5] [Jan 13 20:23:18]    ip address   : 192.1.1.239 (opsi-setup|123)
[5] [Jan 13 20:23:18]    netmask      : 255.255.255.0 (opsi-setup|124)
[5] [Jan 13 20:23:18]    subnet       : 192.1.1.0 (opsi-setup|125)
[5] [Jan 13 20:23:18]    broadcast    : 192.1.1.255 (opsi-setup|126)
[5] [Jan 13 20:23:18]    fqdn         : admin.domaine.lan (opsi-setup|127)
[5] [Jan 13 20:23:18]    hostname     : admin (opsi-setup|128)
[5] [Jan 13 20:23:18]    domain       : domaine.lan (opsi-setup|129)
[5] [Jan 13 20:23:18]    win domain   : DOMAINE.LAN (opsi-setup|130)
[4] [Jan 13 20:23:18] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
[5] [Jan 13 20:23:18] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|391)
[5] [Jan 13 20:23:19] Creating opsi base (SQL.py|390)
[2] [Jan 13 20:23:42] Traceback: (Logger.py|742)
[2] [Jan 13 20:23:42]      line 3122 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 3077 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 2532 in 'initializeBackends' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 2553 in 'initializeConfigs' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 1 in 'config_getIdents' in file '<string>' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 423 in '_executeMethod' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 1 in 'config_getIdents' in file '<string>' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 423 in '_executeMethod' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 1741 in 'config_getIdents' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 1 in 'config_getObjects' in file '<string>' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 423 in '_executeMethod' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 1 in 'config_getObjects' in file '<string>' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 388 in '_dispatchMethod' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] [Jan 13 20:23:42]      line 1019 in 'config_getObjects' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/SQL.py' (Logger.py|742)
[2] [Jan 13 20:23:42]      ==>>> SQL backend module disabled (opsi-setup|3130)
 
ERROR: SQL backend module disabled

Voici mon fichier de config :

Code: Alles auswählen

root@admin:/etc/opsi# cat /etc/opsi/backends/mysql.conf
# -*- coding: utf-8 -*-
 
module = 'MySQL'
config = {
"username" : "opsi",
"connectionPoolMaxOverflow" : 10,
"database" : "opsi",
"connectionPoolTimeout" : 30,
"address" : "127.0.0.1",
"password" : "*******",
"databaseCharset" : "utf8",
"connectionPoolSize" : 20
}

Et pas de problème pour me connecter sur mysql avec le commande suivante :

Code: Alles auswählen

mysql -h 127.0.0.1 -u opsi -p

Merci d'avance
Benutzeravatar
poterealpopolo
Beiträge: 61
Registriert: 25 Mai 2011, 23:38

Re: Problème d'installation d'OPSI

Beitrag von poterealpopolo »

Bonjour,

comme c'est indiqué dans le log :

Code: Alles auswählen

[4] [Jan 13 20:22:54] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
[5] [Jan 13 20:22:54] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|391)
le fichier d'activation des modules en cofinancement n'existe pas.


Pour plus d'information au sujet lisez http://opsi-fr.opensides.be/opsi-doc/st ... ig-modules

Si vous avez besoin, pour évaluation, d'un fichier d'activation temporaire, vous pouvez le demander par mail à l'adresse opsi@opensides.be (qui est le représentant officiel francophone d'opsi).

Bien à vous
Représentant Officiel OPSI Francophone
http://www.opensides.eu official certified partner
http://www.opsi.org/fr
Antworten