Project

General

Profile

Tâche #17413

Scénario #17993: Traitement express MEN (48-50)

mauvaise reference tableau self.pkg_file[zephir_version][serv_maj]

Added by Anthony RAULT almost 3 years ago. Updated almost 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
10/06/2016
Due date:
% Done:

100%

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

Description

Bonjour,

dans le log zephir_backend.alert.log:

#011  File "/usr/lib/python2.7/dist-packages/zephir/backend/lib_backend.py", line 140, in load_packages
#011    log.msg("Erreur de chargement de %s (corrompu ?), fichier supprimé" % self.pkg_file[zephir_version][serv_maj])
#011exceptions.KeyError: u'eole.ac-dijon.fr'

Je pense qu'il faut ajouter [level]:
log.msg("Erreur de chargement de %s (corrompu ?), fichier supprimé" % self.pkg_file[zephir_version][level][serv_maj])

bonne journée

Anthony RAULT

Associated revisions

Revision b9065ece (diff)
Added by Benjamin Bohard almost 3 years ago

Erreur de clé pour l’accès à un dictionnaire.

Ref #17413

History

#1 Updated by Joël Cuissinat almost 3 years ago

  • Description updated (diff)

#2 Updated by Bruno Boiget almost 3 years ago

  • Tracker changed from Demande to Tâche
  • Project changed from Distribution EOLE to zephir-parc
  • Estimated time set to 1.00 h
  • Parent task set to #17993
  • Remaining (hours) set to 1.0

Je confirme. Produit un plantage sur le message d'erreur qui empêche la suppression du fichier corrompu

#3 Updated by Benjamin Bohard almost 3 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Benjamin Bohard
  • % Done changed from 0 to 80
  • Remaining (hours) changed from 1.0 to 0.5

à partir de quelle version, et quelle stratégie pour le merge (branches master ou branche de fix) ?

#4 Updated by Benjamin Bohard almost 3 years ago

  • % Done changed from 80 to 100
  • Remaining (hours) changed from 0.5 to 0.25

#5 Updated by Scrum Master almost 3 years ago

  • Project changed from zephir-parc to Distribution EOLE
  • Status changed from En cours to Résolu

#6 Updated by Gérald Schwartzmann almost 3 years ago

root@zephir:/var/log# locate lib_backend.py
/usr/lib/python2.7/dist-packages/zephir/backend/lib_backend.py
/usr/lib/python2.7/dist-packages/zephir/backend/lib_backend.pyc
root@zephir:/var/log# vim /usr/lib/python2.7/dist-packages/zephir/backend/lib_backend.py
root@zephir:/var/log# apt-cache policy zephir-backend
zephir-backend:
  Installé : 2.6.0-36
  Candidat : 2.6.0-36

La modification est bien présente dans le fichier lib_backend.py

#7 Updated by Gérald Schwartzmann almost 3 years ago

root@zephir:/var/log# tail -f /var/log/rsyslog/local/zephir_backend/zephir_backend.alert.log
2016-12-10T02:25:36.724409+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:36.964400+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:37.445946+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:37.881407+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:38.058335+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:38.307450+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:38.536053+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:38.793050+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:39.036348+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:39.204182+01:00 zephir.ac-test.fr zephir_backend: [-] None

#8 Updated by Gérald Schwartzmann almost 3 years ago

root@zephir:/var/log# vim /usr/lib/python2.7/dist-packages/zephir/backend/lib_backend.py
root@zephir:/var/log# systemctl restart zephir
root@zephir:/var/log# tail f /var/log/rsyslog/local/zephir_backend/zephir_backend.alert.log
2016-12-10T02:25:36.724409+01:00 zephir.ac-test.fr zephir_backend: [
] None
2016-12-10T02:25:36.964400+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:37.445946+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:37.881407+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:38.058335+01:00 zephir.ac-test.fr zephir_backend: [-] None

#9 Updated by Gérald Schwartzmann almost 3 years ago

Cramer un fichier :-)

root@zephir:/var/lib/zephir# vim packages_eole_2.6.0_test-eole.ac-dijon.fr.ini 
root@zephir:/var/lib/zephir# systemctl restart zephir
root@zephir:/var/lib/zephir# 
root@zephir:/var/lib/zephir# 
root@zephir:/var/lib/zephir# tail -f /var/log/rsyslog/local/zephir_backend/zephir_backend.alert.log
2016-12-10T02:25:39.036348+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-10T02:25:39.204182+01:00 zephir.ac-test.fr zephir_backend: [-] None
2016-12-16T15:08:39.215714+01:00 zephir.ac-test.fr zephir_backend: [-] Traceback (most recent call last):
2016-12-16T15:08:39.215996+01:00 zephir.ac-test.fr zephir_backend: [-]   File "/usr/lib/python2.7/dist-packages/zephir/backend/uucp_rpc.py", line 1379, in xmlrpc_scan_timeouts
2016-12-16T15:08:39.216619+01:00 zephir.ac-test.fr zephir_backend: [-]     self.parent.maj_checker = AptChecker()
2016-12-16T15:08:39.216877+01:00 zephir.ac-test.fr zephir_backend: [-]   File "/usr/lib/python2.7/dist-packages/zephir/backend/lib_backend.py", line 111, in __init__
2016-12-16T15:08:39.217614+01:00 zephir.ac-test.fr zephir_backend: [-]     self.load_packages(zephir_version, 'eole', serv_maj)
2016-12-16T15:08:39.217874+01:00 zephir.ac-test.fr zephir_backend: [-]   File "/usr/lib/python2.7/dist-packages/zephir/backend/lib_backend.py", line 140, in load_packages
2016-12-16T15:08:39.218167+01:00 zephir.ac-test.fr zephir_backend: [-]     log.msg("Erreur de chargement de %s (corrompu ?), fichier supprimé" % self.pkg_file[zephir_version][serv_maj])
2016-12-16T15:08:39.218423+01:00 zephir.ac-test.fr zephir_backend: [-] KeyError: u'test-eole.ac-dijon.fr'

#10 Updated by Gérald Schwartzmann almost 3 years ago

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

Also available in: Atom PDF