Projet

Général

Profil

Tâche #16240

Distribution EOLE - Scénario #16215: Traitement express (22-24)

Avant l'instance systemd redémarre plusieurs controle-vnc

Ajouté par Emmanuel GARETTE il y a presque 8 ans. Mis à jour il y a presque 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
30/05/2016
Echéance:
% réalisé:

100%

Temps estimé:
1.00 h
Temps passé:
Restant à faire (heures):
0.0

Description

En effet, controle-vnc plante :

-- L'unité (unit) smbd.service a terminé son démarrage, avec le résultat done.
mai 30 18:38:30 scribe ntpd[4396]: Soliciting pool server 195.83.66.158
mai 30 18:38:30 scribe ntpd[4396]: Soliciting pool server 92.222.82.98
mai 30 18:38:31 scribe twistd[4030]: Unhandled Error
mai 30 18:38:31 scribe twistd[4030]: Traceback (most recent call last):
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 617, in run
mai 30 18:38:31 scribe twistd[4030]:     runApp(config)
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 25, in runApp
mai 30 18:38:31 scribe twistd[4030]:     _SomeApplicationRunner(config).run()
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 348, in run
mai 30 18:38:31 scribe twistd[4030]:     self.application = self.createOrGetApplication()
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 413, in createOrGetApplication
mai 30 18:38:31 scribe twistd[4030]:     application = getApplication(self.config, passphrase)
mai 30 18:38:31 scribe twistd[4030]: --- <exception caught here> ---
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 424, in getApplication
mai 30 18:38:31 scribe twistd[4030]:     application = service.loadApplication(filename, style, passphrase)
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/lib/python2.7/dist-packages/twisted/application/service.py", line 411, in loadApplication
mai 30 18:38:31 scribe twistd[4030]:     passphrase)
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/lib/python2.7/dist-packages/twisted/persisted/sob.py", line 224, in loadValueFromFile
mai 30 18:38:31 scribe twistd[4030]:     eval(codeObj, d, d)
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/share/eole/controlevnc/controle_vnc_serveur.py", line 31, in <module>
mai 30 18:38:31 scribe twistd[4030]:     import ldap_utils
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/share/eole/controlevnc/ldap_utils.py", line 15, in <module>
mai 30 18:38:31 scribe twistd[4030]:     from scribe.eolegroup import Group
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/lib/python2.7/dist-packages/scribe/eolegroup.py", line 20, in <module>
mai 30 18:38:31 scribe twistd[4030]:     from scribe.eoleldap import LdapEntry
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/lib/python2.7/dist-packages/scribe/eoleldap.py", line 16, in <module>
mai 30 18:38:31 scribe twistd[4030]:     from ldapconf import SUFFIX, ROOT_DN, USER_FILTER, GROUP_FILTER, SHARE_FILTER, \
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/lib/python2.7/dist-packages/scribe/ldapconf.py", line 13, in <module>
mai 30 18:38:31 scribe twistd[4030]:     CONTAINER_PATH_FICHIER = dico['container_path_fichier']
mai 30 18:38:31 scribe twistd[4030]:   File "/usr/lib/python2.7/dist-packages/configobj.py", line 554, in __getitem__
mai 30 18:38:31 scribe twistd[4030]:     val = dict.__getitem__(self, key)
mai 30 18:38:31 scribe twistd[4030]: exceptions.KeyError: 'container_path_fichier'
mai 30 18:38:31 scribe twistd[4030]: Failed to load application: 'container_path_fichier'
mai 30 18:38:31 scribe systemd[1]: controle-vnc.service: Main process exited, code=exited, status=1/FAILURE
mai 30 18:38:31 scribe systemd[1]: controle-vnc.service: Unit entered failed state.
mai 30 18:38:31 scribe systemd[1]: controle-vnc.service: Failed with result 'exit-code'.
mai 30 18:38:31 scribe systemd[1]: controle-vnc.service: Service hold-off time over, scheduling restart.
mai 30 18:38:31 scribe systemd[1]: Stopped Controle VNC server.

Il faudrait tester au minimum la présence du fichier /etc/eole/ldapconf.conf

Révisions associées

Révision 45cf390c (diff)
Ajouté par Philippe Caseiro il y a presque 8 ans

Test de la présence du fichier /etc/eole/ldapconf.conf

Eviter de lancer en boucle controle-vnc avant l'instance.

ref #16240 @1h

Historique

#1 Mis à jour par Scrum Master il y a presque 8 ans

  • Assigné à mis à Philippe Caseiro

#2 Mis à jour par Scrum Master il y a presque 8 ans

  • Statut changé de Nouveau à Résolu

#3 Mis à jour par Joël Cuissinat il y a presque 8 ans

  • % réalisé changé de 0 à 100
  • Temps estimé mis à 1.00 h
  • Restant à faire (heures) mis à 1.0

#4 Mis à jour par Joël Cuissinat il y a presque 8 ans

  • Projet changé de Distribution EOLE à controle-vnc
  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) changé de 1.0 à 0.0
root@scribe:~# rm -f /etc/eole/ldapconf.conf 
root@scribe:~# service controle-vnc start
root@scribe:~# service controle-vnc status
● controle-vnc.service - Controle VNC server
   Loaded: loaded (/lib/systemd/system/controle-vnc.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since mer. 2016-06-01 16:14:57 CEST; 1min 24s ago
Condition: start condition failed at mer. 2016-06-01 16:16:18 CEST; 2s ago
           ConditionPathExists=/etc/eole/ldapconf.conf was not met

Formats disponibles : Atom PDF