Project

General

Profile

Tâche #11483

Scénario #11288: Résoudre les problèmes d'instabilité constatés sur Zéphir 2.3.16

Messages d'erreur de fermeture de processus dans les logs (backend)

Added by Bruno Boiget over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/15/2015
Due date:
% Done:

100%

Estimated time:
4.00 h
Spent time:
Remaining (hours):
0.0

Description

Lors de l'étude sur les segfaults, des logs de ce type ont été détectés au niveau du backend Zéphir:

May  3 06:25:31 zephir zephir_backend: [-] #011Traceback (most recent call last):
May  3 06:25:31 zephir zephir_backend: [-] #011  File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 445, in startReactor
May  3 06:25:31 zephir zephir_backend: [-] #011    self.config, oldstdout, oldstderr, self.profiler, reactor)
May  3 06:25:31 zephir zephir_backend: [-] #011  File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 348, in runReactorWithLogging
May  3 06:25:31 zephir zephir_backend: [-] #011    reactor.run()
May  3 06:25:31 zephir zephir_backend: [-] #011  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1170, in run
May  3 06:25:31 zephir zephir_backend: [-] #011    self.mainLoop()
May  3 06:25:31 zephir zephir_backend: [-] #011  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1179, in mainLoop
May  3 06:25:31 zephir zephir_backend: [-] #011    self.runUntilCurrent()
May  3 06:25:31 zephir zephir_backend: [-] #011--- <exception caught here> ---
May  3 06:25:31 zephir zephir_backend: [-] #011  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 751, in runUntilCurrent
May  3 06:25:31 zephir zephir_backend: [-] #011    f(*a, **kw)
May  3 06:25:31 zephir zephir_backend: [-] #011  File "/usr/lib/python2.6/dist-packages/twisted/internet/process.py", line 43, in reapAllProcesses
May  3 06:25:31 zephir zephir_backend: [-] #011    process.reapProcess()
May  3 06:25:31 zephir zephir_backend: [-] #011  File "/usr/lib/python2.6/dist-packages/twisted/internet/process.py", line 291, in reapProcess
May  3 06:25:31 zephir zephir_backend: [-] #011    log.msg('Failed to reap %d:' % self.pid)
May  3 06:25:31 zephir zephir_backend: [-] #011exceptions.TypeError: %d format: a number is required, not NoneType
May  3 06:25:31 zephir zephir_backend: [-] Unhandled Error

Associated revisions

Revision fbb20e8b (diff)
Added by Bruno Boiget over 6 years ago

Correction d'erreurs au lancement de md5sum en mode threadé

  • lancement de md5sum avec callFromThread si threads activés
  • ajout d'un indicateur de chargement du cache dans la page d'accueil

Ref #11483 @1h

History

#1 Updated by Bruno Boiget over 6 years ago

  • Status changed from Nouveau to En cours
  • Estimated time changed from 0.50 h to 4.00 h
  • Distribution changed from EOLE 2.5 to Toutes

Des processus '<defunct> md5sum' sont présent sur le système. Le problème vient de la façon dont est lancé la commande md5sum à la vérification de configuration en cas d'utilisation de threads.

Tous les appels à l'API de twisted (en particulier à reactor) ne doivent pas être exécutés depuis un thread, mais depuis la boucle principale. Dans ce cas, c'est la fonction getProcessOutputAndValue, qui utilise reactor.spawnProcess.

#2 Updated by Bruno Boiget over 6 years ago

  • Description updated (diff)

#3 Updated by Bruno Boiget over 6 years ago

  • % Done changed from 0 to 100

#4 Updated by Scrum Master over 6 years ago

  • Status changed from En cours to Résolu

#5 Updated by Joël Cuissinat over 6 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.5 to 0.0

Also available in: Atom PDF